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 plan result

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

Poll the status of a triggered test plan run by its execution result ID.

Authenticate with your API key as a Bearer token in the Authorization header. How to authenticate →
run_idThe execution result ID returned when you triggered the test plan.
idExecution result ID.
statusCurrent run status — STATUS_IN_PROGRESS, STATUS_COMPLETED, QUEUED.
resultFinal result — PASSED, FAILURE, ABORTED, NOT_EXECUTED. Null while in progress.
executionIdID of the test plan configuration that was executed.
startTimeEpoch timestamp when the run started.
endTimeEpoch timestamp when the run ended. Null if still running.
totalCountTotal number of test cases in the run.
passedCountNumber that passed.
failedCountNumber that failed.
abortedCountNumber that were aborted.
queuedCountNumber still queued.
Request
curl -X GET \
  'https://app.testsigma.com/api/v1/execution_results/{run_id}' \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json'
const response = await fetch('https://app.testsigma.com/api/v1/execution_results/{run_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/v1/execution_results/{run_id}',
  headers={
    'Authorization': 'Bearer <API_KEY>',
    'Content-Type': 'application/json'
  }
)
data = response.json()
Response200 OK
{
  "id": 1234,
  "executionId": 42,
  "status": "STATUS_COMPLETED",
  "result": "PASSED",
  "startTime": 1680000000000,
  "endTime": 1680003600000,
  "totalCount": 24,
  "passedCount": 22,
  "failedCount": 2,
  "abortedCount": 0,
  "queuedCount": 0,
  "notExecutedCount": 0
}

Was this page helpful?