Thanks to visit codestin.com
Credit goes to github.com

Skip to content

rgr2k/gauge-example-java

 
 

Repository files navigation

Gauge example in Java

Build Status HTML report Console report

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 Firefox by default.

Prerequisites

This example requires the following softwares to run.

  • Java 1.7 or above
    • Note that Gauge works with Java 1.6 and above. But this particular example uses Java 1.7
  • Gauge
  • Gauge Java plugin
    • Gauge Java plugin can be installed using gauge --install java
  • Firefox

Setting up the System Under Test (SUT)

java -jar activeadmin-demo.war

On Linux / Mac

./gradlew

On Windows

gradlew.bat specs

This runs Gauge specs with gradle.

This uses Firefox as default browser for specs execution. Make sure Firefox(v42 or prior) is installed in your machine and is in PATH.

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

./gradlew -Penv=chrome
or
./gradlew -Penv=ie

Note:

  • Gauge can also be used with other build tools like maven and ant.
  • You can use Gauge even without a build script!

Topics covered in the example

About

A sample project illustrating Gauge features using webdriver

Resources

License

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 96.5%
  • Shell 3.5%