cancel
Showing results for 
Search instead for 
Did you mean: 

Test Run Listener

Contributor

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 1
Highlighted

Re: Test Run Listener

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

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️Please mark my answer as a solution if it was helpful
New Here?
Join us and watch the welcome video:
Top Kudoed Authors