get_results
Retrieve test run results for a project in QASE, filtering by status, date range, or pagination to streamline test management and analysis.
Instructions
Get all test run results for a project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| from | No | ||
| limit | No | ||
| offset | No | ||
| status | No | ||
| to | No |
Implementation Reference
- src/index.ts:281-293 (handler)MCP tool handler for 'get_results': parses input schema, constructs filters query string, and calls the getResults helper function with project code, limit, offset, and filters..with({ name: 'get_results' }, ({ arguments: args }) => { const parsedArgs = GetResultsSchema.parse(args); const filters = parsedArgs.status || parsedArgs.from || parsedArgs.to ? `status=${parsedArgs.status || ''}&from=${parsedArgs.from || ''}&to=${parsedArgs.to || ''}` : undefined; return getResults([ parsedArgs.code, parsedArgs.limit, parsedArgs.offset, filters, ]); })
- src/index.ts:145-149 (registration)Registration of the 'get_results' tool in the ListToolsRequestSchema handler, including name, description, and input schema reference.{ name: 'get_results', description: 'Get all test run results for a project', inputSchema: zodToJsonSchema(GetResultsSchema), },
- src/operations/results.ts:12-19 (schema)Zod input schema for the get_results tool, defining required project code and optional pagination, status, date range filters.export const GetResultsSchema = z.object({ code: z.string(), limit: z.string().optional(), offset: z.string().optional(), status: z.nativeEnum(TestStepResultCreateStatusEnum).optional(), from: z.string().optional(), to: z.string().optional(), });
- src/operations/results.ts:45-48 (helper)Helper function implementing the core logic: applies client.results.getResults with arguments and transforms output using toResult utility.export const getResults = pipe( apply(client.results.getResults.bind(client.results)), toResult, );