Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Missing data in the junit results import request while trying to import JUnit results

{
"error": "Missing data in the junit results import request"
}

 

i get above error when i try to import JUNIT execution results using XRA Cloud API 

https://xray.cloud.xpand-it.com/api/v1/import/execution/junit

3 answers

Hi Sameen, 

 

Can you please open a support ticket in our Portal

We'll need more information to better address the question.

 

Best Regards,

Team Xray

Hi,
Im facing same issue.
Any updates?

I got this working with some help from Portal.

First you need to authenticate, You can do that using:


curl --location --request POST 'https://xray.cloud.xpand-it.com/api/v1/authenticate' \--header 'Content-Type: application/json' \--data-raw '{ "client_id": "{JiraClientID}","client_secret": "{JiraClientSecret"}'
`

After that you can use the bearer token to upload the document to jira using:

curl -H "Content-Type: text/xml" -X POST -H "Authorization: Bearer $token" --data @"junit.xml" https://xray.cloud.xpand-it.com/api/v1/import/execution/junit?projectKey={yourProjectKey}

You can add the bearer token to the header or use Bearer authentication if you're using Postman. You can add the xml results to the body by using the raw option and just adding the resultst there.

image.png

This did it for me the response will contain the created test execution if you didn't provide any.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you