=======================
Selenium examples for TestUnit and BrowserStack Automate
This repository provides information and helpful tweaks to run your TestUnit tests on the BrowserStack selenium cloud infrastructure.
###Configuration
Add rake, test-unit, browserstack-local gems into your Gemfile.
Run bundle install.
Export the environment variables for the username and access key of your BrowserStack account. These can be found on the automate accounts page on BrowserStack
export BROWSERSTACK_USERNAME=<browserstack-username>
export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>
###Run tests
- Single Test:
rake name_of_testExample:rake windows_firefox_70You see the other tests in the rakefile. - Parallel Tests:
rake parallel_test - Local test: To run local tests, just set the
browserstack.localcapability to true in the test.
###Further Reading
Happy Testing!