[API] Ability to get all test case ID from a specific test run
closed
S
Stanislav Kolkov
Make this endpoint
to return all test cases' ID it contains like this one works with test plan
Ilya Volkov
closed
Ilya Volkov
Stanislav Kolkov Hi there!
You can include in your request an additional query params "include" which allows you to also get IDs of all cases from a specific run.
Here's how the endpoint will look like: GET /v1/run/MROCKET/547?include=cases
Here's an example of a response:
{
"status": true,
"result": {
"id": 547,
"title": "Express run 2022/01/12",
"description": null,
"status": 0,
"status_text": "active",
"start_time": "2022-01-12T19:28:18+00:00",
"end_time": null,
"public": false,
"stats": {
"total": 5,
"untested": 4,
"passed": 1,
"failed": 0,
"blocked": 0,
"skipped": 0,
"retest": 0,
"in_progress": 0,
"invalid": 0
},
"time_spent": 2000,
"user_id": 1,
"environment": null,
"milestone": null,
"custom_fields": [],
"tags": [],
"cases": [
18,
23,
23,
23,
23
]
}
}
Take a look at this reference, not the "QUERY PARAMS" section: https://developers.qase.io/reference/get-run
Hope this helps!
S
Stanislav Kolkov
Ilya Volkov: That's it! Thank you very much.