function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vishal ShelarVishal Shelar 

Which API can be used to execute unit tests

I appeared for Platform dev 2 exam and faced a question 
Which API can be used to execute unit tests?
3 answers
A. Streaming API
B. Test API
c. Tooling API
D. SOAP API
E.  Metadata API

I was not sure about this, can anyone answer that.
 
Sai Karthik KVSSai Karthik KVS
I think,
Test API
SOAP API
Metadata API
Krishna Kumar 115Krishna Kumar 115
I think,

Tooling API
SOAP API
Metadata API
PradeepKonakanchiPradeepKonakanchi
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.
SamarSSamarS
Answer is  - 
C. Tooling API
D. SOAP API
E.  Metadata API