Skip to content

getgauge-examples/ruby-selenium

Repository files navigation

Build Status

Gauge example in Ruby

This is an example project for doing web automation testing with Gauge. This project tests some of the functionalities of the active admin demo app. This app is hosted as a Java WAR (with embedded Jetty).

Running this example

The tests are run on Chrome by default.

Prerequisites

This example requires the following softwares to run.

  • ruby-2.3.1 or above
  • Gauge
  • Gauge Ruby plugin
    • can be installed using gauge install ruby
  • Chrome

Setting up the System Under Test (SUT)

java -jar activeadmin-demo.war

Run specs

You can execute specs as bundle exec gauge specs This runs Gauge specs with Maven.

This uses Chrome as default browser for specs execution. Make sure Chrome is installed in your machine and chromedriver is in PATH.

If you want to use Firefox/IE as browser, pass the corresponding argument to set browser environment as follows:

bundle exec gauge run specs --env="firefox"
or
bundle exec gauge run specs --env="ie"

Topics covered in the example

Copyright

Copyright 2018, ThoughtWorks Inc.

About

Example Gauge tests for active admin in ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages