create_suite
Create a new test suite in QASE test management platform to organize test cases by defining code, title, description, and parent relationships.
Instructions
Create a new test suite
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| title | Yes | ||
| description | No | ||
| preconditions | No | ||
| parent_id | No |
Implementation Reference
- src/index.ts:412-415 (handler)The MCP tool handler for 'create_suite' that parses the input arguments using CreateSuiteSchema and calls the createSuite helper function..with({ name: 'create_suite' }, ({ arguments: args }) => { const { code, ...suiteData } = CreateSuiteSchema.parse(args); return createSuite(code, suiteData); })
- src/operations/suites.ts:17-23 (schema)Zod schema defining the input parameters for the create_suite tool: project code, title, optional description, preconditions, and parent_id.export const CreateSuiteSchema = z.object({ code: z.string(), title: z.string(), description: z.string().optional(), preconditions: z.string().optional(), parent_id: z.number().optional(), });
- src/index.ts:230-234 (registration)Registration of the 'create_suite' tool in the server's list of tools, including name, description, and input schema.{ name: 'create_suite', description: 'Create a new test suite', inputSchema: zodToJsonSchema(CreateSuiteSchema), },
- src/operations/suites.ts:44-47 (helper)Helper function that wraps the client.suites.createSuite method with pipe and toResult for handling the API call and result transformation.export const createSuite = pipe( client.suites.createSuite.bind(client.suites), toResult, );