Get a JUnit report
GET
/reports/junit/{execution_result_id}Base URL
https://app.testsigma.com/api/v1RegionDeprecated. 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 →Path parameters
execution_result_id | The ID of the run result to generate the JUnit report for. |
Response attributes
testsuites | Root XML element with aggregate test, failure, and error counts. |
testsuite | One element per test suite in the run, with its own counts and duration. |
testcase | One 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?
Thanks for the feedback.