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:

  1. ABrowser navigation details for every page visited
  2. BThe expected outcome and assertions
  3. CAll the setup and preconditions
  4. DThe single action or event whose behavior the scenario verifies
Answers, scoring, hints, and the full battle stay sealed.

// SKILL TAGS

bddgherkincucumbertest-design