ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 118 - CTAL-TTA discussion

Report
Export

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
Answers
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
Answers
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
Answers
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
Answers
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
Suggested answer: C

Explanation:

The BDD scenario written in Gherkin format that correctly applies to the given user story is:

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

This scenario directly aligns with the user story by specifying the necessary conditions and outcomes for accessing and updating flight reservation details, ensuring that the scenario correctly captures the functionality described in the user story .

asked 18/09/2024
Haakon Schjelderup
53 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first