CTFL_SYLL_4.0 · Question #106
If test cases are written in the given/when/then format, what type of test-first software development is being used?
The correct answer is D. Behavior-driven development. Behavior-Driven Development (BDD) is defined by its use of the Given/When/Then (GWT) structured format - Given (precondition), When (action), Then (expected outcome) - which makes test scenarios readable by both technical and non-technical stakeholders. A (TDD) is wrong because…
Question
If test cases are written in the given/when/then format, what type of test-first software development is being used?
Options
- ATest-driven development
- BAcceptance test-driven development
- CBusiness-driven development
- DBehavior-driven development
How the community answered
(22 responses)- A5% (1)
- C5% (1)
- D91% (20)
Explanation
Behavior-Driven Development (BDD) is defined by its use of the Given/When/Then (GWT) structured format - Given (precondition), When (action), Then (expected outcome) - which makes test scenarios readable by both technical and non-technical stakeholders.
- A (TDD) is wrong because TDD uses unit tests written in code (e.g., assertions), not natural-language GWT scenarios; it focuses on implementation correctness, not behavior specification.
- B (ATDD) is close but incorrect - ATDD involves writing acceptance tests collaboratively with stakeholders, but it doesn't mandate the GWT format specifically; BDD evolved from and extends ATDD with that structure.
- C (Business-driven development) is not a standard software development methodology and is a distractor.
Memory tip: Think "Given/When/Then = Behavior" - the GWT format describes behavior from a user's perspective, which is the core idea of BDD. Tools like Cucumber and Gherkin, which are synonymous with BDD, enforce exactly this syntax.
Topics
Community Discussion
No community discussion yet for this question.