https://github.com/browserstack/cucumber-ruby-browserstack
Selenium examples for Cucumber-Ruby and BrowserStack Automate
https://github.com/browserstack/cucumber-ruby-browserstack
Last synced: 9 months ago
JSON representation
Selenium examples for Cucumber-Ruby and BrowserStack Automate
- Host: GitHub
- URL: https://github.com/browserstack/cucumber-ruby-browserstack
- Owner: browserstack
- Created: 2016-05-06T07:44:49.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-07-03T15:03:57.000Z (over 2 years ago)
- Last Synced: 2025-06-19T11:50:47.213Z (9 months ago)
- Language: Ruby
- Homepage: https://www.browserstack.com
- Size: 34.2 KB
- Stars: 3
- Watchers: 14
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
cucumber-browserstack
=====================
This repository provides information and helpful tweaks to run your Cucumber tests on the BrowserStack selenium cloud infrastructure.
## Setup
* Clone the repo
* Install dependencies `bundle install`
* To test various sample repositories with ease, it is recommended to setup `BROWSERSTACK_USERNAME` and `BROWSERSTACK_ACCESS_KEY` environment variables. Alternatively you can directly update `*.config.yml` files inside the `config/` directory with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings)
### Running your tests
* To run tests, run `bundle exec rake parallel`
* To run local tests, run `bundle exec rake local`
Understand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github)
Alternatively the variables can be set in the environment using env or your CI framework (like Travis or Jenkins)
Notice that selenium driver.quit is not required for Capybara tests because Capybara implicitly does so.
###Further Reading
- [Cucumber](https://cucumber.io/)
- [CapyBara](http://jnicklas.github.io/capybara/)
- [BrowserStack documentation for Automate](https://www.browserstack.com/automate/ruby)
Happy Testing!