How can I update Xray Test Execution or Test Cases with Postman or Newman Test Results? Edited

Guys,

I am fairly new to API testing, moreover API automated testing.  I am familiar with manual testing in Postman Pro and running test collections with Postman Runner. I am also familiar with running collections using Newman from Postman API Collections endpoint and from a JSON file.

What is the best approach and software tools to use to update Xray Test Cases or and Xray Test Execution in Jira with my Postman test results. Furthermore, if there are any code examples (Python etc.), it will be greatly appreciated.

 

Thanks

 

1 answer

This widget could not be displayed.

Hi Rohan Russell,

 

If you want to update Test Executions or Test issues in Xray, you can use Xray's built-in REST API.

From our understanding, you need to get visibility of the automated tests implemented in Postman.

From Newman's Github project page, it seems that it is able to generate a JUnit XML report. https://github.com/postmanlabs/newman#junitxml-reporter-options

Thus, you can use it to submit the results to Xray by invoking the REST API for the submission of JUnit results (either the standard or the multipart variant), as detailed here: https://confluence.xpand-addons.com/display/XRAY/Import+Execution+Results+-+REST 

 

You may want to give a look at this page (https://confluence.xpand-addons.com/display/XRAY/Integrating+with+Testing+Frameworks) which has some tutorials related with with automated testing, including JUnit and its capabilities.

 

Best regards,

Xpand Add-ons Team

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Jul 25, 2018 in Marketplace Apps

Jira Cloud and Bitbucket Cloud Integration with Microsoft Teams

One of the newest products in the Microsoft family - Microsoft Teams,  is a chat-based hub for teamwork that integrates all the people, content, and tools your team needs to be more engaged and ...

729 views 0 3
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you