Cross Platform Gauge Installation

Installing Gauge for Windows, MacOS and Linux platforms

Osanda Deshan Nimalarathna
Test Automation Master
3 min readNov 25, 2018

--

Introduction to Gauge

Gauge by ThoughtWorks

Gauge is the Behavior Driven Test Automation framework developed by ThoughtWorks.Inc, pioneers of Selenium. This enables automation engineers to develop automation frameworks and accelerate the software development process.

Advantages of Gauge Framework

Advantages of Gauge

Some of the key advantages of Gauge are listed below.

  1. Unique steps with no keywords (No duplicate steps)
    Here we will only need to develop one step implementation once and that will be available across the whole project.
  2. Data stores
    This is one of the coolest features in Gauge which can be used to keep the data between the steps inside a scenario or keeping data within the scenarios at the run-time.
  3. Customized and effective reporting mechanism with several report types
    Gauge will be providing a live test execution report which is very unique to Gauge and that will help us to identify the failures without keep waiting until the execution is completed. In addition to that, Gauge will be providing the test execution report in HTML, XML and JSON formats.
  4. Plug and play architecture
    We can easily integrate anything with Gauge. As of now we have successfully integrated Selenium, Rest Assured, Appium and AutoIt.
  5. Parallel test execution
    We can easily define the number of threads to parallel run the tests.
  6. Multi-platform support
    Gauge is platform independent. We can use it with any platform. (Windows, Ubuntu or Mac OS)
  7. Multi-language support
    Supports widely using programming languages Java, Python, C#, Ruby, JavaScript.
  8. Tagged test execution
    Allows the running of specific tests providing tag(s) name in specs or scenarios separately (without running the entire tests), which is handy when running a regression test on a specific module after a bug fix.
  9. Free and open source
    Gauge is a free and open source framework where we can contribute via github for the new features and bug fixes. Also we can get support through their gitter chat room.
  10. Adaptability
    We will need only a little guidance to work with Gauge because of its usability and framework capabilities. If the step definitions are implemented, even a non technical person can design tests using Markdown syntax which is very much similar to the business language.

Pre Requisites

  1. Java
  2. Maven

How to Install Gauge Core

On Windows

  1. Install Chocolatey by executing the following command.
    @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString(‘https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
  2. Install Gauge by executing the following command.
    choco install gauge

On MacOS

  1. Update Homebrew.
    brew update
  2. Install Gauge using Homebrew.
    brew install gauge

On Linux

  1. First, add Gauge’s GPG key with this command.
    sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-keys 023EDB0B
  2. Then add Gauge to the repository list using this command.
    echo deb https://dl.bintray.com/gauge/gauge-deb nightly main | sudo tee -a /etc/apt/sources.list
  3. Finally, install Gauge using these commands.
    sudo apt-get update
    sudo apt-get install gauge

How to Install Gauge Plugins

  1. Open Command Prompt and execute following commands.
    gauge install java
    gauge install html-report
    gauge install json-report
    gauge install xml-report
    gauge install spectacle
    gauge install flash
  2. You can check the installation using the following command.
    gauge -v
  3. If the installation is success, it will output like this:
Gauge version: <version number>
Commit Hash: <commit code>
Plugins
-------
flash (<version number>)
html-report (<version number>)
java (<version number>)
json-report (<version number>)
spectacle (<version number>)
xml-report (<version number>)

Happy Automation !!!

--

--

Test Automation Master
Test Automation Master

Published in Test Automation Master

This space will help you to learn test automation, and DevOps, follow this space for latest test automation tools, frameworks and many more!

Osanda Deshan Nimalarathna
Osanda Deshan Nimalarathna

Written by Osanda Deshan Nimalarathna

Founder of MaxSoft | RPA Solution Architect | Open-source Contributor | Automation Framework Developer | Technical Specialist

No responses yet