Create BDD Test

iTMS allow you to create executable specifications written in the language called Gherkin.

Gherkin is a plain-text language with a little extra structure. Gherkin is designed to be easy to learn by non-programmers yet structured enough to allow concise description of examples to illustrate business rules in most real-world domains.

Here is a sample Gherkin document:

The main keywords in Gherkin are:

  • Feature
  • Scenario (example)
  • Given, When, Then, And, But (Steps)
  • Background
  • Scenario outline