跳转到内容
EN

List a run's executions

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

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

List the executions recorded against one run — one entry per case the run selected, with its status, duration, attempts and evidence. Use it to find the case that failed, or to compare a repeat run against the previous one case by case. Reads happen while the run is still going, so a case may still be pending; filter by status to watch only the failures.

签名

praxis.devops.testRuns.executions.list(args:{path:{/** e.g. "trn_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ run:string};query?:{/** e.g. 20 */ pageSize?:number;/** e.g. "pt1.eyJvIjoyMH0" */ pageToken?:string;/** e.g. "result=failed" */ filter?:string;/** e.g. "createTime desc" */ orderBy?:string}}):Promise<{/** The executions on this page. */ items:Array<{/** 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}>;/** Cursor for the next page; an empty string means this was the last page, which is the only signal a list is finished. e.g. "pt1.eyJvIjoxMDB9" */ nextPageToken:string}>;

参数

名称位置类型必填说明
runpathstring是The run whose executions you are reading, from a run list or create answer.
pageSizequerynumber否How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone.
pageTokenquerystring否The cursor from the previous page’s nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.
filterquerystring否AIP-160 equality filter over one declared field, for example result=failed to read only a run’s failures. Fields an execution list does not declare are refused with INVALID_ARGUMENT rather than ignored.
orderByquerystring否Comma-separated fields to order by, each optionally suffixed with desc, for example createTime desc. Only the fields the resource declares are accepted; anything else is refused so an ordering typo cannot silently return a different order. Omitted uses the resource’s own order.

响应

状态码内容类型说明
200application/jsonOne page of executions; nextPageToken is empty on the last page.
400application/jsonINVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written.
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/jsonRUN_NOT_FOUND means no run with that id exists in this organization; list the project’s runs and use an id from that answer. A run belonging to another organization reads the same way.
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.