JUnit report import
POST
/projects/{project_id}/junit-import/test-run/{test_run_id}Base URL
https://arcus.testsigma.com/api/v1Imports JUnit XML test results into a test run within a project via file upload.
Authenticate with your API key as a
Bearer token in the Authorization header. How to authenticate →Path parameters
project_id | Unique identifier of the project to import results into. |
test_run_id | Identifier of the test run the results are imported against. |
Response attributes
message | Message describing the outcome — a success confirmation, or error details if the import failed. |
Request
curl -X POST \
'https://arcus.testsigma.com/api/v1/projects/{project_id}/junit-import/test-run/{test_run_id}' \
-H 'Authorization: Bearer <API_KEY>' \
-F 'junit_xml=@results.xml'const form = new FormData();
form.append('junit_xml', fileInput.files[0]);
const response = await fetch('https://arcus.testsigma.com/api/v1/projects/{project_id}/junit-import/test-run/{test_run_id}', {
method: 'POST',
headers: { 'Authorization': 'Bearer <API_KEY>' },
body: form
});
const data = await response.json();import requests
response = requests.post(
'https://arcus.testsigma.com/api/v1/projects/{project_id}/junit-import/test-run/{test_run_id}',
headers={ 'Authorization': 'Bearer <API_KEY>' },
files={
'junit_xml': open('results.xml', 'rb')
}
)
data = response.json()Response200 OK
{
"message": ""
}Was this page helpful?
Thanks for the feedback.