Skip to content
You're viewing the v2 docs. Looking for v1?Go to v1 docs
Docs
Arcus
Popular questions
↑↓ to navigate↵ to selectesc to close
Book a demo

JUnit report import

POST/projects/{project_id}/junit-import/test-run/{test_run_id}
Base URL https://arcus.testsigma.com/api/v1

Imports 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 →
project_idUnique identifier of the project to import results into.
test_run_idIdentifier of the test run the results are imported against.
messageMessage 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?