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! 😊

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events