Get test case execution details
GET
/execution_results/{run_id}/test_case_results
Base URL
https://app.testsigma.com/api/v1
Retrieve the details of all test case executions for a given test plan run result.
Authenticate with your API key as a
Bearer token in the
Authorization header. Generate a key →PATH PARAMETERS
run_id | The execution result ID (Run ID) whose test case results you want to retrieve. |
RESPONSE ATTRIBUTES
executionId | ID of the Test Plan that was executed. |
executionResultId | Run ID (execution result ID) of the run. |
result | Overall result status - SUCCESS, FAILURE, ABORTED, STOPPED. |
status | Current status of the run - e.g. STATUS_COMPLETED. |
testCases | Array of test case result objects for the run. |
testCaseId | ID of the test case. |
testCaseName | Name of the test case. |
testCaseResultId | Result ID for the test case execution. |
isDataDrivenCase | Whether the test case is data driven. |
iterationResults | Array of per-iteration results for data driven test cases. |
testSuiteId | ID of the parent test suite. |
testSuiteName | Name of the parent test suite. |
testSuiteResultId | Result ID for the test suite execution. |
machineId | ID of the machine the test ran on. |
machineTitle | Title of the machine the test ran on. |
machineResultId | Result ID for the machine execution. |
REQUEST
curl -X GET \
'https://app.testsigma.com/api/v1/execution_results/{run_id}/test_case_results' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json'const response = await fetch('https://app.testsigma.com/api/v1/execution_results/{run_id}/test_case_results', {
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}/test_case_results',
headers={
'Authorization': 'Bearer <API_KEY>',
'Content-Type': 'application/json'
}
)
data = response.json()RESPONSE200OK
{
"executionId": 268,
"executionResultId": 986,
"result": "FAILURE",
"status": "STATUS_COMPLETED",
"testCases": [
{
"testCaseId": 413,
"testCaseName": "03 data driven small",
"testCaseResultId": 7975,
"result": "FAILURE",
"isDataDrivenCase": true,
"iterationResults": [
{
"iterationResultId": 7963,
"setName": "examples",
"result": "SUCCESS"
},
{
"iterationResultId": 7976,
"setName": "travels",
"result": "FAILURE"
},
{
"iterationResultId": 7965,
"setName": "examples 1",
"result": "FAILURE"
}
],
"testSuiteId": 197,
"testSuiteName": "02 DD Small",
"testSuiteResultId": 2295,
"machineId": 414,
"machineTitle": "machine 2",
"machineResultId": 2370
}
]
}