Submitting builds and automated test results to ALM using the REST API

Regardless of your automated testing tool, you can automatically send build and test results back to Perforce ALM and associate the test results with test cases for complete traceability.

If you use Jenkins, we recommend using the Perforce ALM Jenkins Plugin to submit build and test results to ALM. See Using the Perforce ALM Jenkins Plugin,

If your automated tests produce a report format that is not supported by the Perforce ALM Jenkins Plugin, or you are not using Jenkins, you can use the ALM REST API to work with automation suites and submit build and test results to ALM.

Submitting results via the REST API requires writing a REST API client and result parser that parses a report file and translates the data to the REST API JSON structure for submitting builds and test results.

If you use both Jenkins and other tools for testing, you can use the Jenkins plugin and REST API in parallel.

See Automated testing in the Perforce ALM REST API Guide for more information.

If you see a Results were never reported and are unknown error in ALM, this indicates that you need to use the REST API to submit results to ALM.