I'm trying to automate the import of junit tests into XRay in jira cloud using the "/api/v1/import/execution/junit/multipart" service
I've got the result file from the test execution and I've create a json file for the test execution fields (labels, components,etc) and another json file for the test case fields. The test case json looks like this:
{
"fields": {
"project": {
"id": "10094"
},
"reporter": {
"id": "5d71313eb605d80dc014d6b6"
},
"assignee": {
"id": "5d71313eb605d80dc014d6b6"
}
}
}
When I call the rest service it runs successfully and returns the details of the execution record created. When I check the Jira UI, I can see the execution record (with the values set from the json file) and I can see see each of the tests in the junit result was created. However none of the values from the test case json file has been set. Is there something wrong with this documentation https://confluence.xpand-it.com/display/XRAYCLOUD/Import+Execution+Results+-+REST#ImportExecutionResultsREST-JUnitXMLresultsMultipart and am I missing something from my json file ?
I noticed it works when the test doesn't already exist and is created during the import. But if the test case already exists then it doesn't update the test case with values in the fields. Is there a way I could first the update
Hi Niall,
This is a very specific case that we have to analyze with more data. Can you please contact us through our Service Desk? We have to make tests to understand the question.
Thank you!
Best Regards,
Team Xray
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.