update_result
Modify test run outcomes in QASE test management by providing updated result data for existing test executions.
Instructions
Update an existing test run result
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| id | Yes | ||
| hash | Yes | ||
| result | Yes |
Implementation Reference
- src/index.ts:306-309 (handler)MCP tool handler for 'update_result': parses input with schema and delegates to updateResult function..with({ name: 'update_result' }, ({ arguments: args }) => { const { code, id, hash, result } = UpdateResultSchema.parse(args); return updateResult(code, id, hash, result); })
- src/operations/results.ts:38-43 (schema)Zod schema for validating inputs to the update_result tool: code, id, hash, result.export const UpdateResultSchema = z.object({ code: z.string(), id: z.number(), hash: z.string(), result: z.record(z.any()).transform((v) => v as ResultUpdate), });
- src/index.ts:165-169 (registration)Tool registration in ListToolsRequestSchema handler, defining name, description, and input schema.{ name: 'update_result', description: 'Update an existing test run result', inputSchema: zodToJsonSchema(UpdateResultSchema), },
- src/operations/results.ts:65-68 (helper)Core updateResult function: pipes client.results.updateResult through toResult transformer.export const updateResult = pipe( client.results.updateResult.bind(client.results), toResult, );