Skip to content
You're viewing the v2 docs. Looking for v1?Go to v1 docs
Docs
Testsigma
Popular questions
↑↓ to navigate↵ to selectesc to close
Book a demo

Get test case execution details

GET/execution_results/{run_id}/test_case_results
Base URL https://app.testsigma.com/api/v1Region

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. How to authenticate →
run_idThe execution result ID (Run ID) whose test case results you want to retrieve.
executionIdID of the Test Plan that was executed.
executionResultIdRun ID (execution result ID) of the run.
resultOverall result status - SUCCESS, FAILURE, ABORTED, STOPPED.
statusCurrent status of the run - e.g. STATUS_COMPLETED.
testCasesArray of test case result objects for the run.
testCaseIdID of the test case.
testCaseNameName of the test case.
testCaseResultIdResult ID for the test case execution.
isDataDrivenCaseWhether the test case is data driven.
iterationResultsArray of per-iteration results for data driven test cases.
testSuiteIdID of the parent test suite.
testSuiteNameName of the parent test suite.
testSuiteResultIdResult ID for the test suite execution.
machineIdID of the machine the test ran on.
machineTitleTitle of the machine the test ran on.
machineResultIdResult 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()
Response200 OK
{
  "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
    }
  ]
}

Was this page helpful?