updateRunCaseStatus
codebolt.autoTesting.updateRunCaseStatus(params: IUpdateRunCaseParams): Promise<IUpdateRunCaseResponse>
Updates the status of a specific test case within a run.
Parameters
params(IUpdateRunCaseParams): Parameters including run ID, case ID, status, and optional user override flag.
Returns
Promise<[IUpdateRunCaseResponse](/docs/reference/type-reference/codeboltjs/interfaces/IUpdateRunCaseResponse)>: A promise that resolves to the updated test run.
Examples
// Mark case as passed
await codebolt.autoTesting.updateRunCaseStatus({
runId: 'run-123',
caseId: 'case-456',
status: 'passed'
});
// Mark case as failed with override
await codebolt.autoTesting.updateRunCaseStatus({
runId: 'run-123',
caseId: 'case-456',
status: 'failed',
userOverride: true
});
Notes
- Status values: pending, running, passed, failed, skipped
- User override indicates manual status change
- Affects overall run status calculation