It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

XRAY REST Request Get latest testruns by given test plan key

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

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

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.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you