You can upload your gherkin files to Calliope through the manual upload or API upload Read more about Gherkin here.
Gherkin can be written in 70+ languages according to their documentation. If you write your Gherkin in a language that is not English that is totally fine. You will have to specify that on the top of the feature (see the documentation) to make it work with importing your feature files. This will only impact the keyword of the feature. If you use the English keywords you can keep using the default language.
Gherkin feature file¶
Download our example file here: example_gherkin_feature.feature
FeatureStored as container classification.
BackgroundStored as a result. Will be added as the first step to every scenario in the feature.
RuleStored as container classification.
ScenarioStored as container classification.
Scenario OutlineWe go through all
Examplesand for every row in the
Examplestable we create a container with the steps of the scenario outline as results.
Commentswill be added to the keyword directly underneath the comment, more about this in the comment section
A scenario outline will be read as a container with multiple scenarios. From the outline, the name is still taken.
- The scenario name we save in the title of the scenario container
ExamplesIf there are
Examplesin a scenario we treat it as a
DatatablesA data table on a step we will be added as a table on the result of the step.
Steps are rewritten as results
keywordUsed in the beginning of the result title.
- The step name is used as the result title.
The result will always be
unknown because this is not a report. This is a way for testers to upload an empty report that they can manually edit.
You can place Comments in feature files. These are added to the keyword that is directly underneath the comment, so for example:
# This is a comment Scenario: this is a scenario Given this scenario has a comment When the user looks up the report Then the comment is added to the Scenario container
Scenariodescription. You can see this by hovering over the scenario or opening the results of the scenario. You can place comments anywhere, in-between steps, in-between Scenario outlines
Rules. You name it. Comments above other comments will be added as well.
Scenario: this is a scenario Given this scenario has a comment #comment nr.1 #comment nr.2 #comment nr.3 When the user looks up the report Then the comments will be added to the When step
Whenstep in this case. The comments in steps are displayed on the result description of the step.
If there is a white line between a comment and a Keyword it will be ignored.
# This is a comment Scenario: this is a scenario Given this scenario has a comment When the user looks up the report Then the comment will be added to the Scenario container