Skip to main content

JUnit XML import

Introduction​

The listener API provides the ability to upload a junit results xml to import as a test run.
The importer expects a multipart Request with a file part, testSet part containing the testset name and a projectName part containing the project to report to.

Usage Example​

The import endpoint can be called from the commandline using curl, or any other tool that can perform an HTTP request.
The attributes field is optional and expects a list of semicolon-separated attributes. An attribute can be a key value pair (key and value separated by a colon) or just a tag.

curl -X POST https://app.orangebeard.io/{organization}/listener/v3/test-tool/junit/import \
-H "Authorization: {listener token}" \
-F "file=@junit-output.xml" \
-F "testSetName=my-test-set" \
-F "projectName={my-project}" \
-F "attributes=key:value;tag"
Ask Orangebeard