Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Gherkin Keywords
Panel | ||
---|---|---|
| ||
All Gherkin keywords are highlighted using colour and bold font |
Infonote |
---|
No '*' Note that using * (asterisk character) as a step keyword is not supported as it does not improve readability of the examples |
...
Panel | ||
---|---|---|
| ||
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: |
...
Info |
---|
In order to Instead of “So that” you can use |
...
“In order |
...
to” so that you can start with the why |
...
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 |
...
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” |
Simple Step Parameters
Panel | ||
---|---|---|
| ||
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 Scenario Outline Parameters |
Panel | ||
---|---|---|
| ||
<> delimited step parameters which are used as part of Scenario Template or Scenario Outline are highlighted automatically in orange |
...
Info |
---|
...
Scenario outline parameters are also supported inside tabular step parameters |
Doc String Step Parameters
Panel | ||
---|---|---|
| ||
Doc strings are highlighted in purple colour |
...
Info |
---|
Backticks ``` The use of backtick characters instead of quotes |
...
is supported |
XML Step Parameters
...
Tags
Panel | ||
---|---|---|
| ||
Tags are highlighted in grey colour |
...
Panel | ||
---|---|---|
| ||
Comments are highlighted in grey colour |
Info |
---|
...
Fold comments Comments spanning several lines can be conveniently folded using fold/unfold gutter icons |
Questions & Answers
Panel | ||
---|---|---|
| ||
A comment prefix character '#' is used followed by ‘Q`‘Q:' or 'A:’ to highlight questions and answers respectively. Or the more elaborate version: “Question:“ and “Answer:” |
Info |
---|
Tip - you can turn off the showing of gutter icons on the left via an editor menu option shown below |
Invalid text
Panel | ||
---|---|---|
| ||
If there is any text that according to the Cucumber Gherkin syntax does not belong to any of the Feature file elements, then it is underlined in red and an error icon is shown in the gutter Note that such errors to be highlighted the 'Errors' option in the Gutter options drop down menu must be turned on as shown below |