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 and the scenario type directly  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

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

Using the Issue dialog

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 and scenario type:

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 and scenario type fields. This prevents full page reloads when modifying these fields.

Image Removed

In order to edit the scenario type you just need to hover over the field and click on it. The field will display an edit mode where you can change the value using a single select list field. After choosing the value, just press the check button near the field to save the new value.

Image Removed

Image Added


To edit the scenarioTo edit the scenario itself, 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 and scenario type fields 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.

...