O'Reilly logo

Writing Great Specifications: Using Specification by Example and Gherkin by Kamil Nicieja

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A complete list of Gherkin keywords and their synonyms

Keyword

Synonyms

Description

Feature Business Need, Ability Begins a Gherkin file
Background   Runs steps before scenarios
Scenario   Starts a new scenario
Scenario Outline Scenario Template Starts a new scenario with multiple examples
Given *, And, But Puts the system in a predefined state
When *, And, But Performs an action
Then *, And, But Tests for consequences
Examples Scenarios Lists examples for scenario outlines

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required