PDI · Question #146
What are three ways for 2 developer to execute tests in an org? Choose 3 answers
The correct answer is C. Setup Menu D. SalesforceDX E. Tooling API. Developers can execute Apex tests in an org using the Setup Menu UI, the Salesforce DX command-line interface, or programmatically via the Tooling API.
Question
What are three ways for 2 developer to execute tests in an org? Choose 3 answers
Options
- AMetadata APT
- BBulk API
- CSetup Menu
- DSalesforceDX
- ETooling API
How the community answered
(51 responses)- A4% (2)
- B2% (1)
- C94% (48)
Why each option
Developers can execute Apex tests in an org using the Setup Menu UI, the Salesforce DX command-line interface, or programmatically via the Tooling API.
The Metadata API is primarily used for retrieving, deploying, or modifying setup components and metadata, not for executing Apex tests.
The Bulk API is designed for loading or querying large sets of data, not for the execution of Apex tests.
The Salesforce Setup menu provides the 'Apex Test Execution' page, allowing developers to run Apex tests directly from the user interface.
Salesforce DX includes CLI commands, such as `sfdx force:apex:test:run`, for executing Apex tests, which is essential for scripting and automation.
The Tooling API offers programmatic capabilities to execute Apex tests, commonly utilized by IDEs and continuous integration systems.
Concept tested: Apex test execution methods
Source: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_code_overview.htm
Topics
Community Discussion
No community discussion yet for this question.