The following user story has been developed:
As a customer of Alpha Airways who has booked a flight
I want to access the flight reservation
So that I can update the booking details
Which BDD scenario written in Gherkin format correctly applies to this user story? SELECT ONE OPTION
A . Given that the logged-on user is a customer of Alpha Airways
When that user enters their surname correctly
Then they are able to see all flights currently booked so that they can select which flight they want to update
B . Given that a customer has booked a flight with Alpha Airways
When that customer enters their surname AND enters the flight number for this reservation
Then the booking details for that flight are displayed
C . Given that a customer has booked a flight with Alpha Airways
When that customer enters the correct surname and flight number for this reservation
Then the booking details for that flight are displayed
ELSE an appropriate error message is presented
D . Given that a customer has booked a flight with Alpha Airways
When that customer enters their surname and the flight number OR enters their customer ID and the flight number for this reservation Then they are taken to the booking details for that flight so that they can update the booking details
Answer: C
Explanation:
The correct BDD scenario for the given user story is option C, which aligns with the principles of Behavior-Driven Development (BDD) and the Gherkin syntax. This scenario clearly specifies the context (Given), the action (When), and the outcome (Then), along with handling alternate flows (ELSE). It ensures that the customer can access and update their booking details only if they provide both the correct surname and flight number, which is a common practice for verifying a customer’s reservation. This scenario also includes an error handling path, which is essential for a comprehensive test case.
Reference = The ISTQB Advanced Level Agile Technical Tester syllabus and related materials emphasize the importance of creating testable acceptance criteria for user stories using requirements engineering and test techniques, which include the formulation of BDD scenarios in Gherkin format123.
Latest CTAL-ATT Dumps Valid Version with 40 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund