QA Fundamentals · Middle · Question 18 of 75

What does this Gherkin scenario describe?

Given a cart with 2 items
When the user applies coupon "SAVE10"
Then the total is reduced by 10%
Show the answer

Correct answer: Context, action and expected outcome of one behaviour

Explanation

Given sets up the state, When is the action, Then is the observable result. Good scenarios describe behaviour, not UI clicks, so they survive redesigns.

Further reading

Problem with a question

QA Fundamentals · Middle · question 18

Test yourself

Take the QA Fundamentals · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz