Forums

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

Update an existing Test Execution in Xray Cloud with cucumber.json via API

Jennifer Groß
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!
January 24, 2025

I would like to add a cucumber.json file to an existing Test Execution and update the test execution with new results. Currently, I am using the endpoints /cucumber and /cucumber/multipart, and they work as expected and create a new issue, e.g.:

curl -H "Content-Type: multipart/form-data" -X POST -F info=@issueFields.json -F results=@cucumber.json -H "Authorization: Bearer -token" https://xray.cloud.getxray.app/api/v2/import/execution/cucumber/multipart

 

What I have tried so far:

 

  1. https://xray.cloud.getxray.app/api/v2/import/execution/cucumber/multipart/<issueKey>
  2. https://xray.cloud.getxray.app/api/v2/import/execution/cucumber?testExecIssueKey=<issueKey>

 

My question:

Is there a way to update an existing Test Execution issue using the Xray Cloud API (e.g., by specifying the testExecutionKey or another method)? If yes, how should the curl command look?

Thank you for your help! 😊

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Francisco Fonseca _Xray_
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.
February 3, 2025

Hi @Jennifer Groß ,

Welcome to the community,

See if this documentation is helpful to you: Cucumber JSON results Multipart

If not, I would recommend you to reach out to our support here

Best, Francisco

Jennifer Groß
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 4, 2025

Hello @Francisco Fonseca _Xray_ ,

Thank you for your answer. 

The docu is already known but unfortunately doesn't help.

Also, it looks like there's a small copy-paste mistake in the support email link :D
Could you please send me the correct email address?

Many thanks in advance,
Jennifer Groß

Like • Francisco Fonseca _Xray_ likes this
Francisco Fonseca _Xray_
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.
February 4, 2025

Hi @Jennifer Groß , thank you for letting me know.

This should be the link: https://jira.getxray.app/servicedesk/customer/portal/2

Best, Francisco

Like • Jennifer Groß likes this
TAGS
AUG Leaders

Atlassian Community Events