addCaseToSuite
codebolt.autoTesting.addCaseToSuite(params: IAddCaseToSuiteParams): Promise<IAddCaseToSuiteResponse>
Adds a test case to a test suite.
Parameters
params(IAddCaseToSuiteParams): Parameters including suite ID and case ID.
Returns
Promise<[IAddCaseToSuiteResponse](/docs/reference/type-reference/codeboltjs/interfaces/IAddCaseToSuiteResponse)>: A promise that resolves to the updated suite.
Examples
await codebolt.autoTesting.addCaseToSuite({
suiteId: 'suite-123',
caseId: 'case-456'
});
Notes
- Cases can be in multiple suites
- Order not preserved
- Idempotent operation