JUnit report import
POST
/projects/{project_id}/junit-import/test-run/{test_run_id}Base URL https://test-management.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 theAuthorization header. Generate a key →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://test-management.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://test-management.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://test-management.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": ""
}