remove_tests_from_test_set
Remove specific tests from an existing test set in Xray test management to maintain accurate test coverage and organization.
Instructions
Remove tests from an existing test set
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| testIssueIds | Yes | Array of test issue IDs to remove | |
| testSetIssueId | Yes | The test set issue ID (not key) |
Implementation Reference
- src/index.ts:484-502 (schema)Defines the input schema and registers the 'remove_tests_from_test_set' tool in the MCP tools list.{ name: 'remove_tests_from_test_set', description: 'Remove tests from an existing test set', inputSchema: { type: 'object', properties: { testSetIssueId: { type: 'string', description: 'The test set issue ID (not key)', }, testIssueIds: { type: 'array', items: { type: 'string' }, description: 'Array of test issue IDs to remove', }, }, required: ['testSetIssueId', 'testIssueIds'], }, },
- src/index.ts:871-884 (handler)MCP server handler case that processes the tool call and delegates to XrayClient.removeTestsFromTestSet.case 'remove_tests_from_test_set': { const result = await xrayClient.removeTestsFromTestSet( args.testSetIssueId as string, args.testIssueIds as string[] ); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
- src/xray-client.ts:937-954 (handler)Core implementation of the tool: executes GraphQL mutation to remove specified tests from the test set.async removeTestsFromTestSet(testSetIssueId: string, testIssueIds: string[]): Promise<any> { const mutation = ` mutation RemoveTestsFromTestSet($issueId: String!, $testIssueIds: [String]!) { removeTestsFromTestSet(issueId: $issueId, testIssueIds: $testIssueIds) { removedTests warning } } `; const variables = { issueId: testSetIssueId, testIssueIds }; const result = await this.graphqlRequest<{ removeTestsFromTestSet: any }>(mutation, variables); return result.removeTestsFromTestSet; }