remove_tests_from_test_set
Remove specific tests from an existing test set in Xray test management by providing test set and test issue IDs.
Instructions
Remove tests from an existing test set
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| testSetIssueId | Yes | The test set issue ID (not key) | |
| testIssueIds | Yes | Array of test issue IDs to remove |
Implementation Reference
- src/xray-client.ts:937-954 (handler)Core handler function in XrayClient that executes the GraphQL mutation to remove tests from a test set in Xray Cloud.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; }
- src/index.ts:871-884 (handler)MCP server request handler (dispatch) that receives tool call parameters and invokes the XrayClient removeTestsFromTestSet method.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/index.ts:484-502 (registration)Tool registration in the MCP tools array, including name, description, and input schema definition.{ 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:487-501 (schema)Input schema definition for the remove_tests_from_test_set tool, specifying parameters for validation.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'], },