Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/testingbot/ruby-cucumber-capybara-example
An example of Ruby with Cucumber and Capybara
https://github.com/testingbot/ruby-cucumber-capybara-example
capybara cucumber ruby selenium webdriver
Last synced: 2 months ago
JSON representation
An example of Ruby with Cucumber and Capybara
- Host: GitHub
- URL: https://github.com/testingbot/ruby-cucumber-capybara-example
- Owner: testingbot
- Created: 2018-10-15T12:50:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-22T11:36:35.000Z (over 2 years ago)
- Last Synced: 2024-04-22T12:14:19.486Z (9 months ago)
- Topics: capybara, cucumber, ruby, selenium, webdriver
- Language: Ruby
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## TestingBot - Cucumber - Capybara
TestingBot provides an online grid of browsers and mobile devices to run Automated tests on via Selenium WebDriver.
This example demonstrates how to use Ruby with Cucumber and Capybara to run a test in parallel across several browsers.### Environment Setup
1. Global Dependencies
* Install [Ruby](https://www.ruby-lang.org/en/documentation/installation/)
* Or Install Ruby with [Homebrew](http://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:
```
$ 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](http://www.seleniumhq.org/docs/)
##### [Cucumber Documentation](https://cucumber.io/docs/reference)
##### [Capybara Documentation](http://www.rubydoc.info/github/jnicklas/capybara/master)
##### [Ruby Documentation](http://ruby-doc.org/)