Skip to main content

patchRunCaseStep

client.autoTesting.patchRunCaseStep(runId: string, caseId: string, stepId: string, data: PatchTestRunCaseStepRequest): Promise<unknown>

Patches a specific step result within a test case of a test run.

Updates the status or outcome of an individual step within a test case, providing granular progress tracking.

Parameters​

ParameterTypeRequiredDescription
runIdstringYesThe unique identifier of the test run
caseIdstringYesThe unique identifier of the test case
stepIdstringYesThe unique identifier of the step within the case
dataPatchTestRunCaseStepRequestYesThe patch data to apply to the step 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.patchRunCaseStep('runId', 'caseId', 'stepId', /* PatchTestRunCaseStepRequest */);
console.log(result);