Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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:

feature1.feature:

@REQ_Epic-1
@EXEC-1
Feature: feature number 1

@TEST_TST-1
Scenario: Scenario number 1
# Some test description

@TEST_TST-2
Scenario: Scenario number 2

feature2.feature:

@REQ_Epic-2
@EXEC-2
Feature: feature number 2

@TEST_TST-3
Scenario: Scenario number 3
# Some test description

@TEST_TST-4
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
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events