Steps in Unit TestingjohnsontitusMay 14, 20201 min readCreate test dataCall the Apex class method in the test methodVerify results using System.asserts or assertequals
Data loader for bulk testingThe data loader is used to insert, update, or delete large amounts of data at once. This is great for bulk testing parts of your code...
Best Practices for Unit testingUnit tests are class methods that verify whether a particular piece of code is working properly. Unit test methods take no arguments,...
To load test data using csv fileSave the csv file as a static resource. In the test class, use the method: List<sObject> ls = Test.loadData(<ObjectType>.sObjectType,'<na...
Comments