Question 271 · 279 in bank
Select 3Which API can be used to execute unit tests? (Choose three.)
Show answer
Answer: CDE
Explanation
Found the below two points in the Apex Developer Guide (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_unit_tests_running.htm): 1. You can use the runTests() call from the SOAP API to run tests synchronously. 2. You can also run tests using the Tooling REST API. Use the /runTestsAsynchronous/ and /runTestsSynchronous/ endpoints to run tests asynchronously or synchronously. So the answer to the question should be Tooling API, SOAP API and Metadata API, because Streaming API is about events and notifications, and there is no such thing as Test API.
Source: Adapted from community discussion — Liquad