XRAY import multiple results to one Test Execution for Cucumber

lucy.goddard.external January 21, 2020

we would like to be able to import multiple results to one Test Execution for Cucumber. 

https://jira.xpand-it.com/browse/XRAYJENKINS-5 was added to Jenkins R1.3.0 but does not support cucumber. Are there any plans to extend this feature to Cucumber ?

1 answer

0 votes
José Domingues _Xray_
Atlassian Partner
January 28, 2020

Hi Lucy, 

We support this feature but under a different name (and only for Xray Server/DC). In Jenkins, if you are to import several Cucumber result files by using the "Compressed .zip file" option.

 

If that doesn't fit your needs, you can use the Xray Cloud/Server Rest API by using a bash script step in your Jenkins project.

Best regards,

Xray Team

rgnair April 16, 2020

hi @José Domingues _Xray_ 

In my project there is 2 feature files and its generating a single cucmber.json file with two arrays for each feature file.I splitted this cucmber json to 2 seperate json file json1&json2 for each feature file.i zipped this file to a single folder.

My intention is to import these two results in separate execution keys through a single curl command.initially i posted the cucumber.json with below curl command and then whole results are posting in one execution key(test execution key)

POST /rest/raven/1.0/import/execution/cucumber

Then i tried with zip file of above Json1&json2 with below bundle command.Its not throwing any messages in curl terminal and no updates in execution  key

POST /rest/raven/1.0/import/execution/bundle

can some one advice me on this?

Bhuvnesh Sainani April 23, 2021

@rgnair Did you found any solution to this ? I am also looking for the same. 

Rogério Paiva - Xray Xporter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 17, 2021

Hi @rgnair and @Bhuvnesh Sainani ,

Since the two reports are found inside the same file, and there is not tag referring Test Executions keys, they will be imported in a single Test Execution.

The only alternative is to have in each report a tag referencing a different Test Execution key, that already exists in Jira. In this case, Xray will map the report to the respective Test Execution key.

If you need additional help, please contact the Xray Support (http://xraysupport.xpand-it.com ) so that we can request additional information and help further.

Kind regards,
Rogério Paiva [Xray Support Team]

C_ Bönitz June 3, 2024

Hi @Rogério Paiva - Xray Xporter , I am trying to do the same but I am using Junit .xml files. If I send one .xml file with 2 test results for an identified test (using test_key) than I receive this results in a single run in Xray (see images below).

Is there in the moment still no option to tell xray to generate a different run for each of the results in the .xml file? It would avoid calling the api hundred times for each test iteration.

Kind regards,

Carla Bönitz

sending2ResultsWithComments.PNGtestRunfor2ResultsWithComments.PNGDetailsSingleTestRunfor2ResultsWithComments.PNG

 

Deleted user June 24, 2024

Hi,

I am also facing issue with the bundle end point,

I am getting a 404 error.

<status-code>404</status-code><message>null for uri: 

can you please help

Basically looking for some example code for uploading a zipped file to jira, creating the test execution for a test and uploading the zipped file. can you please help.

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events