Forums

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

Importing Execution Result to Xray

Pabblitoss
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!
October 31, 2023

I'm trying to send JUnit XML Reports like this:

curl \
-H 'Content-Type: multipart/form-data' \
-u user@gmail.com:password \
-F "file=@result.xml" \
https://myjira.atlassian.net/rest/raven/2.0/api/import/execution/junit?testExecKey=DEV-2&projectKey=DEV

And, I get error:


<?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>404</status-code><message>null for uri: https://myjira.atlassian.net/rest/raven/2.0/api/import/execution/junit?testExecKey=DEV-2&amp;projectKey=DEV</message></status>%

What am I doing wrong?

1 answer

0 votes
Stefan Salzl
Community Champion
November 3, 2023

Hi @Pabblitoss 

welcome to the Atlassian Community.

From your tags I can see that you are working in cloud. Xray has its own URL in cloud. This is the base url:

The REST API base URL for all endpoints is https://xray.cloud.getxray.app/

see the docu:
https://docs.getxray.app/plugins/servlet/mobile?contentId=31622359#content/view/31622359

 

And furthermore for importing test execution results:

https://docs.getxray.app/pages/viewpage.action?pageId=68411322#ImportExecutionResultsRESTv2-JUnitXMLresults

 

Best
Stefan

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events