Qus:    What is the purpose of Test.startTest() and Test.stopTest()?
Sep 23, 2021 01:46 1 Answers Views: 35 LALITH
Prev Next
Answers (1)
NAIDU Sep 23, 2021 23:31
Answer:   Test.startTest() and Test.stopTest() maintain fresh set of governor limits. Assume that you are consuming 99 SOQL queries outside of Test.startTest() and Test.stopTest() then you include any SOQL inside of Test.startTest() and Test.stopTest() count will start from 1.

Post Your Answer
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect