listRuns
codebolt.autoTesting.listRuns(params: IListRunsParams): Promise<IListRunsResponse>
Lists test runs, optionally filtered by suite.
Parameters
params(IListRunsParams, optional): Optional parameters including suite ID for filtering.
Returns
Promise<[IListRunsResponse](/docs/reference/type-reference/codeboltjs/interfaces/IListRunsResponse)>: A promise that resolves to the list of test runs.
Examples
// List all runs
const allRuns = await codebolt.autoTesting.listRuns();
// Filter by suite
const suiteRuns = await codebolt.autoTesting.listRuns({
suiteId: 'suite-123'
});
Notes
- Filter by suite to see specific history
- Useful for tracking test trends
- Most recent runs first