Skip to content

A sample project illustrating Gauge features using Golang & selenium webdriver

Notifications You must be signed in to change notification settings

getgauge-contrib/gauge-example-go

Repository files navigation

Gauge example in Go

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.

  • Go
  • Gauge
  • Gauge Go plugin
    • can be installed using gauge --install go
  • 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
  • Clone this repository in GOPATH.
  • godep github.com/tebeka/selenium

To set up the Selenium grid

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.

Setting up the System Under Test (SUT)

java -jar activeadmin-demo.war

Execution

gauge specs

This uses Chrome as default browser for specs execution.

Topics covered in the example

About

A sample project illustrating Gauge features using Golang & selenium webdriver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published