/gauge-example-ruby

An example project, illustrating test automation using Gauge, with ruby support.

Primary LanguageRubyApache License 2.0Apache-2.0

Deprecation notice

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

Gauge example project, in Ruby

Build Status

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.

Concepts covered

Prerequisites

Setting up the System Under Test (SUT)

java -jar activeadmin-demo.war

Executing specs

Set up

This project requires bundler to install dependencies, bundler can be installed by running

gem install bundler

To install dependencies run :

bundle install

All specs

bundle exec gauge run specs

This will also compile all the supporting code implementations.

Copyright

Copyright 2017, ThoughtWorks Inc.