Gherkin

Gherkin is a descriptive language with fewer rules for structural formulation of scenarios within the framework of behaviour-driven software development; see e.g.

LF‑ET generates a feature file for each decision table which contains all scenarios that can be derived from the decision table.

todo export formats 020

Overview of Gherkin genera­tion from deci­sion tables with LF‑ET

  • Preconditions for a test case are ge­ne­ra­ted as Given instructions at the beginning of a test case

  • Test instructions are ge­ne­ra­ted as When instructions

  • Expected results are ge­ne­ra­ted as Then instructions

  • Expected results for not used actions are ge­ne­ra­ted as But instructions, see also: Test instructions for not used actions

  • Post-conditions for a test case are ge­ne­ra­ted as Then instructions at the end of the test case

  • If an instruction in LF‑ET begins with a Gherkin keyword, it is then used and suppresses automatic keyword expansion

  • LF‑ET "understands" at present Gherkin keywords in German and English, see also Language settings

  • LF‑ET supports the use of tables, multiple row instructions, tags and comments; further information on this can be found in the following sections