{
"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
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.
This did it for me the response will contain the created test execution if you didn't provide any.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.