The run’s cases, as a plan lists its own
const url = 'https://beta-api.plune.ai/v1/runs/example/cases?status=failed%2Cbroken&combination=1';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://beta-api.plune.ai/v1/runs/example/cases?status=failed%2Cbroken&combination=1' \ --header 'Authorization: Bearer <token>'Every case the run expected (configuration.expected, cases added with «Add tests» among them) or holds a result of — in that order, no duplicates, cases in the Bin left out — each with its title, type and keys: the list plune run grep <run> joins into one --grep, as plune plan grep does a plan’s (plune-ai/cli#85). status keeps the cases whose latest result here is counted under one of the statuses named, as the run’s counters count: a failure of a muted case is muted, not failed (#1247), and an earlier failure followed by a pass is a pass. failed,broken is what «Re-run N failed» takes. A case nobody got to has no status, so a status filter leaves it out. In a run with configurations (#1251) a case stands at the worst of its combinations — failed, broken, blocked, muted, passed, skipped in that order, each combination by its latest result — so a case that failed on Firefox alone is failed; combination reads one combination alone.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Query Parameters
Section titled “Query Parameters ”Example
failed,brokenOnly the cases whose latest result is counted under one of these — passed, failed, broken, blocked, skipped or muted: a comma-separated list, or the key repeated. None named is every case, run or not; a word that is not one of them is a 400.
Example
1Where each case stands in this combination of the run’s combinations alone (#1251), by its number — the page of a manual run in Chrome or in Firefox. A number the run has no combination for — any number, for a run without configurations — is a 400, as is anything but a number from 0 to 24.
Responses
Section titled “ Responses ”The cases
object
object
Empty when nothing points at the case.
An identifier another tool already uses for this test, so a report can find its case without anyone typing a Plune id. The order of kind is load-bearing: it is the ranking that decides which key wins when several match different cases.
object
Example
{ "cases": [ { "id": "6f1c2b3a-0000-4000-8000-0000000000c1", "title": "Checkout — empty cart @smoke @checkout", "type": "automated", "externalKeys": [ { "kind": "path-title", "value": "e2e/checkout.spec.ts > Checkout — empty cart" } ] } ], "count": 1}status names a status a run does not count by, or combination is not a combination of this run (#1251)
object
Example generated
{ "error": "example"}No / invalid token or session
No such run in your projects
object
Example generated
{ "error": "example"}