XRay Server REST API features

Yanis May 3, 2022

Hi,

When getting Test Execution given a saved filter ID, Test plans with their summary aren't included.

Is there a way to get test executions given a saved filter ID and at least tests and test plans keys.

My goal is to measure a more accurate success rate of tests using steps status. The one given in XRay is too global : for e.g, considering a 20 steps test, given success rate is 0% even if only one step failed.

So my other question is : is there a way to get a more accurate success rate a part from exporting data (REST API is fore automation purpose)

2 answers

1 accepted

0 votes
Answer accepted
Yanis May 5, 2022

Found a workaround. For those who encountering the same issue :

(Steps below are for a Power BI use)

1. Use this URI or another one to get test executions :

http://yourserver/rest/raven/1.0/testruns?savedFilterId=Id

I personnally preferer this one as is it gives the global picture of existing test executions

 

2. Then use this one :

http://yourserver/rest/raven/1.0/api/test/{key}/testplans

And replace {key} by testKeys you got in first step

This way you have your list of test executions and related tests and test plans.

Hope it helps

1 vote
Yanis May 4, 2022

Any idea on the answer ?

Clark Everson
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 4, 2022

Hi @Yanis 

If you aren't receiving response here after a couple of days I would recommend reaching out to the vendor. If they provide you a solution you can then post it here so others know the answer!

Keep in mind almost all apps are made by external vendors, while many have representation on the community not all do.

 

Best,
Clark

Suggest an answer

Log in or Sign up to answer