Forums

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

Updating Test Execution with Xray Cloud API

Vincent Keltjens
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!
August 12, 2020

Hello,


Our team has been looking to implement Xray in our workflow and we want to be able to run SpecFlow tests in our pipeline.

I've been trying to update my Test Executions from Test Runs, by using the REST API, as specified in your documentation:
https://docs.getxray.app/pages/viewpage.action?pageId=62269785
https://docs.getxray.app/display/XRAY/Import+Execution+Results+-+REST
https://docs.getxray.app/display/XRAY/Import+Execution+Results

But the problem I'm facing is that it keeps generating a new Test Execution for each run, instead of updating the existing one.
The tags seem to be correct, my .json (cucumber) looks quite identical to the one in the docs, but still it keeps making new Test Executions.

I was wondering whether this could be functionality that is only available in the Server+DC version?  As we are using the Cloud version of Xray, and the docs of the Cloud version don't really specify this scenario.

 

Another thing that strikes me is that the docs say: "When using the REST API, you can specify an existing Test Execution issue in Jira; if the Test Execution key is missing, Xray will create a new Test Execution issue based on the information provided." --> But in the cucumber JSON output format, there's no way to specify this, other than using the Tags

 

If not, I'd be happy to supply more detailed information on my issue.

1 answer

1 accepted

0 votes
Answer accepted
Sergio Freire - Xblend
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.
August 14, 2020

Hi @Vincent Keltjens

In order to help you with this, we will need to request some more information, so we suggest that you create a ticket in our support desk so that we can help you the best we can. 

Best Regards, 

Sérgio Freire, Solution Architect and Testing Advocate @Xray

Personal blog on testing, Agile and software development: https://sergiofreire.com

Follow me on Twitter: https://twitter.com/darktelecom

Naresh Rajendiran
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!
December 21, 2020

Hi,

I am also facing the same issue, looking for some help.

Also created a support ticket

Vincent Keltjens
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!
December 22, 2020

In the end, it didn't work out how we wanted to, so we gave up on this way...

Like Yanet Morales likes this
Naresh Rajendiran
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!
December 22, 2020

Thanks for the update

Priyanka Gupta September 20, 2023

Do we have solution for this?

Suggest an answer

Log in or Sign up to answer