create_plan
Create a new test plan in QASE by specifying code, title, and test cases to organize testing activities.
Instructions
Create a new test plan
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| title | Yes | ||
| description | No | ||
| cases | Yes |
Implementation Reference
- src/index.ts:396-399 (handler)MCP tool handler for 'create_plan' that parses input arguments using CreatePlanSchema and delegates to the createPlan helper function..with({ name: 'create_plan' }, ({ arguments: args }) => { const { code, ...planData } = CreatePlanSchema.parse(args); return createPlan(code, planData); })
- src/operations/plans.ts:16-21 (schema)Zod input schema for the create_plan tool, defining required fields: code (string), title (string), optional description (string), and cases (array of numbers).export const CreatePlanSchema = z.object({ code: z.string(), title: z.string(), description: z.string().optional(), cases: z.array(z.number()), });
- src/index.ts:210-214 (registration)Registration of the 'create_plan' tool in the ListToolsRequestSchema handler, including name, description, and converted input schema.{ name: 'create_plan', description: 'Create a new test plan', inputSchema: zodToJsonSchema(CreatePlanSchema), },
- src/operations/plans.ts:38-41 (helper)Helper function that wraps the client.plans.createPlan method with pipe and toResult for execution and result handling.export const createPlan = pipe( client.plans.createPlan.bind(client.plans), toResult, );