Forum Discussion

jelar's avatar
jelar
New Contributor
15 years ago

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
No RepliesBe the first to reply