Activity Forums Salesforce® Discussions How testsetup help in test class in Salesforce?

  • Shweta

    Member
    June 1, 2020 at 2:33 pm

    Initially, we had to create test data in every test method, because every test method is considered a different transaction with its own governor limits. But with the help of testsetup, You can write a method in the test class, with @TestSetUp annotation applied, and create all your common test data in this method.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos