Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 844 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 844 Bytes

cucumber-watir-browserstack

A sample project to run tests over BrowserStack Automate using Capybara and Watir Webdriver.

To run the tests, execute:

cucumber BS_USERNAME=<username> BS_AUTHKEY=<access-key> SELENIUM_PLATFORM=<platform> SELENIUM_BROWSER=<browser-name>

or

cucumber BS_USERNAME=<username> BS_AUTHKEY=<access-key> BS_AUTOMATE_OS=<os> BS_AUTOMATE_OS_VERSION=<os-version> SELENIUM_BROWSER=<browser-name>

Examples:

cucumber BS_USERNAME=<username> BS_AUTHKEY=<access-key> SELENIUM_PLATFORM=WINDOWS SELENIUM_BROWSER=chrome

or

cucumber BS_USERNAME=<username> BS_AUTHKEY=<access-key> BS_AUTOMATE_OS="OS X" BS_AUTOMATE_OS_VERSION="Mountain Lion" SELENIUM_BROWSER="chrome"

Alternatively the variables can be set in the environment using env or your CI framework (like Travis or Jenkins)