Activity Forums Salesforce® Discussions What does Test.startTest and Test.stopTest in the test class do ?

  • chanchal kumar

    Member
    August 30, 2018 at 7:57 am

    Hello Anurag

    Any code that executes after the call to startTest and before stopTest is assigned a new set of governor limits. These two statements cannot be called more than once within a testMethod.

    You need these two methods when you are dealing with large number of data.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos