TestingBot provides an online grid of browsers and mobile devices to run Automated tests via Selenium WebDriver. This example demonstrates how to use Ruby with Cucumber to run a test in parallel, across several browsers in the TestingBot cloud.
-
Global Dependencies
$ brew install ruby
- Install Rake
$ gem install rake
- Install bundler (sudo may be necessary)
$ gem install bundler
-
TestingBot Credentials
- Add your TestingBot Key and Secret as environmental variables. You can find these in the TestingBot Dashboard.
$ export TB_KEY=<your TestingBot Key> $ export TB_SECRET=<your TestingBot Secret>
-
Project Dependencies
- Install packages (Use sudo if required)
$ bundle install
- Tests in Parallel:
$ bundle exec rake test_testingbot
You will see the test result in the TestingBot Dashboard