Forum Discussion

Raju_Vusirikala's avatar
Raju_Vusirikala
Contributor
16 years ago

Test Run Listener

Hi,

I know we have TestRunLister which we give hooks like beforeRun,beforeStep, afterStep and afterRun on testcase level,

but I need to know similar kind of hook on execution/Job level like if I use testRunner.bat, which will give me the control lik beforeTestRunner and afterTestRunner only once on execution. so that i can peform one time Global intialization & cleanup jobs irrespective of the test case.

Let me know if you need any more clarity on what i am expecting.

Thanks
Raju.

1 Reply

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    I think that the best way to do this is to put all the test cases you want to run into the same TestSuite, and you can add setup and teardown scripts for the TestSuite as a whole.

    I hope that helps you.
    /Nenad
    http://eviware.com