cancel
Showing results for 
Search instead for 
Did you mean: 

Test Run Listener

Dear Community, API Masterminds week 4 has started!

Participate in the exciting online event by posting questions or replies and win! During the entire March, we decide top contributors each week and reward them with great gifts . Congratulate the winners of Week 3 here.
Week 4 task: Ask more questions, bring interesting topics and reply to existing ones in the ReadyAPI Community
Topics to participate in:
See All
Week 4 Leaders:
Members with the biggest number of posts
sonya_m 16 posts
nmrao 14 posts
HimanshuTayal 12 posts
pizzaTime 1 posts
richie 1 posts
Highlighted
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


 Join the 2020 API Masterminds event in the ReadyAPI Community to demonstrate your excellent expertise, help people and win prizes! Start participating today!
New Here?
Join us and watch the welcome video:
Join 2020 API Masterminds
We invite all lovers of API testing to participate in the API Masterminds event. Ask questions or help others by giving solutions and get rewarded.
>> Participate Today
Get Your Free Ticket
SBC2020
Top Kudoed Authors