create_case
Generate a new test case by providing a unique code and test case details, enabling efficient test case management within the QASE test management platform.
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)MCP tool handler for 'create_case': parses arguments with CreateCaseSchema and delegates to createCase helper..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 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 'create_case' tool in ListToolsRequestSchema handler, referencing the schema.{ name: 'create_case', description: 'Create a new test case', inputSchema: zodToJsonSchema(CreateCaseSchema), },
- src/operations/cases.ts:151-154 (helper)Core implementation of createCase: pipes Qase client createCase call through toResult utility.export const createCase = pipe( client.cases.createCase.bind(client.cases), toResult, );