Activity › Forums › Salesforce® Discussions › What are the advantages of Testsetup in test classes? Salesforce® Discussions What are the advantages of Testsetup in test classes? Posted by sushant on February 15, 2017 at 2:26 PM Hi All, What are the advantages of Testsetup in test classes? Thanks Kumar replied 9 years, 3 months ago 2 Members · 1 Reply 1 Reply 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. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me