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

The Intelligent Commerce Stack: How Salesforce is Powering the Next Generation of Online Retail

Blog in

Online retail faces growing challenges: managing complex operations, integrating multiple sales channels, and delivering personalized, consistent experiences across B2C and B2B segments. Traditional commerce systems…

Popular Salesforce Videos