QuestionQ27
Acceptance Criteria, Acceptance Tests and Experience-Based PracticesDuring a review session for Gherkin-language acceptance test cases on a project developing an event booking platform, consider this test case:
- GIVEN I am logged in to the event booking platform
- AND I have selected an event from the list shown for the "live concert" category
- WHEN I select the ‘Buy Tickets’ button
- AND I enter ‘3’ in the ‘Ticket quantity’ field
- AND I agree to the terms and conditions
- THEN the system should show the checkout page
- AND I should supply my personal data for payment and e-ticket delivery
Which sentence MOST closely matches a comment that could be made about this test case during the review?
- A This test case is perfectly written.
- B The “When” part lacks an action to enter a number of tickets requested that is greater than the limit allowed per person.
- C Line 3 refers to an element of the user interface, which is to be avoided and line 7 is an action and not a result.
- D Line 4 the quantity should not be set and line 7 is an action and not a result.
Community Discussion