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

Link Playwright JUnit xml report with Xray test issue by the ISSUE KEY



I'm using Playwright Node.js to script some automated test and i'm using the JUnit reporter which provides me xml reports as described in the Xray doc about Playwright 

I have on the Xray side some Generic test issues already created

However, when importing the xml report file into Xray, in order to avoid any additional issue creation, the Generic Test Definition field for the test issues already created on xray is used to identify and match the testcases 

In order to match them properly , the generic test definition has to be as <classname>.<name> according to the xml file


I would like to know if it is possible in any way to configure the Playwright xml and match it with the already created test issues not with the Generic test definition field but with the Test issue key

1 answer

Hi @Paul DINH GIA 

I am not an expert on Playwright Node.js, so I cannot help you on that side.

But from Xray, you can upload the current reports you have and check the Test cases it created. Copy the Test Definition from those Tests into the already created Tests (and delete the automatically created).

Xray used the Test Definition to match existing Generic Test cases, so if you have the correct text in the Test Definition, it will match those tests.

One approach to finding the correct Test Definition is to upload some test reports and check the automatically created Tests and the Test Definition. You may copy the text of the Test Definition into another Test case; ensure that you only have one with the same Test Definition. 

Thank you.

Kind regards,
Rogério Paiva [Xray Support Team]

Thank you @Rogério Paiva - Xray Xporter for the answer, it was very clear. I am currently using your approach to find the Test Definition of my xml report imported. The test definition is actually filled with the <classname>.<name> meta-datas of a testcase in the xml file

I'm actually discussing with Playwright support team to see if it is possible to add a specific meta-data called "issue-key" or "key" for instance. If something like that is added, would it be possible to link this specific meta-data to the issue key directly without using the test definition ?

Hi @Paul DINH GIA 

Xray most likely will not link since it uses the Test Definition matching with existing Jira/Xray issues by design.

However, please contact Xray Support ( so that we can analyze your use case.

Thank you.

Kind regards,
Rogério Paiva [Xray Support Team]

Suggest an answer

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

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

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