The correct use of Behavior-Driven Development (BDD) to design test scenarios involves specifying
the behavior in a given-when-then format. This format helps to clarify the conditions under which a
particular outcome should occur. Option A follows this structure correctly:
Given that the shopper scans their card (the precondition),
When they checkout (the action),
Then they should receive all the quantity discounts for everything they have purchased (the expected
outcome).
This scenario clearly outlines the behavior of the system in response to the user’s actions, which is
central to BDD.
Reference = The ISTQB Advanced Level Agile Technical Tester syllabus emphasizes the importance of
creating testable acceptance criteria for a given user story using requirements engineering and test
techniques, which include the application of BDD in the context of a given user story12.