Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Differentiate between first time test execution import and next time test execution import in xray

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



0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

471 views 5 18
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you