X-Ray - Mapping test execution results to correct Jira IDs

himanshu_tomar July 14, 2019

I am trying to integrate the testng execution results with X-ray and Jira. For this , I am importing the testng-results.xml file to Jira with X-Ray API. I want to know how i can map the Jira IDs with that output coming in xml because the x-ray takes the method name from the xml and map it with the summary field of the Jira ID and if it is not matched , it creates a new Jira ID.

1 answer

0 votes
Prabhu May 5, 2020

Any updates on this?

Sergio Freire - Xblend
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 31, 2020

Hi everyone,

the integration is detailed here: https://confluence.xpand-it.com/display/XRAY/Taking+advantage+of+TestNG+XML+reports

 

You can see a concrete example here: https://confluence.xpand-it.com/display/XRAY/Testing+using+TestNG+in+Java

You have to use a custom listener if you wish to override the automatic mapping/autoprovisioning based on the classname.

You can use the custom code found on the previous example, or you can use the following maven plugin for a cleaner integration :)

https://github.com/bitcoder/xray-testng-extensions

 

Note: you can always reach out Xray support team in case you have technical doubts or any other issues.

Regards
Sergio
 
=======================================
Personal blog on testing, Agile and software development: https://sergiofreire.com
Follow me on Twitter: https://twitter.com/darktelecom

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events