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.
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.
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.