Comment on page
Default Apex Class Configuration
This article is for Org Administrators in particular. The actions discussed in this article are not available to general users.
To configure the default Apex Test Class for your Salesforce org, follow the below steps:
- 1.Log in to your ARM account.
- 2.Hover your mouse over the
Admintab and click on the option:
SF Org Mgmt.
- 3.Select your
Salesforce Orgfrom the list and go to the
Salesforce Org - Default Apex Test Class Configurationsection. While deploying through ARM, this works in sync with the Run Test based on the Changes Test level option. If ARM cannot find dependent test classes, these default classes will run as Specified Tests.
- 4.Different options to choose from:
a. Fetch Current Set:This option fetches Apex and Test classes dependency. From the list fetched, select the required Apex Text Class that you would like to configure and run into the Destination Org
b. Auto-populate:This option will run all local tests and get the complete dependency map
If it takes longer to fetch the test classes using Auto-Populate, refresh the status by clicking the
If Apex Tests are not being populated, follow the steps below to ensure that the Store Only Aggregated Code Coverage check box is unchecked:
- 1.Log in to your Salesforce org through the browser.
- 2.Go to Setup.
- 3.Use the Quick Find/Search box to open the Apex Test Execution page.
- 4.Click on Options. The Apex Test Execution Options pop-up appears.
- 5.Ensure that the Store Only Aggregated Code Coverage check box is unselected.
- 6.Click OK, and return to ARM.
c. Add Manually:Manually configure your default Apex Test class.
- 1.On the next auto-populated screen, enter the
Apex Test Classname and
Apex Class/Triggername in the respective fields. Mark the Apex class as default, and select the
Defaultcheckbox for such a test class.
- 2.Click the
Addbutton at the top right corner to add another Apex Class name, or click the
Cloneicon to copy the details of the previous Apex Class.
Once you have added an Apex test class or classes, you can perform various actions:
- 1.Click the
editicon next to the class name to modify its contents in a simple editor.
- 2.Click the
deleteicon to delete the class from your organization. You can select individual test classes or all the apex test classes in one go.
For each code coverage operation executed for your Salesforce org, AutoRABIT will either update or append the Apex Test Class mapping dynamically. Therefore, to view the added or modified Apex Test classes once the code coverage operation is performed, the user must ensure to refresh its Salesforce org from the
Salesforce Org Managementsection.