Advanced Agile Testing study guide

Behavior-Driven Development (BDD) vs ATDD

Behavior-Driven Development (BDD) and Acceptance Test-Driven Development (ATDD) are collaborative Agile methodologies. BDD focuses on the system's behavior from a user's perspective using Domain-Specific Language (Given/When/Then). ATDD focuses on defining precise acceptance criteria before development starts.

Practical example

ATDD: The team agrees that the tax calculator must handle 20% VAT. The tests are written first, often in a tabular format. BDD: Focuses on conversation (The Three Amigos: PO, Dev, QA). It uses Gherkin syntax to ensure the business stakeholders and the automation framework speak the exact same ubiquitous language.

Exam scenario and common trap

Scenario: A QA team installs Cucumber and writes 500 Given/When/Then scripts in isolation, then runs them against the developer's code. The Trap: "The team successfully implemented BDD." The Correct Answer: This is just using a BDD tool for traditional test automation. True BDD requires upfront, cross-functional collaboration to define the behaviors before the code is written.

Related syllabus material covers the broader concept; this page includes additional context. Reference sections: 4.1.1. See the official ISTQB syllabus for exam scope. Examples are independent; QA-ace is not affiliated with ISTQB.