thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Business Platforms & EA · Intermediate

TestSetup Method

Method annotated @testSetup that creates common test data once per test class, rolled back after each test method sees a fresh copy.

Definition

Test setup methods reduce execution time. Each test method gets the original setup data even if a previous test changed it.

Exam tip

@testSetup is not supported when the class uses SeeAllData=true.

Related terms