MemberFebruary 18, 2020 at 3:55 pm
What is the use of startTest() and stopTest() method in Salesforce?
MemberFebruary 18, 2020 at 5:06 pm
startTest() and Test. stopTest()denotes the start and end of the test cases that we want t check in our code their job is to primarily allow us to reset the governor limits within the context of your test execution and to be able to test asynchronous methods. These two statements cannot be called more than once within a testMethod.
MemberFebruary 19, 2020 at 1:35 pm
The Test.startTest method marks the point in your test code when your test actually begins.
The Test.stopTest method marks the point in your test code when your test ends.
Log in to reply.