What two things should be done to create the test data within the unit test with the least amount of code?
A developer created a trigger on the Account object and wants to test if the trigger is properly bulklfield. The developer team decided that the trigger should be tested with 200 account records with unique names.
What two things should be done to create the test data within the unit test with the least amount of code? Choose 2 answers
A . Use the @isTest(isParallel=true) annotation in the test class.
B . Use Test.loadData to populate data in your test methods.
C . Use the @isTest(seeAllData=true) annotation in the test class.
D . Create a static resource containing test data.
Answer: B,D
Latest PDI Practice Questions with 191 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments