Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Files

Latest commit

 

History

History

Ruby-Cucumber-Selenium

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Ruby-Cucumber-Selenium

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 framework. Issues regarding this framework should be submitted through GitHub. For questions regarding Sauce Labs integration, please see the Sauce Labs documentation at https://wiki.saucelabs.com/. This framework is not maintained by Sauce Labs Support.

Environment Setup

  1. Global Dependencies

    $ git clone ruby-rspec-watir https://github.com/saucelabs-sample-test-frameworks/Ruby-RSpec-Watir.git
    
    • Install bundler
    $ gem install bundler
    
  2. 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>
    
  3. Project Dependencies

    • Install packages
    $ bundle install
    

Running Tests

  • Tests in Parallel:
     $ rake
    
  • Specific Configuration (see /spec/support/platforms.yml file)
     $ rake mac_sierra_chrome
    
  • Run Regression Tests:
    $ export PERF_USERNAME=performance_glitch_user && rake
    
  • Run multiple browser/os combinations in parallel:
     $ rake sauce_demo
    

Watch Your Tests Run

Sauce Labs Dashboard