Hi,
I want to import junit results to Xray by api.
I try to do it by postman, and these are my details:
The Body:
The Authorization:
The results:
Hi @yael berman How are you doing?
Welcome to the community!
As you are using Jira Cloud, you would have to make things in a different way.
First of all, you cannot use Basic Authentication. You would have to generate an API Key (Client Id and Client Secret) in your Jira instance and then use it to make a call to XRay's Authentication Rest API. It will return a token to will that you will use in your second call.
As far as I understood, it is important to notice that you have to call the APIs that are exposed by Xpand-IT. You don't have to change the address to your domain. Based on your API Key, they will know what Jira instance they will have to affect.
The URL for authentication is: https://xray.cloud.xpand-it.com/api/v1/authenticate
The URL for Junit Import is: https://xray.cloud.xpand-it.com/api/v1/import/execution/junit
These are other links to their Cloud API documentation:
https://confluence.xpand-it.com/display/XRAYCLOUD/REST+API
https://confluence.xpand-it.com/display/XRAYCLOUD/Authentication+-+REST
https://confluence.xpand-it.com/display/XRAYCLOUD/Continuous+Integration+Tools
Hope this helps!
Thanks you for your reply,
It really helped me and solved the 404 issue.
But now Im getting 400. "error": "Missing data in the junit results import request"
Any idea how to solve it?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yael,
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.