Skip to content
developers
Open TestCollab

Get test cases' count

GET/testcases/count

Get count of test cases for specific project

Use resource IDs from your own project. Keep the API token in your server or CI environment.

example.ts
import { createConfiguration, TestCasesApi } from '@testcollab/sdk';
const config = createConfiguration(process.env.TESTCOLLAB_TOKEN!);
const api = new TestCasesApi(config);
const result = await api.getTestCaseCount({
"project": 123
});
console.log(result);
Name Location Type Required Description
project query number Yes Project ID
_filter query string No Stringified filter object

200 — Count of test cases

Field Type Required Description
count number Yes —
Illustrative response
{
"count": 123
}
Status Meaning
401 Unauthorized
403 Forbidden
404 Not found
500 Internal server error