at_exit do puts "Youve ended!" end might be what you need ( check the syntax, long time since Ive used it ) I also dont know what happens with multiple requires files etc ( I have a feeling they may go into a queue and all of them executed)
Paul On Thu, Apr 8, 2010 at 2:28 PM, Shlomit Gazit <[email protected]>wrote: > Is there a way to call a module in watir test that will always run at > the end of the test no matter what? > I thought teardown would do that but I was wrong. > The aim is to call a module that is checking if the test has failed or > not (by a variable) and send email accordingly. > Since I was disappointed from all Integration servers to run watir > tests, I thought to write something of my own to determine if watir > test failed or not. > > Any idea how to call this kind of method that will always executes at > the end of the test no matter what? > > Thank you, Shlomit. > > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > You received this message because you are subscribed to > http://groups.google.com/group/watir-general > To post: [email protected] > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: [email protected]
