Do not use this sample. It's a reference on why page objects will burn your house. Gauge recommends not using page objects. Refer https://github.com/getgauge-examples/ruby-selenium and our blog
This project serves as an example for writing Automation using Gauge
This project uses
- Capypage, that gives you neat helpers to define your Page Objects.
- Capybara, as a dependency of Capypage
- Test::Unit for assertions
- Snap CI has been setup to run the Gauge Specs from this project.
- Java 1.7 or above. [Required to bring up the SUT]
- Install Gauge
- Homebrew on Mac OS X :
brew install gauge
- Download Installer
- Homebrew on Mac OS X :
- Install Gauge-Ruby plugin by running
gauge install ruby
- Chromedriver, for Capybara to interact with Chrome. Make sure that the Chrome driver executable is available in your PATH.
- Download activeadmin-demo.war
- Bring up the SUT by executing the below command
java -jar activeadmin-demo.war
- The SUT should now be available at http://localhost:8080
This project requires bundler to install dependencies, bundler can be installed by running
gem install bundler
To install dependencies run :
bundle install
bundle exec gauge run specs
This will also compile all the supporting code implementations.
Copyright 2017, ThoughtWorks Inc.