Activity › Forums › Salesforce® Discussions › What are the advantages of Testsetup in test classes?

  • Kumar

    Member
    February 15, 2017 at 2:34 PM

    Hi Sushant,

    You can use @testSetup to define common test data for all the methods of a test class.

    Go to the developer guide for more details.

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Salesforce Interview Questions and Answers - For Freshers and Experienced Candidates

Video in

Learn most important Salesforce Interview Questions and Answers, asked at every interview. These Interview questions will be useful to all entry-level candidates, beginners, interns, and…