[Xray] How to use XrayImportBuilder to pass Cucumber Json to a specific test execution?

Christian Wansart
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!
March 4, 2021

Hello,

I am trying to send the Cucumber.json results via Jenkins using the XrayImportBuilder step to pass the results to Xray. But instead of using existing test exeucutions it creates new ones every time.

Is there a way to pass the test results to an existing test execution?

Thanks in advance!

1 answer

1 accepted

1 vote
Answer accepted
Christian Wansart
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!
March 4, 2021

I found a solution. 

First my feature file looked like this:

Feature: My Test Feature
@DEMO-123
Scenario: My Test Scenario
Given ...
When ...
Then ...

But I forgot the annotation on the feature which will link the test to the existing test execution:

@DEMO-111
Feature: My Test Feature
@DEMO-12
Scenario: My Test Scenario
Given ...
When ...
Then ...

Suggest an answer

Log in or Sign up to answer