updateSuite
codebolt.autoTesting.updateSuite(params: IUpdateSuiteParams): Promise<IUpdateSuiteResponse>
Updates an existing test suite's name, description, or test case assignments.
Parameters
params(IUpdateSuiteParams): Parameters including suite ID and fields to update.
Returns
Promise<[IUpdateSuiteResponse](/docs/reference/type-reference/codeboltjs/interfaces/IUpdateSuiteResponse)>: A promise that resolves to the updated suite.
Examples
// Update name
await codebolt.autoTesting.updateSuite({
id: 'suite-123',
name: 'Updated Suite Name'
});
// Update cases
await codebolt.autoTesting.updateSuite({
id: 'suite-123',
testCaseIds: ['case-1', 'case-2', 'case-3']
});
Notes
- Only updates provided fields
- Replaces entire testCaseIds array
- Use add/remove for individual changes