BDR Methodology

Behavior-Driven Living Requirements - The Universal Standard for Scalable Test Automation.

View the Project on GitHub dmitryAQA/bdr-methodology

BDR Workflow: From User Story to Living Documentation

This guide bridges the gap between high-level business requirements and automated test reports.

1. Input: User Story (Jira/Requirement)

Let’s imagine a standard requirement:

As a Customer, I want to add a backpack to the cart, So that I can buy it later.

2. The Bridge: BDR Layer 3 (Scenario)

We translate intent directly into code without technical details. This is your Code-First Scenario.

SCENARIO "Customer buys a backpack"
    ACTOR "Customer"
    DO Customer.login()
    DO Customer.addItemToCart("Backpack")
    VERIFY Customer.hasPurchased("Backpack")

3. Mapping: Layer 2 (Domain/Behavior)

We define what the business action means. Each domain action maps to an Allure Step.

ACTION Customer.addItemToCart(name)
    STEP "Customer adds {name} to the cart"
    FLOW Inventory.selectItem(name)
    FLOW Cart.confirmAddition()

4. Result: Living Documentation (Allure Report)

When the test runs, the report doesn’t just say test passed. It reflects the structure of the User Story:

User can add a backpack to the cart

Why this is not BDD (Gherkin)