Forums

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

Xray JUnit XML error importing execution results

Claire Pearson
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!
June 13, 2023

Hi, I have recently started using Ranorex for test automation, which has generated a junit xml results file. I am trying to use postman to import the results file into Xray, but I am getting a 400 error 

"42060485-a6e0-41c5-80e9-32bdcae2df97 is not a test issue or is not a valid issue key."
This suggests to me that it is trying to find an existing Test in Xray, but one does not yet exist (I was under the impression that one would be created if it didn't already exist).
I am using a POST method, with the following URL: https://<my Jira url>/rest/raven/2.0/import/execution/junit?projectKey=<my project key>
For authorisation, I'm using Basic Auth (server/data centre Jira), using my username and password for logging into Jira.
For the Body, I have selected 'form-data' and added key 'file' and for value I attached my file, and I changed the Content type to 'text/xml'.
Many thanks in advance for any help you can give me!

1 answer

0 votes
Claire Pearson
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!
June 13, 2023

Not sure how to add screeshots to the original post, so adding here:
image.pngimage.png

Suggest an answer

Log in or Sign up to answer