Versions Compared

Key

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

...

Info
titleLearn more

See Automated Tests (importImport/exportExport) for more info on how Cucumber feature files are generated and how to import back results to Xray.

...

  1. Create Cucumber tests (e.g. Scenario/Scenario Outlines) in some other tool, and the respective step's code
  2. Import existing Cucumber tests using the REST API (e.g. from an existing code base which may have tests and their corresponding step's implementation) 
  3. Optionally, and in parallel, 
    1. Specify additional or edit existing Cucumber tests in natural language, in JIRA
    2. Implement remaining tests in code and commit them to the source code versioning sytem
  4. Export Cucumber features from JIRA, to the CI environment, using the REST API or the Jenkins/Bamboo plugins
  5. Execute tests in the CI environment
  6. Report results to Xray, using the REST APIor the Jenkins/Bamboo plugins
  7. Repeat from step 3) onwards


Note
titlePlease note

As of Xray v2.3.x, step 2) is not idempotent. This means that if you try to import multiple times Cucumber Tests using the endpoint Importing Cucumber Tests - REST, you may end up with repeated entities in JIRA.


Common problems

Submission of Cucumber results says "No tests found in execution result"

Most probably you're trying to submit a cucumber json results file without having previously created the Cucumber Tests (i.e. scenario/scenario outline) in JIRA.

You need to first have these Test issues created beforehand in JIRA, with the correct specification. Then you need to export those Tests to one or more cucumber .feature files, so you're able to run them in your CI environment. 

Following this workflow is important because whenever you export the features from JIRA, along with respective Cucumber scenarios/scenario outlines, the scenarios will be tagged with some labels that will allow Xray to map the results back to the proper entities in JIRA.

Is it possible to create of Cucumber tests automaticaly whenever submiting Cucumber results?

No. It's not possible to properly recreate the Cucumber Scenario/Scenario Outline/Background from a cucumber result file in JSON format.

Where is the master of information for Cucumber Tests?

Our recommendation is to manage it in JIRA and always edit the Cucumber Scenarios/Scenario Outlines/Backgrounds there.