Data loader for bulk testingjohnsontitusMay 25, 20201 min readThe 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 that cannot be tested entirely using unit tests.
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...
Steps in Unit TestingCreate test data Call the Apex class method in the test method Verify results using System.asserts or assertequals
Comments