Skip to main content

getCase

codebolt.autoTesting.getCase(params: IGetCaseParams): Promise<IGetCaseResponse>

Retrieves details of a specific test case.

Parameters

Returns

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

Examples

const testCase = await codebolt.autoTesting.getCase({ id: 'case-123' });
console.log('Test case:', testCase.payload.testCase);

Notes

  • Returns complete case details
  • Includes all steps in order
  • Shows labels and priority