Download Selenium Server (2.33.0 seems to work nicely). Run it on the host (physical or vm) with the browser under test with:
java -jar selenium-server-standalone-2.33.0.jar
Run the tests:
-
BROWSER_NAME
: eg. firefox, ie, chrome, safari -
DRIVER_HOST
: The IP address of the host running the selenium server.BROWSER_NAME=firefox DRIVER_HOST=10.0.2.2 bundle exec cucumber -p selenium
Register with Saucelabs and download their Sauce Connect tool. Run it locally with
java -jar Sauce-Connect.jar <sauce-user> <sauce-key>
Run the tests against a specific browser:
BROWSER
: platform,browser(,version) see their list of browsers
BROWSER="windows xp,firefox" SAUCE_USER_NAME=<sauce_user> SAUCE_API_KEY=<sauce_api_key> bundle exec cucumber -p sauce
Run the tests against a pre-defined matrix of browsers (defined in config/sauce_browser_matrix.json
)
bundle exec rake sauce:cucumber