Giter Club home page Giter Club logo

ruby-watir-tests's Introduction

Ruby Watir Tests

Important Disclaimer

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.

Purpose

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.

Technologies used in this project:

RSpec

  1. Pass Information to Saucelabs
  2. Execute Tests in Parallel
  3. Integrate with Applitools
  4. Watir Drops Example
  5. Watir Model Example

Cucumber

  1. Pass Information to Saucelabs
  2. Execute Tests in Parallel
  3. Integrate with Applitools
  4. Page Object Example
  5. Data Magic Example

Requirements to Run These Examples

  1. Global Dependencies

    $ brew install ruby
    
    $ gem install rake
    
    • Install bundler (Sudo may be necessary)
    $ 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>
    

    If you don't do this, the Rakefile will complain.

  3. Project Dependencies

    • Install packages (Use sudo if necessary)
    $ bundle install
    
    • Set Build ID (Optional)
    $ export BUILD_TAG=sauce_automated_build_name
    

Running Tests

  1. Run RSpec specs on Sauce in Parallel:

    $ bundle exec rake test_rspec
    
  2. Run Cucumber Features on Sauce in Parallel:

    $ bundle exec rake clean test_cucumber
    
  3. Execute Tests on Sauce in Parallel using an environment variable:

    $ TEST_RUNNER=rspec bundle exec rake
    

View the results on your Sauce Labs Dashboard

Contributing

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

License

This project is available under the terms of the MIT License.

Additional Resources

  • A great resource to search for issues not explicitly covered by documentation.

ruby-watir-tests's People

Contributors

titusfortner avatar austenjt avatar neilgoldman avatar ndmanvar avatar

Watchers

Jon Austen avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.