Skip to content
developers
Open TestCollab

Update executed test case time taken

PUT/executedtestcases/{id}/updateTimeTaken

Time taken to be increamented by

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

example.ts
import { createConfiguration, ExecutedTestCasesApi } from '@testcollab/sdk';
const config = createConfiguration(process.env.TESTCOLLAB_TOKEN!);
const api = new ExecutedTestCasesApi(config);
const result = await api.updateTimeTaken({
"id": 123,
"updateTimeTakenPayload": {
"timeTaken": 123
}
});
console.log(result);
Name Location Type Required Description
id path number Yes Test Case ID
Field Type Required Description
project number No —
time_taken number Yes Time taken in miliseconds

200 — Success result

Field Type Required Description
status boolean Yes —
affected number No —
message string No —
Illustrative response
{
"status": true,
"affected": 123,
"message": "example"
}
Status Meaning
403 Forbidden