Okay that seems like what I am looking for.
So ideally I would include the tag @watchstar-setup in the 2 watchlist tests. They would then run API requests to ensure the page is watched (or run browser steps - is it possible to do that from in here)

I had a play around with this though and I can't get the hooks to run a basic puts statement - am I missing something? Do I need to require the hooks.rb file somewhere?



On Thu, Mar 20, 2014 at 8:58 AM, Željko Filipin <zfilipin@wikimedia.org> wrote:
On Wed, Mar 19, 2014 at 10:30 PM, Jon Robson <jrobson@wikimedia.org> wrote:
Does Watir have a concept of a tear down step?

No. Actually, Watir is really an insignificant part of our test automation toolset, just a wrapper around Selenium. And Selenium just drives browsers. But Cucumber, our test runner, does have hooks[1-2], code that runs before and/or after a scenario. Let me know if you need help with setting up Cucumber hooks.

Željko
--