Skip to content
Testsigma DOCS

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 →
run_idThe test plan run ID.
machine_result_idThe test machine result ID to fetch.
queryFilter using <parameter><operator><value> chained with commas, e.g. query=testPlanId:1,result:PASSED
idTest machine result ID.
testRunIdID of the parent test run.
resultResult for this machine.
startTimeMachine run start time.
endTimeMachine run end time.
durationDuration in milliseconds.
deviceConfigurationObject describing the device/browser/OS the run executed on.
metricsObject with aggregated pass/fail/count metrics for the machine.
appDetailsApplication 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
}