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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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
TAGS
Community showcase
Published in Marketplace Apps & Integrations

How to log work and track time in Jira when a person is part of multiple teams

  The manager’s daily activities include a list of challenges to reach high levels of efficiency for their teams. Part of these challenges is related to how to deal with the worklog systems sin...

68 views 2 1
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