create_result
Record test execution outcomes in QASE test management by submitting results with case codes and identifiers.
Instructions
Create test run result
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| id | Yes | ||
| result | Yes |
Implementation Reference
- src/operations/results.ts:55-58 (handler)Core handler function that executes the creation of a test result by piping the Qase client's createResult method through the toResult utility.export const createResult = pipe( client.results.createResult.bind(client.results), toResult, );
- src/operations/results.ts:26-30 (schema)Zod schema defining the input structure for the create_result tool: project code, test case/run ID, and result data.export const CreateResultSchema = z.object({ code: z.string(), id: z.number(), result: z.record(z.any()).transform((v) => v as ResultCreate), });
- src/index.ts:156-158 (registration)Tool registration in the list of available tools returned by ListToolsRequestHandler.name: 'create_result', description: 'Create test run result', inputSchema: zodToJsonSchema(CreateResultSchema),
- src/index.ts:298-301 (handler)Dispatch handler in CallToolRequestHandler that validates arguments with the schema and invokes the createResult function..with({ name: 'create_result' }, ({ arguments: args }) => { const { code, id, result } = CreateResultSchema.parse(args); return createResult(code, id, result); })