let me rephrase my question:
I have 30 test cases in a suite. Each test cases does below actions
1. opens up the browser.
2. login to the application,
3. do the functional testing steps for each test
4. logout from the application
5. closes the browser
step 1, 2, 4 and 5 is repeating for all 30 test cases.
instead I want execute all 30 tests as below.
1. Test Setup (Open the browser and login to the application)
2. Execute test 1, test 2, test 3 ......test 30 (which just handles the functional steps related to the respective tests)
3. Test Tear down (logout from the application, closes the browser)
As i created reusable components i can do in a single tests as soon as one test is completes it logout from the application and closes the browser. But i want to keep the the application ready for other test to continue with out logout and closing the browser.
Thanks for your help in advance