Newer Version Available

This content describes an older version of this product. View Latest

REST Resources for Unit Testing

Retrieve and execute Apex and flow tests in one place. Get a complete view of your tests by using the Test Discovery API. Execute tests asynchronously or synchronously by using the Test Runner API. These APIs are both Tooling API REST resources.

The Test Discovery API and Test Runner API support only flow tests created with automated flow testing in Flow Builder.

Note

The base URI for these Tooling API REST resources is https://domain/services/data/vXX.X/tooling/ where domain is your org’s My Domain login URL and vXX.X is the API version number. For example: https://MyDomainName.my.salesforce.com/services/data/v66.0/tooling/