Import test executions REST api returns 404

Neha Shah
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!
July 4, 2024

Hi,

 

I have a test execution issue created in JIRA XRAY (SCRUM-7). I want to call the rest api to import the test executions (cypress tests).

I'm using the following curl - 

curl -H "Content-Type: multipart/form-data" -u username:token -F "file=C:\results.xml" https://username.atlassian.net/rest/raven/1.0/import/execution/junit?projectKey=SCRUM

I get 404 null.

I also tried the following command - 

curl -H "Content-Type: text/xml" -H "Authorization: Bearer token" -F "file=C:\results.xml" https://username.atlassian.net/rest/raven/1.0/import/execution/junit?testExecKey=SCRUM-7

The response is - 

{"error": "Failed to parse Connect Session Auth Token"}

Please suggest how to resolve this issue.

1 answer

0 votes
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.
July 16, 2024

 Hi @Neha Shah 

 

Welcome to the community,

Please see if the following article is of assistance: 

https://docs.getxray.app/display/XRAYCLOUD/Testing+web+applications+using+Cypress 

 

If not, did you have the chance to contact our support? You can find them here!

Best

Francisco Fonseca

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events