Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Cucumber Tests (or scenarios) are of two Scenario Types:

  •  Scenario: a a set of instructions exclusively composed by of constant values, which, when executed by a tool, will only give a static result (e.g., 2 + 3 = 5)
  •  Scenario Outline: a generic set of instructions containing variables, which, when executed by a tool, will prompt varied results according to the specified input.

In Xray, you can specify the scenario directly on the Test issue.

Info

Please note that custom field Cucumber Test Type field is now deprecated since Xray Data Center versions V7.3.0 or higher.

This field will now automatically detect if the Test has a simple Scenario or a Scenario Outline.


Table of Contents

Defining Gherkin Tests

...

When creating or editing Gherkin Tests, you can set the scenario directly on the Jira create/edit dialog or page. Just go into the Test Details tab, and choose a Gherkin Test Type. Now you can set the scenario:

Image RemovedImage Added


Inline Editing Xray Tests

When viewing Gherkin Test issues in Jira, you can also use inline editing capabilities to set the scenario. This prevents full page reloads when modifying these fields.

Image RemovedImage Added


To edit the scenario, you need to use the Edit Steps button.

...

When done editing the steps, just press Save to persist the changes or press Cancel to discard them.

Image RemovedImage Added


Info

You can only edit the scenario field if you have permission to edit the Test issue.

...

Gherkin Tests in Xray can be exported to .feature files ready to be executed in Cucumber. The generated feature files follow the rules defined in Export Cucumber Features backup and take into account the context of the Jira Test issue.

...