get_runs
Retrieve test runs from a Qase project using filters like status, milestone, or time range to analyze testing progress and results.
Instructions
Get all test runs in a project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| search | No | ||
| status | No | ||
| milestone | No | ||
| environment | No | ||
| fromStartTime | No | ||
| toStartTime | No | ||
| limit | No | ||
| offset | No | ||
| include | No |
Implementation Reference
- src/index.ts:358-383 (handler)Handler for the 'get_runs' tool: parses input arguments using GetRunsSchema and invokes the getRuns helper function with the unpacked parameters..with({ name: 'get_runs' }, ({ arguments: args }) => { const { code, search, status, milestone, environment, fromStartTime, toStartTime, limit, offset, include, } = GetRunsSchema.parse(args); return getRuns([ code, search, status, milestone, environment, fromStartTime, toStartTime, limit, offset, include, ]); })
- src/operations/runs.ts:6-17 (schema)Zod schema defining the input parameters for the 'get_runs' tool, including required code and optional filters.export const GetRunsSchema = z.object({ code: z.string(), search: z.string().optional(), status: z.string().optional(), milestone: z.number().optional(), environment: z.number().optional(), fromStartTime: z.number().optional(), toStartTime: z.number().optional(), limit: z.number().optional(), offset: z.number().optional(), include: z.string().optional(), });
- src/index.ts:190-194 (registration)Registration of the 'get_runs' tool in the MCP server's tool list, specifying name, description, and input schema.{ name: 'get_runs', description: 'Get all test runs in a project', inputSchema: zodToJsonSchema(GetRunsSchema), },
- src/operations/runs.ts:25-28 (helper)Helper function implementing the core logic of 'get_runs': applies the Qase client API call to retrieve runs and converts the result using toResult utility.export const getRuns = pipe( apply(client.runs.getRuns.bind(client.runs)), toResult, );