Refer a Complete help documentation of Open Rest APIs.
To get the execution status of test cases linked to a test suite via rest API please follow the below steps.
Under APIary refer Admin > Get Info Service > Get Info
Request Headers
From the response get the following details
Under APIary refer Test Suite > Fetch Test Suites > Get list
{ "getSubEntities": true, "viewId": <Test Suite view ID captured from Get Info>, "folderPath":"/Project_Name", (for example : Project Name is MAC, then specify "/MAC") "start": 0, "limit": 50, "page": 1 } |
Response
Under APIary refer Execution > Fetch Executions > Get List
Request Headers
{ "tsID": 211487, "page": 1, "start": 0, "limit": 10 } |
Response
Under APIary refer Executions > Get Test Case Run IDs > Get List
Request Headers
To view the test case runs with all the statuses, remove the filter parameter OR to fetch for a certain status, specify the "runStatusID" fetched from the Get Info Service API call from Step 1.
{ "start": 0, "page": 1, "limit": 50, "viewId": 23858, "tsrunID": "448410", "filter": "[{\"value\":[33569],\"type\":\"list\",\"field\":\"runStatusID\"}]", "udfFilter": "[]", "showTcWithDefects": false } |
Response
{ "data": [ { "tsRunID": 107021, "tcRunID": 6600425, "tcID": 1113999, "tcVersionID": 1130320, "projectID": 1707, "runStatus": "Passed", |