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 a JUnit report

GET/reports/junit/{execution_result_id}
Base URL https://app.testsigma.com/api/v1Region

Deprecated. Retrieve the JUnit XML report for a completed run result. Migrate to the export run report endpoint.

Authenticate with your API key as a Bearer token in the Authorization header. How to authenticate →
execution_result_idThe ID of the run result to generate the JUnit report for.
testsuitesRoot XML element with aggregate test, failure, and error counts.
testsuiteOne element per test suite in the run, with its own counts and duration.
testcaseOne element per test case, including any failure details.
Request
curl -X GET \
  'https://app.testsigma.com/api/v1/reports/junit/{execution_result_id}' \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json'
const response = await fetch('https://app.testsigma.com/api/v1/reports/junit/{execution_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/junit/{execution_result_id}',
  headers={
    'Authorization': 'Bearer <API_KEY>',
    'Content-Type': 'application/json'
  }
)
data = response.json()
Response200 OK
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<testsuites tests=\"4\" failures=\"1\" errors=\"0\" time=\"141.0\">\n  <testsuite name=\"Smoke Suite\" tests=\"4\" failures=\"1\" errors=\"0\" time=\"141.0\">\n    <testcase name=\"Login with valid credentials\" time=\"23.0\"/>\n    <testcase name=\"Search for a product\" time=\"31.0\"/>\n    <testcase name=\"Add product to cart\" time=\"45.0\">\n      <failure message=\"Element not found: add-to-cart button\"/>\n    </testcase>\n    <testcase name=\"Checkout\" time=\"42.0\"/>\n  </testsuite>\n</testsuites>\n"

Was this page helpful?