Intermediate Testing & QA #bdd #gherkin #given-when-then #cucumber

BDD Gherkin Language

5 exercises — practise the English structure of Gherkin scenarios: Given/When/Then, declarative style, Background, Scenario Outlines, and avoiding common mistakes.

0 / 5 completed
Quick reference: Gherkin keywords
  • Given — system state or precondition before the action (declarative, not UI steps)
  • When — the triggering action or event under test
  • Then — one observable, measurable outcome per step
  • Background — shared Given steps that run before every scenario in the file
  • Scenario Outline + Examples — parameterised scenario with a data table for multiple runs
1 / 5

A QA engineer is writing a Gherkin scenario for a checkout flow. Which step most correctly uses the When keyword?