Skip to content

A quickstart project to run some simple tests for native mobile applications with Appium and Ruby

License

Notifications You must be signed in to change notification settings

saucelabs-training/quickstart-appium-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ruby Appium Example Scripts

These demonstration scripts allow you to run an automated Appium tests on Sauce Labs platforms.

Disclaimer:

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 and headless-examples, may require a different account tier beyond free trial. Please contact the Sauce Labs Sales Team for support and information.


Prerequisites

Environment Setup

  1. Set Global Dependencies

    $ brew install ruby
    
    $ gem install rake
    
    • Install bundler (Sudo may be necessary)
    $ gem install bundler
    
  2. Set Sauce Credentials

    $ export SAUCE_USERNAME=<your Sauce Labs username>
    $ export SAUCE_ACCESS_KEY=<your Sauce Labs access key>
    
  3. Set Project Dependencies

    • Install packages (Use sudo if necessary)
    $ bundle install
    

Running the Tests

  1. Navigate to the Rspec directory:
    • for running tests on emulators and simulators: emusim
    • for running tests on real devices: rdc
  2. Navigate to either the android or ios directory.
  3. Run the following command to run tests in Parallel:
    $ rake test_sauce
    
  4. Visit the Sauce Labs Dashboard to see the results.

Advice and Troubleshooting

There may be additional latency when using a remote webdriver to run tests on Sauce Labs, therefore timeouts or "Waits" may need to be increased. Please read the following wiki page on tips regarding explicit waits


More Information

About

A quickstart project to run some simple tests for native mobile applications with Appium and Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages