Versions Compared

Key

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

...

Notice that we have added an After scenario that will be executed after each scenario. After validating that an error occurred it will take a screenshot and attach it to the report using the wdio-cucumberjs-json-reporter library.


You can then export the specification of the test to a Cucumber .feature file via the REST API, or the Export to Cucumber UI action from within the Test/Test Execution issue or even based on an existing saved filter. A plugin for your CI tool of choice can be used to ease this task.

...

This will produce one results file that will hold the test results.

The CucumberJson reporter does not produce reports containing the screenshots embedded. 

However, we have added an After scenario to do so, but you can use the HTML or Cucumber reporter that allows you to add those as you can find more info here.


After running the tests, results can be imported to Xray via the REST API, or the Import Execution Results action within the Test Execution, or by using one of the available CI/CD plugins (e.g. see an example of Integration with Jenkins).

...