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 case report

GET/reports/case_result/{case_result_id}
Base URL https://app.testsigma.com/api/v1Region

Generate a report for a single test case within a run, in XML, PDF, or Excel format.

Authenticate with your API key as a Bearer token in the Authorization header. How to authenticate →
case_result_idThe ID of the test case result to export, from the test case results endpoints.
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. PDF only.
statusGeneration state — IN_PROGRESS, SUCCESS, or FAILED.
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/case_result/{case_result_id}' \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json'
const response = await fetch('https://app.testsigma.com/api/v1/reports/case_result/{case_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/v1/reports/case_result/{case_result_id}',
  headers={
    'Authorization': 'Bearer <API_KEY>',
    'Content-Type': 'application/json'
  }
)
data = response.json()
Response202 Accepted
{
  "status": "IN_PROGRESS"
}

Was this page helpful?