On Friday, March 18, 2016 at 11:41:57 AM UTC-7, Chuck van der Linden wrote: > > On Friday, January 29, 2016 at 2:42:52 AM UTC-8, tkp wrote: >> >> *Aim : *Dockerizing Watir-Webdriver tests >> >> *Environment:* >> OS : Ubuntu 14.04 >> Browser : FF 43 >> Docker : v1.7.1 >> >> *Issue:* >> Currently it is observed that opening a browser instance and navigating >> to a website is very slow >> when triggered from within a Docker instance. I compared the times for >> loading heavy webpages >> like yahoo.com from within Docker and from the host machine (ubuntu) but >> the performance is >> pretty much the same. The difference in behavior is seen while using >> Watir to automate browser >> actions. >> Has anyone encountered anything similar? >> > > Nope, I used docker containers to run Watir tests in our CI environment > (triggered to run after the job that deployed the code to test servers) > when I was at climate.com and it worked just fine performance wise. > There was a tiny delay while the code for the scripts downloaded, and gems > and such updated, but actual runtime for the test scripts was pretty much > the same as running from my mac, or in a windows vm on the mac. (browser > being used had more to do with runtimes than anything else) Performance > wise, using jruby was slightly faster than regular ruby. >
As an aside however, especially if containers are based off an older linux release, you will want to ensure that your container is created such that you have a current version of whichever browser you are using. Typically I use the most current Enterprise Support Release (ESR) <https://www.mozilla.org/en-US/firefox/organizations/faq/> of Firefox. This can be critical (and can affect performance) if the default firefox is fairly old (such as you'd get with 'lucid' or a similar vintage of Ubuntu) -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
