Tag: TestClass
-
Test Setup method in Apex
How to use setup method in Apex test classes
-
Using Test.loadData to import records with relationship
There are many resources and documents available around how to use Test.loadData to create test records in Apex class. As per best practice of writing Test classes in Apex, Its good idea to store master data (aka Seed, Reference data) in static resource and load it in Test classes using “Test.loadData” method. It will save lots…
-
FAQ and Best Practices of Test Classes in Apex
Here I am going to share few answers related to Test Classes, which is being asked many times to me by novice Programmers. Please feel free to post Comments if your question is not answered here. I will try my best to add those Questions in this article. If you want to learn Test Class…