Test Automation / Quiz

BDD & Gherkin Craft

Given-When-Then done right: declarative scenarios, living documentation, and the anti-patterns that turn BDD into brittle scripts.

Difficulty
Medium
Format
Quiz
Points
150
Estimate
8 min

// MISSION BRIEF

Your Mission

BDD's promise is executable specs the whole team reads. Its reality, done badly, is UI scripts wearing a Gherkin costume. This quiz tests whether you write scenarios that document behavior, or ones that break every sprint.

// FIRST CONTACT

Battle teaser

Which is a well-written, declarative Given-When-Then step?

  1. AWhen the customer applies a valid discount code
  2. BWhen the applyDiscount() function executes with retry=3
  3. CWhen I click the element with id 'discount-input' and type 'SAVE10' and click '#apply-btn'
  4. DWhen stuff happens on the page
Answers, scoring, hints, and the full battle stay sealed.

// SKILL TAGS

bddgherkincucumberliving-documentation