Activity Forums Salesforce® Discussions What is the use of @testSetup method in test class in Salesforce?

  • Marziya

    Member
    May 11, 2020 at 12:59 pm

    Method marked with @TestSetUp annotation executes before any testMethod. Data created in this method doesn't need to be created again and again, and it is by default available for all test methods. There can be only one setup method per test class.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos