Fetch test machine results
GET
/test_runs/{run_id}/test_machine_results/{machine_result_id}
Base URL
https://app.testsigma.com/api/v2
Fetch the execution results for a specific test machine within a test plan run.
Authenticate with your API key as a
Bearer token in the
Authorization header. Generate a key →PATH PARAMETERS
run_id | The test plan run ID. |
machine_result_id | The test machine result ID to fetch. |
QUERY PARAMETERS
query | Filter using <parameter><operator><value> chained with commas, e.g. query=testPlanId:1,result:PASSED |
RESPONSE ATTRIBUTES
id | Test machine result ID. |
testRunId | ID of the parent test run. |
result | Result for this machine. |
startTime | Machine run start time. |
endTime | Machine run end time. |
duration | Duration in milliseconds. |
deviceConfiguration | Object describing the device/browser/OS the run executed on. |
metrics | Object with aggregated pass/fail/count metrics for the machine. |
appDetails | Application details for the run, if any. |
REQUEST
curl -X GET \
'https://app.testsigma.com/api/v2/test_runs/{run_id}/test_machine_results/{machine_result_id}' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json'const response = await fetch('https://app.testsigma.com/api/v2/test_runs/{run_id}/test_machine_results/{machine_result_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/v2/test_runs/{run_id}/test_machine_results/{machine_result_id}',
headers={
'Authorization': 'Bearer <API_KEY>',
'Content-Type': 'application/json'
}
)
data = response.json()RESPONSE200OK
{
"id": 1434,
"testRunId": 517,
"result": "FAILURE",
"startTime": "2024-05-29T07:29:19Z",
"endTime": "2024-05-29T07:31:40Z",
"duration": 141000,
"deviceConfiguration": {
"title": "Windows Chrome",
"osVersion": "11",
"browser": "GoogleChrome",
"browserVersion": "123.0",
"resolution": "1920x1080",
"platform": "Windows",
"deviceName": null,
"hostName": "agent.testsigma.com",
"osType": "WINDOWS"
},
"metrics": {
"id": 165,
"testDeviceResultId": 1434,
"testPlanResultId": 517,
"totalCount": 4,
"failedCount": 2,
"passedCount": 2,
"stoppedCount": 0,
"notExecutedCount": 0,
"queuedCount": 0,
"runningCount": 0,
"consolidatedTotalCount": 4,
"consolidatedFailedCount": 2,
"consolidatedPassedCount": 2,
"consolidatedStoppedCount": 0,
"consolidatedNotExecutedCount": 0,
"consolidatedQueuedCount": 0,
"consolidatedRunningCount": 0,
"result": "FAILURE",
"latestResult": "FAILURE",
"duration": 129000,
"consolidatedDuration": 129000
},
"appDetails": null
}