The demo scripts in this repository allow you to run simple automated tests in order to validate your Ruby testing environment and your saucelabs.com account credentials.
The code in these scripts 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. These scripts are provided for educational and demonstration purposes only, and should not be used in production. Issues regarding these scripts should be submitted through GitHub. These scripts are maintained by the Technical Services team at Sauce Labs.
Some examples in this repository, such as
appium-examples
andheadless-examples
, may require a different account tier beyond free trial. Please contact the Sauce Labs Sales Team for support and information.
In order to complete these exercises you must complete the following prerequisite installation and configuration steps:
- Install Git
- Install Ruby
- Install an IDE
- Setup the Project
-
Setup
Gemfile
:-
Install
bundler
so that we can easily update and resolve dependencies:$ gem install bundler
-
-
Execute the
bundle
Command:-
Use the following to install the required
gems
:$ bundle install --path .bundle
-
-
Run the Test Scripts
-
In order to run the tests on www.saucelabs.com, you need to export your Sauce Labs account credentials as environment variables, or hard code (not recommended) the values of
SAUCE_USERNAME
andSAUCE_ACCESS_KEY
in each script. For example:https://SAUCE_USERNAME:[email protected]:443/wd/hub'
-
Run the following command to have
rspec
search and execute 'specs' in your project directories:$ bundle exec rspec
-
You may also use 'Run Configurations' in your IDE. For directions on how to setup Run/Debug Configurations refer to Documentation:
-