Explaining Gherkin Given-When-Then scenarios for feature acceptance testing
Company: American Express
Role: Product Manager
Category: Software Engineering Fundamentals
Difficulty: medium
Interview Round: Other
In a product manager interview you are asked two connected questions: have you taken part in feature testing, and what is a Gherkin scenario? The interviewer adds that writing excellent Gherkin scenarios is one of the skills that marks out a standout product manager, so be ready to explain the format clearly, say how you have used it (or would use it), and show that you can tell a strong scenario from a weak one.
```hint Think about every reader
The same scenario is read by the product manager, a developer, a tester and often a test runner that executes it. What has to be true of each line for all of them to agree on whether the feature works?
```
### Clarifying Questions
- Does the team practise behavior-driven development with a tool that executes scenarios, such as Cucumber or SpecFlow, or would the scenarios only serve as written acceptance criteria on tickets?
- Who writes the scenarios today: the product manager alone, or product, engineering and QA together during story refinement?
- Would you like the example drawn from a cardholder-facing flow in this company's domain, or kept generic?
- Is the interviewer most interested in the syntax, or in where scenarios fit between writing a story and signing off a release?
### What a Strong Answer Covers
- A correct definition: Gherkin as the structured, plain-language format used in behavior-driven development, and a scenario as one concrete example of how a feature should behave.
- The Given, When, Then structure and its supporting keywords (And, But, Background, Scenario Outline with Examples), with what belongs in each step.
- A short, well-formed example that includes at least one unhappy path.
- What separates a great scenario from a weak one: business language instead of UI clicks, one behavior per scenario, and outcomes that can be observed.
- An honest account of hands-on feature-testing experience and of where scenarios sit in the delivery workflow, from refinement to automated checks to acceptance sign-off.
### Follow-up Questions
- Developers say your scenarios are too vague to automate, while business stakeholders say they are too technical to read. How would you rewrite them?
- How do you decide which behaviors deserve a Gherkin scenario and which are better covered by lower-level tests?
- A feature passes every scenario, yet customers say it does not work the way they expected. What does that tell you about how the scenarios were written?
Overview: A product manager interview prompt asking whether the candidate has worked on feature testing and how they would explain a Gherkin scenario. It tests understanding of behavior-driven development, the Given-When-Then structure, and how well-written acceptance scenarios align product, engineering and QA.