Gherkin (Given/When/Then)
Also called: Given/When/Then
A structured format for writing acceptance criteria as scenarios: Given a context, When an action, Then a result.
Definition
Gherkin makes criteria concrete and testable, and tools like Cucumber can even run them as automated tests, a practice called behavior-driven development (BDD). Each scenario reads like a mini test case.
In practice
Given a running workout, When the user taps Pause, Then the timer stops and the button changes to Resume.