Skip to main content

updateRunStatus

codebolt.autoTesting.updateRunStatus(params: IUpdateRunStatusParams): Promise<IUpdateRunStatusResponse>

Updates the overall status of a test run.

Parameters

Returns

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

Examples

// Start the run
await codebolt.autoTesting.updateRunStatus({
runId: 'run-123',
status: 'running'
});

// Mark as completed
await codebolt.autoTesting.updateRunStatus({
runId: 'run-123',
status: 'completed'
});

// Cancel the run
await codebolt.autoTesting.updateRunStatus({
runId: 'run-123',
status: 'cancelled'
});

Notes

  • Status values: pending, running, completed, cancelled
  • Status changes track run lifecycle
  • Completed runs cannot be restarted