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 Firefox by default.
This example requires the following softwares to run.
- Go
- Gauge
- Gauge Go plugin
- can be installed using
gauge --install go
- can be installed using
- Chrome driver
- Download from here
- On Mac:
brew install chromedriver
- Selenium server standalone
- Available in
resources
directory of this repo. If you want a different version of it, it can be downloaded from here
- Available in
- Clone this repository in GOPATH.
godep github.com/tebeka/selenium
java -jar <path_to_selenium_server_jar> -role hub
This uses port 4444 by default for its web interface.
To set up a node, run
java -jar <path_to_selenium_server_jar> -role node
Read more on setting selenium grid here.
- 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/
gauge specs
This uses Chrome as default browser for specs execution.
- Specification, Scenario, Step, Concepts and Context Steps
- Table parameters
- Using External datasource (special param)
- Using tags
- Using Gauge with webdriver