Get Test Case execution details
GET
/execution_results/{executionResultId}/test_case_results
Base URL
https://app.testsigma.com/api/v1
Get details of all Test Case executions for a particular execution result using REST API.
Authenticate with your API key as a
Bearer token in the
Authorization header. Generate a key →PATH PARAMETERS
executionResultId | Result ID of the Test Plan execution. |
RESPONSE ATTRIBUTES
executionId | Execution ID of the Test Plan. |
executionResultId | Result ID of the Test Plan execution. |
result | Overall result of the execution — e.g. FAILURE. |
status | Overall status of the execution — e.g. STATUS_COMPLETED. |
testCases | Array of Test Case execution detail objects. |
testCaseId | ID of the Test Case. |
testCaseName | Name of the Test Case. |
testCaseResultId | ID of the Test Case result. |
isDataDrivenCase | Whether the Test Case is data-driven. |
iterationResults | Array of iteration result objects for data-driven cases. |
iterationResultId | ID of the iteration result. |
setName | Name of the test data set used for the iteration. |
testSuiteId | ID of the Test Suite. |
testSuiteName | Name of the Test Suite. |
testSuiteResultId | ID of the Test Suite result. |
machineId | ID of the machine the Test Case ran on. |
machineTitle | Title of the machine. |
machineResultId | ID of the machine result. |
REQUEST
curl -X GET \
'https://app.testsigma.com/api/v1/execution_results/{executionResultId}/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/{executionResultId}/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/{executionResultId}/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
}
]
}