Forums

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

Is there a way compare two Test Executions (xray)?

Walter White October 28, 2021

Hello,

we would like to compare different xray Test Executions e.g. the current one for a dev branch and one for some PR to see how that PR affects the results.

Of course, it would be possible to get this result using the API and do some magic.

But is there a better way to do this, e.g. a plugin or some Jira functionality?

 

3 answers

0 votes
Walter White November 8, 2021

I also asked the xray support and there was not suitable answer.

Our developers must be able to see the impact of each PR on a defined test plan. The baseline is the result of the test plan for e.g. the current development branch.

It's a rather simple thing and I put it together myself using the xray API in a few hours.

The following is now added as a PR comment (with some markdown) once the webhook-triggered tests are done.

test.png

pat.mayer
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 22, 2022

Hi can you explain how you got it done?

Walter White July 22, 2022

There is a Python script bound to a commit or push hook. I am reading the test results using the Xray REST API for the associated test run for this PR and for the main branch. Then I compare the existence and the results for the tests. Afterwards I put together a Markdown table with the results and add that to the PR as a comment using the Bitbucket API.

Like pat.mayer likes this
0 votes
Rogério Paiva - Xray Xporter
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.
November 8, 2021

Hi @Walter White ,

Yes, you may use the Document Generator as @Damian Wodzinski suggested.
Or you may use the Test Execution report, please check its documentation page here: https://docs.getxray.app/display/XRAY/Test+Executions+Report

Thank you.

Kind regards,
Rogerio Paiva [Xray Support Team]

0 votes
Damian Wodzinski
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.
October 28, 2021

How to compare them? Which data would be compared?

For simple puproses, you can use xray Document generator to create a template with necessary fields. Then just filter the runs, and generate a document. The data you need can be exported to excel this way, and  there you can compare it.

Suggest an answer

Log in or Sign up to answer