https://github.com/testingbot/ruby-cucumber-example
  
  
    An example of Ruby with Cucumber for TestingBot.com 
    https://github.com/testingbot/ruby-cucumber-example
  
cucumber ruby selenium selenium-webdriver webdriver
        Last synced: 8 months ago 
        JSON representation
    
An example of Ruby with Cucumber for TestingBot.com
- Host: GitHub
- URL: https://github.com/testingbot/ruby-cucumber-example
- Owner: testingbot
- Created: 2018-10-15T13:57:03.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-01-25T10:02:31.000Z (almost 2 years ago)
- Last Synced: 2025-01-19T19:17:07.208Z (9 months ago)
- Topics: cucumber, ruby, selenium, selenium-webdriver, webdriver
- Language: Ruby
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
 
Awesome Lists containing this project
README
          [](https://github.com/testingbot/ruby-cucumber-example/actions/workflows/test.yml)
## TestingBot - Ruby Cucumber
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.
### Environment Setup
1. Global Dependencies
    * Install [Ruby](https://www.ruby-lang.org/en/documentation/installation/)
    * Or Install Ruby with [Homebrew](https://brew.sh)
    ```
    $ brew install ruby
    ```
    * Install [Rake](http://docs.seattlerb.org/rake/)
    ```
    $ gem install rake
    ```
    * Install bundler (sudo may be necessary)
    ```
    $ gem install bundler
    ```
2. TestingBot Credentials
    * Add your TestingBot Key and Secret as environmental variables. You can find these in the [TestingBot Dashboard](https://testingbot.com/members).
    ```
    $ export TB_KEY=
    $ export TB_SECRET=
    ```
3. Project Dependencies
    * Install packages (Use sudo if required)
    ```
    $ bundle install
    ```
### Running Tests
* Tests in Parallel:
    ```
    $ bundle exec rake test_testingbot
    ```
You will see the test result in the [TestingBot Dashboard](https://testingbot.com/members)
### Resources
##### [TestingBot Documentation](https://testingbot.com/support/)
##### [SeleniumHQ Documentation](https://www.selenium.dev/documentation)
##### [Cucumber Documentation](https://cucumber.io/docs/reference)
##### [Ruby Documentation](https://ruby-doc.org/)