create_case
Create a new test case in QASE test management platform to document and organize testing procedures for software quality assurance.
Instructions
Create a new test case
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| testCase | Yes |
Implementation Reference
- src/index.ts:350-353 (handler)The MCP tool handler for 'create_case' which parses input arguments using CreateCaseSchema and delegates to the createCase helper function..with({ name: 'create_case' }, ({ arguments: args }) => { const { code, testCase } = CreateCaseSchema.parse(args); return createCase(code, testCase); })
- src/operations/cases.ts:44-47 (schema)Zod schema for validating input to the create_case tool: project code and test case data.export const CreateCaseSchema = z.object({ code: z.string(), testCase: z.record(z.any()).transform((v) => v as TestCaseCreate), });
- src/index.ts:180-184 (registration)Registration of the 'create_case' tool in the MCP server's ListToolsRequestSchema handler, including name, description, and input schema.{ name: 'create_case', description: 'Create a new test case', inputSchema: zodToJsonSchema(CreateCaseSchema), },
- src/operations/cases.ts:151-154 (helper)The core createCase function that pipes the Qase client createCase method through toResult for result handling.export const createCase = pipe( client.cases.createCase.bind(client.cases), toResult, );