This code is provided on an "AS-ISβ basis without warranty of any kind, either express or implied, including without limitation any implied warranties of condition, uninterrupted use, merchantability, fitness for a particular purpose, or non-infringement. Your tests and testing environments may require you to modify this project. For questions regarding Sauce Labs integration, please see the Sauce Labs documentation. This project is not maintained by Sauce Labs Support.
This is the recommended place to start if you want to create a new project in Ruby. If you already have an existing test suite and are just looking to add Sauce Labs functionality to that project, or if you need to run tests on a mobile application, take a look at the Ruby Example Tests project.
- Pass Information to Saucelabs
- Execute Tests in Parallel
- Integrate with Applitools
- Watir Drops Example
- Watir Model Example
- Pass Information to Saucelabs
- Execute Tests in Parallel
- Integrate with Applitools
- Page Object Example
- Data Magic Example
-
Global Dependencies
- Install Ruby
- If on Mac install Ruby with Homebrew
$ brew install ruby
- Install Rake
$ gem install rake
- Install bundler (Sudo may be necessary)
$ gem install bundler
-
Sauce Credentials
- In the terminal export your Sauce Labs Credentials as environmental variables:
$ export SAUCE_USERNAME=<your Sauce Labs username> $ export SAUCE_ACCESS_KEY=<your Sauce Labs access key>
If you don't do this, the Rakefile will complain.
-
Project Dependencies
- Install packages (Use sudo if necessary)
$ bundle install
- Set Build ID (Optional)
$ export BUILD_TAG=sauce_automated_build_name
-
Run RSpec specs on Sauce in Parallel:
$ bundle exec rake test_rspec
-
Run Cucumber Features on Sauce in Parallel:
$ bundle exec rake clean test_cucumber
-
Execute Tests on Sauce in Parallel using an environment variable:
$ TEST_RUNNER=rspec bundle exec rake
View the results on your Sauce Labs Dashboard
This project is open source! The maintainers welcome the community to submit an issue with ideas or bug reports, and making pull requests with bug fixes and suggested code improvements
This project is available under the terms of the MIT License.
- A great resource to search for issues not explicitly covered by documentation.