When the junit xml is imported into the xray using https://xx.xx.xx.xx/rest/raven/1.0/import/execution/junit?testExecKey=XRAY-XXXXX
for the first time the expected response is
{ "testExecIssue": { "id": "410972", "key": "XRAY-308121", "self": "https://xx.xx.xx.xx/rest/api/2/issue/410972" }, "testIssues": { "success": [ { "id": "410981", "key": "XRAY-308130", "self": "https://xx.xx.xx.xx/rest/api/2/issue/410981" }, { "id": "410982", "key": "XRAY-308131", "self": "https://xx.xx.xx.xx/rest/api/2/issue/410982" } ] }}
Here the response has testIssues list created. This is as expected because new tests are created and hence testIssues have the list. But the same test(with the same classname+name) combination is imported again for the same test execution, the expected response should not have testIssues list since no new issues would be created.
The response should just have
{ "testExecIssue": { "id": "410972", "key": "XRAY-308121", "self": "https://xx.xx.xx.xx/rest/api/2/issue/410972" }
Please correct me if my understanding is not correct.
But whenever an import is made, I get the response with testIssues tag listing the same issues. How do I differentiate between the first time import and next time import??