Forums

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

How to query Test Execution using Rest API

Kunal
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!
March 25, 2021

Hi,

I am using Jira cloud and I installed the Xray add-on. and my question is how to query Test Execution with Rest API. I used below but getting 404 error.

 

https://jiraserver/rest/raven/latest/api/testexec/{testexecution ID}/test

The above URL works fine if the jira hosted on my data center but it doesn't work for cloud. Any particular reason? Please suggest what should I use for Cloud version to get the test case details under a test execution

 

Thanks!

1 answer

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.
March 28, 2021

Hi @Kunal 

The Jira Cloud architecture is very different from the Server, so there are some differences between the two apps. Actually, Xray Server and Xray Cloud should be understood as two different apps.

In Xray Cloud you should use the GraphQL API query getTestExecutions, in the documentation page there are some examples of usage.

If you need further help, please contact the Xray Support (http://xraysupport.xpand-it.com).

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

Suggest an answer

Log in or Sign up to answer