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/gauge-active-admin-example-maven and our blog
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).
The tests are run on Chrome by default.
This example requires the following softwares to run.
gauge install java
java -jar activeadmin-demo.war
If you already have Gradle installed, you can execute specs as gradle specs
. Otherwise, you can use the gradle wrapper and run specs as below:
./gradlew gauge
gradlew.bat gauge
This runs Gauge specs with Gradle.
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:
./gradlew gauge -Penv=firefox
or
./gradlew gauge -Penv=ie
Note:
Copyright 2016, ThoughtWorks Inc.