Get test plan result
GET
/execution_results/{run_id}Base URL
https://app.testsigma.com/api/v1RegionPoll the status of a triggered test plan run by its execution result ID.
Authenticate with your API key as a
Bearer token in the Authorization header. How to authenticate →Path parameters
run_id | The execution result ID returned when you triggered the test plan. |
Response attributes
id | Execution result ID. |
status | Current run status — STATUS_IN_PROGRESS, STATUS_COMPLETED, QUEUED. |
result | Final result — PASSED, FAILURE, ABORTED, NOT_EXECUTED. Null while in progress. |
executionId | ID of the test plan configuration that was executed. |
startTime | Epoch timestamp when the run started. |
endTime | Epoch timestamp when the run ended. Null if still running. |
totalCount | Total number of test cases in the run. |
passedCount | Number that passed. |
failedCount | Number that failed. |
abortedCount | Number that were aborted. |
queuedCount | Number still queued. |
Request
curl -X GET \
'https://app.testsigma.com/api/v1/execution_results/{run_id}' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json'const response = await fetch('https://app.testsigma.com/api/v1/execution_results/{run_id}', {
method: 'GET',
headers: {
'Authorization': 'Bearer <API_KEY>',
'Content-Type': 'application/json'
}
});
const data = await response.json();import requests
response = requests.get(
'https://app.testsigma.com/api/v1/execution_results/{run_id}',
headers={
'Authorization': 'Bearer <API_KEY>',
'Content-Type': 'application/json'
}
)
data = response.json()Response200 OK
{
"id": 1234,
"executionId": 42,
"status": "STATUS_COMPLETED",
"result": "PASSED",
"startTime": 1680000000000,
"endTime": 1680003600000,
"totalCount": 24,
"passedCount": 22,
"failedCount": 2,
"abortedCount": 0,
"queuedCount": 0,
"notExecutedCount": 0
}Was this page helpful?
Thanks for the feedback.