liveBook · Manning

Examples table

An examples table is a Gherkin table whose rows supply values for generating scenario executions from a scenario outline.

How 2 Manning books explain it

Effective Behavior-Driven Development

A Gherkin block containing the example data used to generate scenarios from a scenario outline.

How it is used
Condenses similar scenarios into a readable outline and documents acceptable data variations.
How deep it goes
Explains header matching, row substitution, and ignored columns, then discusses example value; does not detail automation implementation.
Examples
Uses pizza slices and order contact details to illustrate scenario variations, and duplicate rows to show the cost of bloated tables.
What you can do after
Apply Gherkin Examples tables to expand a scenario outline into concrete scenarios with selected data variations.

Read how Effective Behavior-Driven Development explains examples table →

BDD in Action, Second Edition

An example table is a tabular Gherkin data structure whose rows supply parameter values for repeated scenario executions.

How it is used
Compresses related business-rule cases into one executable Scenario Outline and a readable set of input rows.
How deep it goes
Explains placeholders, row-by-row execution, and communication benefits, while deferring detailed step-table notation.
Examples
Uses interest calculations, flight-eligibility cases, and repeated account or points data to demonstrate tabular inputs.
What you can do after
Apply it via Cucumber to express repeated cases as one Scenario Outline with data-driven executions.

Read how BDD in Action, Second Edition explains examples table →

Related concepts

Questions about examples table

What is examples table?

An examples table is a Gherkin table whose rows supply values for generating scenario executions from a scenario outline.

Which Manning books explain examples table?

Effective Behavior-Driven Development and BDD in Action, Second Edition.

What should I know before learning examples table?

Manning books that teach examples table usually introduce examples keyword first.

What is examples table a kind of?

Examples table is a kind of table. A table is a data structure that organizes values into rows and columns.

What is examples table part of?

Examples table is part of scenario outline. A scenario outline is a Gherkin construct that defines a parameterized scenario expanded into multiple executions using values from an examples table.

What are the parts of examples table?

Examples table includes tagging.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.