Skip to main content

createRun

codebolt.autoTesting.createRun(params: ICreateRunParams): Promise<ICreateRunResponse>

Creates a new test run from a test suite for execution tracking.

Parameters

  • params (ICreateRunParams): Parameters including test suite ID and optional run name.

Returns

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

Examples

// Create a test run
const run = await codebolt.autoTesting.createRun({
testSuiteId: 'suite-123',
name: 'Nightly Build Test Run'
});

// Create run with default name
const run = await codebolt.autoTesting.createRun({
testSuiteId: 'suite-123'
});

Notes

  • Runs track execution of all cases in a suite
  • Each run has unique IDs for tracking
  • Status starts as 'pending'
  • Use updateRunStatus to progress the run