Skip to main content

listCases

codebolt.autoTesting.listCases(params: IListCasesParams): Promise<IListCasesResponse>

Lists all available test cases.

Parameters

Returns

  • Promise<[IListCasesResponse](/docs/reference/type-reference/codeboltjs/interfaces/IListCasesResponse)>: A promise that resolves to the list of test cases.

Examples

const cases = await codebolt.autoTesting.listCases();
console.log('Available test cases:', cases.payload.cases);

Notes

  • Returns all test cases
  • Useful for browsing available tests
  • Can filter by labels or priority