Skip to content
developers
Open TestCollab

Get test case comments'count

GET/testcasecomments/count

Get count of comments added for a specific test case

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

example.ts
import { createConfiguration, TestcasesCommentsApi } from '@testcollab/sdk';
const config = createConfiguration(process.env.TESTCOLLAB_TOKEN!);
const api = new TestcasesCommentsApi(config);
const result = await api.getTestCaseCommentsCount({
"project": 123,
"testCase": 123
});
console.log(result);
Name Location Type Required Description
project query number Yes Project ID
test_case query number Yes Test Plan ID

200 — Count of test case comments

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