Cucumber Scenario Outline slow on iterating after a browser.close through Watir

382 views Asked by At

I've got a scenario outline in cucumber that validates a number of instances of the same Web site. It logs into the site, checks a few things then closes the browser ready for the next iteration.

Following cucumber convention I've put the url's, user Id's and pwds into an examples table. It works correctly in that it validates each site but, on the 2nd and subsequent iterations after the first browser close, it can take up to a minute to restart the browser. Doesn't sound like much of a performance hit but when you get into 100's of sites being checked, it all adds up.

I've replaced the ui based steps with a quick Web service check, just downloading the wsdl and this version has no lag at all making me think the delay is to do with the browser.close statement.

Anyone, had similar issues or could shed some light on this?

0

There are 0 answers