-
Notifications
You must be signed in to change notification settings - Fork 171
Choos a WebBrowser to Test
By default the defined browser to execute the tests is FireFox (IceWeasel for Debian users). IceWeasel works perfectly, but on the other hand, the newest FF (>31) give some problems with our installed Selenium version.
For this reason (or maybe because you want to tests some new features with other browsers) you might want to execute the tests with a specific browser instead of FF.
To chose a different browser you have to define witch one you want throw “Open browser” Keyword. (This Keyword is located in bika/lims/tests/keywords.txt on develop branch and inside the same test file on hotfix/next):
Open browser 'url' browser='browser'
An example could be:
Open browser http://localhost:55001/plone/# browser=chrome
or
Open browser ${PLONEURL}/# browser=chrome
To know other possible browsers read the table from Selenium keywords table
With GoogleChrome we may have some problems, consequently, a exception error will raise: "WebDriverException: Message: 'ChromeDriver executable needs to be available in the path."
The WebDriver is a tool designed to support automated testing of web apps.
If GoogleChrome is going to be used to test BikaLims, then we have to follow these simple steps:
- Download the last ChromeDriver from this google storage. (If you are using Chromium, you won't be able to use the latest version, download another.)
- Extract the executable and copy it to the expected location of Chrome's executable, for Linux systems is /usr/bin/google-chrome
- Change the executable permissions to allow Selenium to execute chromediver:
chmod 755 chromedriver
If you have some problems, then you may have to read carefully this Selenium wiki page.
User Documentation
Hosting and Administration
Professional Service Providers