Skip to main content

Syntax Highlighting

Gherkin Keywords

note

All Gherkin keywords are highlighted using colour and bold font

image-20241001-112014.png

note

No '*'

Note that using * (asterisk character) as a step keyword is not supported as it does not improve readability of the examples

User Story Keywords

note

The commonly used set of user story keywords (As a, I want to, So that) can be entered in the Feature title section like below:

image-20240928-170258.png

info

In order to

Instead of “So that” you can use “In order to” so that you can start with the why

image-20241001-094117.png

info

User story keywords don’t need to be at the start of the line and you can use either lower or upper case as needed

image-20241001-094034.png

info

The 'to’ part in the “I want to“ keyword can be omitted and in the “As a” keyword you can enter either “As a“ or “As an

image-20241001-094308.png

Simple Step Parameters

note

Simple parameters (those that are on the same line as the step keyword) can be highlighted by simply wrapping them in single or double quotes

image-20241001-094952.png

Scenario Outline Parameters

note

<> delimited step parameters which are used as part of Scenario Template or Scenario Outline are highlighted automatically in orange

image-20241001-130625.png

info

Use autocomplete

Use autocompletion support to quickly populate Examples table header section with the names of the parameters that you have used in parameterized steps above. Simply press 'Ctrl+Space' to bring up the auto completion menu

image-20241001-130806.png

info

Scenario outline parameters are also supported inside tabular step parameters

image-20241001-142943.png

Doc String Step Parameters

XML Step Parameters

Tags

Comments

Questions & Answers

Invalid text