Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple concurrent browser tests with watir-webdriver through different browsers

so I'm working on a website here and I would like to run multiple browser tests at one time. What I mean by this is it should perform my smoke tests on ie, firefox and chrome at the same time and report back each browser results. I'm currently only testing with ie with rpsec and watir-webdriver but would like to automate for the other 2 browsers. Are there any existing gems out there (I haven't been able to find any), if not what would be the best way to go around solving this issue?

like image 754
cody Avatar asked Feb 23 '23 00:02

cody


2 Answers

You should try WatirGrid.

It won't make all the work for you but it will give you a platform to launch multiple tests at once. The you can just launch the same test 3 times changing the target browser and the grid will handle where they will be executed.

like image 163
robertodecurnex Avatar answered Mar 20 '23 02:03

robertodecurnex


Why don't need anything except watir-webdriver to run multiple browsers on the same machine.

ie = Watir::Browser.new :ie
firefox = Watir::Browser.new :firefox
chrome = Watir::Browser.new :chrome
opera = Watir::Browser.new :opera
like image 40
Željko Filipin Avatar answered Mar 20 '23 03:03

Željko Filipin