Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

xray - error importing execution results

Stefan Salzl
Community Champion
March 7, 2022

Hi Community,

I am trying to import test results from automated tests but get following error:

Error Importing Execution Results

User with account id <> doesn't have permission to access all issues needed in this endpoint.

setting is:

  • cypress
  • mocha-junit-reporter

within jira:

  • created sub-test-execution within a story
  • consists of 3 test cases
  • trying to import test-result.xml from UI

 

The strange behaviour is:
I imported a result file successfully with the same (my) user. Afterwards a new sub test execution was created in jira and also the automated tests (with cypress) were executed again. Jira/xray throws an error when newly created test-result-file is imported (with same user than before). following error message:

image.png

 

Anybody familiar with that behaviour or is there a special reason for this?

 

Thanks in advance.

Best
Stefan

1 answer

1 accepted

0 votes
Answer accepted
Stefan Salzl
Community Champion
March 8, 2022

I found the solution:

The very first time I imported the test results I wasn‘t aware of how results could map to already existing test cases (let‘s say „test A“ and „test B“ in this example). Hence new testcases were generated in status backlog („test C“ and „test D“).

Even after editing the original tests (A & B, Definition in jira test issue magches test result output) so that test result would refer to them my test results were always trying to refer to C & D (which wasn‘t possible because in xray settings I forbid executing test cases in status „Backlog“).

After deleting C & D and doing the import again everything worked as expected.

Hope this could be helpful for anyone else dealing with a similar problem.

Besf
Stefan

Suggest an answer

Log in or Sign up to answer