PDI · Question #50
What are two ways for a developer to execute tests in an org?
The correct answer is A. Tooling API B. Developer console. Developers can execute Apex tests in an org through programmatic interfaces like the Tooling API or via the interactive Developer Console.
Question
What are two ways for a developer to execute tests in an org?
Options
- ATooling API
- BDeveloper console
- CBulk API
- DMatadata API
How the community answered
(18 responses)- A94% (17)
- D6% (1)
Why each option
Developers can execute Apex tests in an org through programmatic interfaces like the Tooling API or via the interactive Developer Console.
The Tooling API provides a programmatic interface that allows developers to run Apex tests, monitor their execution, and retrieve results, often used in continuous integration and deployment pipelines.
The Developer Console, accessible directly within the Salesforce UI, is an integrated development environment where developers can write, debug, and execute Apex code and tests interactively, providing a user-friendly interface for test execution and analysis.
The Bulk API is specifically designed for efficiently loading or querying large volumes of data into or from Salesforce, not for executing Apex tests.
The Metadata API (assuming 'Matadata API' is a typo) is used for retrieving, deploying, and managing metadata customizations in Salesforce, but it does not directly facilitate the execution of Apex tests.
Concept tested: Executing Apex Tests
Source: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_code_execution.htm
Topics
Community Discussion
No community discussion yet for this question.