BDD & TDD / Quiz
Gherkin Under the Lens
Given, When, Then, and the difference between a spec the business can read and a click-script nobody can maintain.
- Difficulty
- Easy
- Format
- Quiz
- Points
- 100
- Estimate
- 10 min
// MISSION BRIEF
Your Mission
A feature file is a contract, not a macro recording. This quiz drills the core of Gherkin design: what belongs in each keyword, declarative vs imperative style, and the structures (Background, titles) that keep specs readable.
Scoring: timed quiz; accuracy first, speed bonus for fast clean runs.
// FIRST CONTACT
Battle teaser
In Gherkin, the `When` step should contain:
- ABrowser navigation details for every page visited
- BThe expected outcome and assertions
- CAll the setup and preconditions
- DThe single action or event whose behavior the scenario verifies
Answers, scoring, hints, and the full battle stay sealed.
// SKILL TAGS
bddgherkincucumbertest-design