jelar
15 years agoNew Contributor
Common setup and tear down scripts that will run once
Hi all,
I'm trying to create setup and tear down scripts that will execute only once before (for generating data into DB) and after test cases running (for cleanup DB). Anyone have idea how to create such scripts to execute them only once regardless that I run: test case(s) test suite(s) or project at all. For example I need unique setup and unique teardown that will cover all these scenarios:
SETUP->single test case->TEARDOWN
or
SETUP->test suite->TEARDOWN
or
SETUP-project->TEARDOWN
Waiting for your answers
I'm trying to create setup and tear down scripts that will execute only once before (for generating data into DB) and after test cases running (for cleanup DB). Anyone have idea how to create such scripts to execute them only once regardless that I run: test case(s) test suite(s) or project at all. For example I need unique setup and unique teardown that will cover all these scenarios:
SETUP->single test case->TEARDOWN
or
SETUP->test suite->TEARDOWN
or
SETUP-project->TEARDOWN
Waiting for your answers
