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

Export a test plan run report

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

Generate a report for a whole test plan run in XML, PDF, or Excel format. This endpoint replaces the deprecated JUnit endpoint.

Authenticate with your API key as a Bearer token in the Authorization header. How to authenticate →
run_idThe ID of the test plan run to export.
formatReport format — xml, pdf, or xlsx. Defaults to pdf.
screenshotTest step screenshots in a PDF report — ALL_TYPES, FAILED_STEPS, or NONE. PDF only.
visualScreenshotVisual testing screenshots in a PDF report — ALL_TYPES, FAILED_STEPS, or NONE. PDF only.
resolutionScreenshot resolution in a PDF report — LOW or HIGH. LOW generates faster. PDF only.
statusGeneration state — IN_PROGRESS, SUCCESS, or FAILED. A failure returns 200 with status FAILED, not a server error.
reportIdID of the generated report, returned once generation succeeds.
urlDownload endpoint for the generated report, returned once generation succeeds.
Request
curl -X GET \
  'https://app.testsigma.com/api/v1/reports/execution_result/{run_id}' \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json'
const response = await fetch('https://app.testsigma.com/api/v1/reports/execution_result/{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/reports/execution_result/{run_id}',
  headers={
    'Authorization': 'Bearer <API_KEY>',
    'Content-Type': 'application/json'
  }
)
data = response.json()
Response202 Accepted
{
  "status": "IN_PROGRESS"
}

Was this page helpful?