Skip to main content

addCaseToSuite

client.autoTesting.addCaseToSuite(suiteId: string, data: AddTestCaseToSuiteRequest): Promise<unknown>

Adds a test case to a test suite.

Associates an existing test case with the specified suite, making it part of the suite's execution set.

Parameters

ParameterTypeRequiredDescription
suiteIdstringYesThe unique identifier of the test suite
dataAddTestCaseToSuiteRequestYesThe test case association payload

Returns

Promise<unknown> — A promise that resolves when the case has been added to the suite

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.autoTesting.addCaseToSuite('suiteId', /* AddTestCaseToSuiteRequest */);
console.log(result);