Default Apex Class Configuration
  • 15 Nov 2022
  • 1 Minute to read
  • Contributors
  • Dark

Default Apex Class Configuration

  • Dark

Important Note:
This article is for the 'Org Administrator' in particular. The actions discussed in the article will not be available to the General Users.  

Configure Default Apex Text Class for your Salesforce Org

To configure the default Apex Test Class for your Salesforce Org, follow the below steps: 

  1. Log in to your AutoRABIT account.
  2. Hover your mouse over the Admin tab and click on the option: SF Org Mgmt.
  3. Select your Salesforce Org from the list and navigate to the Salesforce Org - Default Apex Test Class Configuration section. This works in synergy with the Run Test based on the Changes Test level option while deploying through AutoRABIT. If AutoRABIT is unable to find dependent test classes, these default classes will run as Specified Tests.
  4. Different options to choose from:
    1. Fetch Current Set: This option will fetch the Apex classes 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
    2. Auto-populate: This option will run all local tests and get the complete dependency map
      If it takes a longer time to fetch the test classes using Auto-Populate, try refreshing the status using  icon.
    3. Add Manually: Manually configure your default Apex Test class.
      1. On the next auto-populated screen, enter the Apex Test class name, and Apex class name in their respective field. Mark the Apex class as a default, and select the Default checkbox for the such test class.
      2. Click on Add button on the top right-hand corner, to add an additional Apex Class name, or click on Clone to copy the previous Apex Class details.
  5. Click OK. Find your manually added Apex class in the previous screen, i.e. Salesforce Org Management page.

Manage Apex Class

Once you have added an Apex test class or classes, you can perform various actions:

  1. Click on the Edit icon next to the class name to modify its contents in a simple editor.
  2. Click on the Delete icon to delete the class from your organization. You can either select individual test classes or entire apex test classes in one go.
Important Note:
For each code coverage operation executed for your Salesforce org, AutoRABIT will either update or append the Apex Test Class mapping dynamically. Therefore, in order 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 Management section.

Was this article helpful?