Skip to main content

patchRunCase

client.autoTesting.patchRunCase(runId: string, caseId: string, data: PatchTestRunCaseRequest): Promise<unknown>

Patches a specific test case result within a test run.

Updates the status or outcome of an individual test case within an active test run, allowing incremental result reporting.

Parameters​

ParameterTypeRequiredDescription
runIdstringYesThe unique identifier of the test run
caseIdstringYesThe unique identifier of the test case within the run
dataPatchTestRunCaseRequestYesThe patch data to apply to the case result

Returns​

Promise<unknown> — A promise that resolves when the patch has been applied

Example​

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.autoTesting.patchRunCase('runId', 'caseId', /* PatchTestRunCaseRequest */);
console.log(result);