update_plan
Modify an existing test plan in QASE by updating its code, title, description, or associated test cases to maintain accurate testing documentation.
Instructions
Update an existing test plan
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| id | Yes | ||
| title | No | ||
| description | No | ||
| cases | No |
Implementation Reference
- src/index.ts:400-403 (handler)MCP tool call handler for 'update_plan': parses input arguments using UpdatePlanSchema and delegates to the updatePlan helper function..with({ name: 'update_plan' }, ({ arguments: args }) => { const { code, id, ...planData } = UpdatePlanSchema.parse(args); return updatePlan(code, id, planData); })
- src/operations/plans.ts:23-29 (schema)Zod schema defining the input for the update_plan tool: project code, plan ID, and optional title, description, cases.export const UpdatePlanSchema = z.object({ code: z.string(), id: z.number(), title: z.string().optional(), description: z.string().optional(), cases: z.array(z.number()).optional(), });
- src/index.ts:215-219 (registration)Tool registration in the list of available tools, specifying name, description, and input schema.{ name: 'update_plan', description: 'Update an existing test plan', inputSchema: zodToJsonSchema(UpdatePlanSchema), },
- src/operations/plans.ts:43-46 (helper)Helper function wrapping the client API call to update a plan, piping through toResult for error handling.export const updatePlan = pipe( client.plans.updatePlan.bind(client.plans), toResult, );