Default Apex Class Configuration
Important Note: This article is for Org Administrators in particular. The actions discussed in this article are not available to general users.
Configure Default Apex Test Class for your Salesforce Org
To configure the default Apex Test Class for your Salesforce org, follow the below steps:
Log in to your ARM account.
Hover your mouse over the Settings tab and click on the option:
Salesforce Org.

Select your
Salesforce Orgfrom the list and go to theSalesforce Org - Configure Default Apex Test Classsection. 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.

a. Fetch Current Set: This option fetches Apex and Test classes dependency. From the list fetched, select the required Apex Test 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


Troubleshooting: If it takes longer to fetch the test classes using Auto-Populate, refresh the status by clicking the
icon.
Important Note: If Apex Tests are not being populated, follow the steps below to ensure that the Store Only Aggregated Code Coverage check box is unchecked:
Log in to your Salesforce org through the browser.
Go to Setup.
Use the Quick Find/Search box to open the Apex Test Execution page.

Click on Options. The Apex Test Execution Options pop-up appears.

Ensure that the Store Only Aggregated Code Coverage check box is unselected.
Click OK, and return to ARM.
c. Add Manually:Manually configure your default Apex Test class.
On the next auto-populated screen, enter the
Apex Test Classname andApex Class/Triggername in the respective fields. Mark the Apex class as default, and select theDefaultcheckbox for such a test class.Click the
Addbutton at the top right corner to add another Apex Class name, or click theCloneicon to copy the details of the previous Apex Class.

Click
OK. You can find the manually added Apex class on the previous screen, i.e., theSalesforce Org Managementpage.
Manage Apex Class
Once you have added an Apex test class or classes, you can perform various actions:
Click the
editicon next to the class name to modify its contents in a simple editor.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.

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, 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.
Bulk Management of Apex Test Mappings (New UI)

Overview
ARM now supports bulk management of Apex Test Class mappings in the New UI using a CSV file. You can download the current mappings, edit them offline, and upload them back to replace the existing configuration. This reduces unnecessary test execution and improves CI/CD efficiency.
A. Download Current Test Mappings (CSV)
Open ARM (New UI) and go to Test Mapping.
Click Download Test Cases.
Save the downloaded CSV file to your machine.
What happens next
The downloaded file contains all active mappings.
A success message appears after download.
Download is available only to users with access.
CSV Columns (supported / required)
Sno
Apex Test Class
Apex Class/Trigger
Only these three columns are processed during import.
B. Update the CSV File
Open the downloaded CSV file in Excel / Google Sheets / a CSV editor.
Update mappings as needed (add, remove, or modify rows).
Ensure the file remains in CSV format with the same column headers.
Save the file.
Important
Keep column names exactly as provided.
Avoid extra columns (they will be ignored or may cause validation issues depending on implementation).
C. Upload Updated Test Mappings (Replace Existing Set)
In Test Mapping (New UI), click Upload Test Cases.
Select your edited CSV file.
ARM validates the file:
Checks CSV format
Checks required columns exist
Validates structure and entries
If validation passes, a confirmation prompt appears.
Click Confirm to proceed.
If validation fails
Upload is stopped
Clear error messages are shown
Existing mappings remain unchanged
D. What “Replace” Means (After Successful Upload)
After confirmation and successful upload:
The entire existing mapping set is replaced
Old mappings are removed and no longer visible
Only the newly uploaded mappings are used moving forward
Partial updates are not supported
E. Automatic Backup (Safety Net)
ARM automatically keeps one backup of the previous file.
How it works
On every successful upload, the current active file is stored as a backup
Only one backup version is retained
Backup is available only after at least one successful import
When you upload again, the backup is overwritten with the most recent previous file
F. Download Backup (If Needed)
Go to Test Mapping (New UI).
If a backup exists, click Download Backup.
Save the backup CSV locally.
Key Notes
Available only in the New UI
CSV only is supported
Only these columns are supported:
Sno
Apex Test Class
Apex Class/Trigger
Every upload replaces the full mapping set
Only one backup file is maintained at a time
Last updated
Was this helpful?

