Gherkin and examples

Gherkin is a structured language for describing behaviors through examples, with the keywords Given (context), When (action) and Then (result). Understandable by the business, these scenarios document requirements and can be automated as tests.

Example

Given a basket of €100 When I enter a 10% discount code Then the total is €90

Related concepts

The whole glossary