Skip to content
中文

Retrieve one case's execution in a run

Code Mode: praxis.devops.testRuns.executions.retrieve

HTTP: GET /devops/v1/test-runs/{run}/executions/{case}

Read one case’s execution inside one run, including every attempt with its own duration and message. Use it after a run reports a failure to see whether the case failed once and passed on retry — that is what flaky true means — and to reach the evidence files a triage needs. Both ids come from the run and case reads; an execution that does not exist for that pair is NOT_FOUND rather than an empty answer.

Signature

praxis.devops.testRuns.executions.retrieve(args:{path:{/** e.g. "trn_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ run:string;/** e.g. "tc_9f2b1c0d8e7a6b5c4d3e2f1a0b9c8d7e6f5a4b3c2d1e0f9a8b7c6d5e4f3a2b1c" */ case:string}}):Promise<{/** The run this execution belongs to, from the run list or create answer. e.g. "trn_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ run:string;/** The case that was executed, retrievable with a case read for its declaration and state. e.g. "tc_9f2b1c0d8e7a6b5c4d3e2f1a0b9c8d7e6f5a4b3c2d1e0f9a8b7c6d5e4f3a2b1c" */ case:string;/** The case's title as it read when this run executed it, which may predate a later rename. e.g. "a route the table does not name is a 404 and never reaches the service" */ title:string;/** The repository package the executed case lives in. e.g. "services/devops" */ package:string;/** Path of the file that declared the case, relative to the repository root. e.g. "services/devops/spec/features/http-face/http-face.feature" */ file?:string;/** How this execution ended. e.g. "failed" */ status:"passed"|"failed"|"skipped"|"pending"|"other"|"timed_out"|"cancelled";/** True when the case failed and then passed on a retry inside the same run — the fact behind the run's flaky count. e.g. false */ flaky:boolean;/** True when the case was quarantined at the time of the run, so its failure was recorded but did not fail the verdict. e.g. false */ quarantined:boolean;/** How long the case took in milliseconds, summed over its attempts. e.g. 412 */ durationMs:number;/** Every attempt this case took, in order; more than one is what a retry or a flake looks like. */ attempts:Array<{/** Which try this was, counting from 1. e.g. 1 */ attempt:number;/** How this try ended, using the same vocabulary as the execution it belongs to. e.g. "failed" */ status:"passed"|"failed"|"skipped"|"pending"|"other"|"timed_out"|"cancelled";/** How long this try took in milliseconds. e.g. 380 */ durationMs:number;/** The failure message for this try; absent when it did not fail. e.g. "expected 404, received 400" */ message?:string;/** Diagnostic text for this try, such as a stack trace; absent when none was reported. e.g. "at Object.<anonymous> (http-face.steps.ts:57:3)" */ trace?:string;/** RFC 3339 UTC time this try began; absent when the tool reported no timing. e.g. "2026-11-03T09:04:00Z" */ startTime?:string}>;/** The failure message the tool reported, as written; absent for executions that did not fail. e.g. "expected 404, received 400" */ message?:string;/** The step that failed, when the tool identifies one; absent for tools that report only a message. e.g. "Then the answer is HTTP 404" */ failedStep?:string;/** Stack trace or equivalent diagnostic text; absent when the tool reported none. e.g. "at Object.<anonymous> (http-face.steps.ts:57:3)" */ trace?:string;/** Files recorded as evidence for this execution, such as screenshots or reports; empty when the tool attached none. */ evidence:Array<{/** File name as the producing tool wrote it, for display when listing evidence. e.g. "http-face-404.png" */ name:string;/** Media type of the stored file, which decides whether it can be shown inline. e.g. "image/png" */ contentType:string;/** Identifier of the stored file, used to fetch its contents through the file API. e.g. "file_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ fileId:string;/** Size of the stored file in bytes. e.g. 48123 */ size:number}>;/** True when the executed case was not in the catalog at that commit, so a result exists for a case the project no longer knows; it is surfaced rather than dropped e.g. false */ uncatalogued:boolean}>;

Parameters

NameInTypeRequiredDescription
runpathstringyesThe run whose executions you are reading, from a run list or create answer.
casepathstringyesThe case to read inside that run, from the run’s execution list or the project’s case list.

Responses

StatusContent typesDescription
200application/jsonThe execution for that case in that run, with its attempts and evidence.
401application/jsonThe API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
403application/jsonThe credential carries no organization, or that organization cannot reach this project; use a key belonging to the project’s organization. No cross-organization read is possible.
404application/jsonNOT_FOUND means that case was not executed in that run — it was not selected, or the run had not reached it when it was cancelled. List the run’s executions to see which cases it actually holds.
500application/jsonINTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.