Skip to main content

getCase

client.autoTesting.getCase(id: string): Promise<TestCase>

Retrieves a specific test case by ID.

Returns the full test case definition including its steps, expected results, and metadata.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the test case

Returns

Promise<TestCase> — A promise that resolves to the TestCase object

Example

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

const client = new CodeBoltClient();

const result = await client.autoTesting.getCase('id');
console.log(result);