bulk_update_test_executions
Apply a single execution result, environment, or build to multiple test case executions in a test cycle using their map IDs.
Instructions
Apply the same execution result, environment, or build to multiple test case executions at once. Use testCycleTestCaseMapIds from get_test_cycle_executions (the 'testCycleTestCaseMapId' field). Returns 204 on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cycleId | Yes | Test cycle ID | |
| testCycleTestCaseMapIds | Yes | Test-case-execution map IDs to update | |
| executionResultId | No | Execution result ID to apply to all | |
| environmentId | No | Environment ID to apply to all | |
| buildId | No | Build ID to apply to all |
Implementation Reference
- src/index.ts:481-500 (handler)The bulk_update_test_executions tool handler. Uses the 'tool' wrapper to register with the MCP server. Accepts cycleId, testCycleTestCaseMapIds (array of map IDs), and optional executionResultId, environmentId, buildId. Calls PUT /testcycles/{cycleId}/testcases/bulk and returns a success message.
tool( "bulk_update_test_executions", "Apply the same execution result, environment, or build to multiple test case executions at once. Use testCycleTestCaseMapIds from get_test_cycle_executions (the 'testCycleTestCaseMapId' field). Returns 204 on success.", { cycleId: ID.describe("Test cycle ID"), testCycleTestCaseMapIds: z .array(z.number().int()) .describe("Test-case-execution map IDs to update"), executionResultId: z.number().int().optional().describe("Execution result ID to apply to all"), environmentId: z.number().int().optional().describe("Environment ID to apply to all"), buildId: z.number().int().optional().describe("Build ID to apply to all"), }, async ({ cycleId, ...rest }) => { await qtmFetch(`/testcycles/${cycleId}/testcases/bulk`, { method: "PUT", body: JSON.stringify(rest), }); return ok({ message: "Bulk execution update applied" }); } ); - src/index.ts:484-492 (schema)Input schema for bulk_update_test_executions: cycleId (string|number), testCycleTestCaseMapIds (array of ints), executionResultId, environmentId, buildId (all optional ints).
{ cycleId: ID.describe("Test cycle ID"), testCycleTestCaseMapIds: z .array(z.number().int()) .describe("Test-case-execution map IDs to update"), executionResultId: z.number().int().optional().describe("Execution result ID to apply to all"), environmentId: z.number().int().optional().describe("Environment ID to apply to all"), buildId: z.number().int().optional().describe("Build ID to apply to all"), }, - src/index.ts:172-183 (registration)The 'tool' helper/registration wrapper function that calls server.registerTool(), used by bulk_update_test_executions.
const tool = <Shape extends z.ZodRawShape>( name: string, description: string, inputSchema: Shape, // eslint-disable-next-line @typescript-eslint/no-explicit-any callback: (args: z.infer<z.ZodObject<Shape>>) => Promise<any> ) => server.registerTool( name, { description, inputSchema }, // eslint-disable-next-line @typescript-eslint/no-explicit-any callback as any