UNPKG

@nicodoggie/node-kiwi-tcms-api

Version:

Vibe-coded Node.js wrapper for Kiwi TCMS XML-RPC API. Use at your own risk.

56 lines 1.72 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TestExecutionAPI = void 0; /** * Test Execution API module */ class TestExecutionAPI { client; constructor(client) { this.client = client; } /** * Filter test executions */ async filter(query = {}) { return await this.client.authenticatedCall('TestExecution.filter', [query]); } /** * Update a test execution */ async update(executionId, updateData) { return await this.client.authenticatedCall('TestExecution.update', [executionId, updateData]); } /** * Add a comment to test execution */ async addComment(executionId, comment) { return await this.client.authenticatedCall('TestExecution.add_comment', [executionId, comment]); } /** * Remove a comment from test execution */ async removeComment(executionId, commentId) { await this.client.authenticatedCall('TestExecution.remove_comment', [executionId, commentId]); } /** * Add a link to test execution */ async addLink(executionId, linkData) { return await this.client.authenticatedCall('TestExecution.add_link', [executionId, linkData]); } /** * Get links for test execution */ async getLinks(query = {}) { return await this.client.authenticatedCall('TestExecution.get_links', [query]); } /** * Remove a link from test execution */ async removeLink(executionId, linkId) { await this.client.authenticatedCall('TestExecution.remove_link', [executionId, linkId]); } } exports.TestExecutionAPI = TestExecutionAPI; //# sourceMappingURL=testexecution.js.map