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

  • What are the advantages of Testsetup in test classes?

  • sushant

    Member
    February 15, 2017 at 2:26 pm

    Hi All,

    What are the advantages of Testsetup in test classes?

    Thanks

  • 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.

     

Viewing 1 - 2 of 2 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos