Skip to main content

createSuite

codebolt.autoTesting.createSuite(params: ICreateSuiteParams): Promise<ICreateSuiteResponse>

Creates a new test suite for organizing test cases.

Parameters

Returns

  • Promise<[ICreateSuiteResponse](/docs/reference/type-reference/codeboltjs/interfaces/ICreateSuiteResponse)>: A promise that resolves to the created test suite.

Examples

// Create a basic suite
const suite = await codebolt.autoTesting.createSuite({
name: 'Authentication Tests',
description: 'Tests for user authentication'
});

// Create suite with initial test cases
const suite = await codebolt.autoTesting.createSuite({
name: 'API Tests',
description: 'API endpoint tests',
testCaseIds: ['case-1', 'case-2', 'case-3']
});

Notes

  • Test suites organize related test cases
  • Can add cases later with addCaseToSuite
  • Descriptions help with suite discovery