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 <[email protected]>wrote:

> On Wed, Mar 19, 2014 at 10:30 PM, Jon Robson <[email protected]>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
> --
> 1: https://github.com/cucumber/cucumber/wiki/Hooks
> 2:
> https://github.com/wikimedia/mediawiki-selenium/blob/master/lib/mediawiki_selenium/support/hooks.rb
>
_______________________________________________
Mobile-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mobile-l

Reply via email to