Xray import single cucumber result to multiple executions

matan noach
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 25, 2024

I am trying to integrate our Java Cucumber tests with Jira using Xray and I am facing the following scenario:

I have a 2 cucumber feature files
Each feature file has single feature definition
Each feature file has its own existing Test Execution
Each feature has few tests under it

All tests tests run together at the same time and produce single cucumber.json report file

However, when I use Xray's '/api/v1/import/execution/cucumber/' API, I 'm seeing that all tests results were sent to the Test Execution issue of the first feature, and that the 2nd Test Execution doesn't have the results.

Here are the examples of the feature files:


Feature: feature number 1

Scenario: Scenario number 1
# Some test description

Scenario: Scenario number 2


Feature: feature number 2

Scenario: Scenario number 3
# Some test description

Scenario: Scenario number 4

In this case, EXEC-1 will contain test results for tests 1-4, and EXEC-2 will remain the same.

How can I fix this?

0 answers

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events