SetUp and TearDown
Sometimes you will need to delete a test database at the end of each test in a suite, or create an empty database at the beginning of each test. Operations like this can be performed by writing special fixtures that perform these functions in their constructors. These fixtures can then be invoked in the SetUp and TearDown pages of the suite. SeeTo perform operations at the beginning or end of an entire suite, rather than for each test, define the operations on pages named SuiteSetUp and SuiteTearDown.
SuiteSetUp and SuiteTearDown are associated with a test page by "Uncle Inheritance" as described in
Keyboard Shortcuts ?
×