You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
When I import from Junit XML using the API (/rest/raven/1.0/import/junit?...) the generated Test Execution has a name like this...
Execution results - test_results.xml - [1536180193094]
Can I get more control over the name?
I definitely don't want the long string of digits, unless they have some purpose that I don't understand (-:
I was having the exact same problem.
I finally found the answer is to use what is called a multipart request.
In the section 'Xray JSON results Multipart' from the following link there is the example I used to have some basis.
Import execution reports
I only used the xml report as result and added a json file as info.
I tried this with Postman first to try it out and worked.
Here is the link on how to do multipart requests in postman:
Postman multipart request
Hi Paul,
Concerning the naming, it is done automatically based on the JUnit report as described in https://confluence.xpand-addons.com/display/XRAY/Taking+advantage+of+JUnit+XML+reports .
Test Cases are imported to Xray’s Generic Test issues, and the “classname” and “name” attributes are concatenated and mapped to the “Generic Test Definition” field of the Generic Test. If a Test already exists with the same “Generic Test Definition”, then it is not created again.
Best regards,
Xray Team
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What about the naming of the Test Execution (not the Test Cases)?
Could it be handled anywhere?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did anyone manage to find out if there is a method to control the test execution name? I cannot find an answer and wondering if it has been solved.
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.