Activity › Forums › Salesforce® Discussions › What is the use of startTest() and stopTest() in Salesforce?
-
What is the use of startTest() and stopTest() in Salesforce?
Posted by Anjali on April 13, 2020 at 10:52 AMWhat is the use of startTest() and stopTest() in Salesforce?
Pooja replied 6 years, 1 month ago 5 Members · 4 Replies -
4 Replies
-
startTest() and Test. stopTest() exist primarily to allow you 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.
- [adinserter block='9']
-
startTest() and Test. stopTest() exist primarily to allow you 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
-
This reply was modified 6 years, 1 month ago by
Sumit kumar.
-
This reply was modified 6 years, 1 month ago by
-
StartTest() and stopTest() is used in Testclass to reset the governer Limits.
-
startTest() and Test. stopTest() exist primarily to allow you 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
Log In to reply.