Forums

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

XRAY REST Request Get latest testruns by given test plan key

c6747695
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!
October 30, 2019

Hi,

I'd like to request jira for all test executions of a given testplan plus a given filter like execution status or execution start date.

According to the documentation on page https://confluence.xpand-it.com/display/public/XRAY/Export+Execution+Results+-+REST I get all test exections with url:

https://host/jira/rest/raven/1.0/testruns?testPlanKey=tpKey

Means the result end in an array with e.g. 7 entries.

Here comes my problem. The plan has 3 test cases. 1 with 2 exec; 1 with 3 exec and 1 with 2 exec. I receive all 7. My interest would be only getting these executions, which are on a specific date or between a timestamp. Something like that:

 

https://host/jira/rest/raven/1.0/testruns?testPlanKey=tpKey&start=20191030

 

The information are in the json. I would expect only 3 of 7 result values like Jira shows for the 3 different test cases:

[
{
"id": 182763,
"testExecKey": "proj-key01",
"testKey": "proj-key02",
"status": "FAIL",
"type": "Manual",
"start": "2019-10-23T11:47:26+02:00",
"finish": "2019-10-23T11:47:41+02:00",

....

2 answers

0 votes
Bindhu February 7, 2020

Did anyone got answer for the above query?

I want to fetch the status of all tests under testplan key based on date filter say like between some execution fininsh date.

0 votes
José Domingues _Xray_
Atlassian Partner
October 31, 2019

Hi,

Can you please open a ticket in our Support?
This is a specific inquiry and we have to completely understand the scenario to help you.

Best regards,
Team Xray

Suggest an answer

Log in or Sign up to answer