https://github.com/labzero/cucumber_selenium_rig
https://github.com/labzero/cucumber_selenium_rig
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/labzero/cucumber_selenium_rig
- Owner: labzero
- Created: 2014-04-29T20:53:40.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-12T04:16:21.000Z (almost 12 years ago)
- Last Synced: 2024-03-25T22:43:45.114Z (about 2 years ago)
- Language: Ruby
- Size: 165 KB
- Stars: 0
- Watchers: 12
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Intro
Welcome to a Cucumber/Capybara/Selenium testing framework. You can write Cucumber features to invoke Selenium actions.
## Installation
Once you've got Ruby 2.0 or greater installed simply run the following at the command line:
```
$ gem install bundler
```
```
$ bundle install
```
That's it!
## Configuration
Update config/environments.yml and config/cucumber.yml to match the config info in your environments.
Create a SauceLabs account for your organization and use the code 'labzero' to get some extra free minutes. Then edit support/drivers.rb with your SauceLabs API credentials.
You will also likely need to either use those credentials in the Sauce Connect Jenkins plugin or install SauceConnect as a daemon somewhere that has access to the environments managed by CI.
## Example Usage
```
$ cucumber -p dev
```
To point the suite at the QA system:
```
$ cucumber -p qa
```
To smoke test the QA system with Chrome on Windows 7:
```
$ cucumber -p qa-smoke BROWSER=sauce_chrome_win7
```
To run only the @foo scenarios against qa in an Android browser and grab screenshots:
```
$ cucumber --tags @foo SCREENS=true ENVIRONMENT=qa BROWSER=sauce_android_4_0
```
## License
This example selenium rig is released under the MIT License.