Skip to content
developers
Open TestCollab

Get count of execution comments

GET/executioncomments/count

Get execution comments’ count

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

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

200 — Count of execution 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