LambdaTest Community

Find answers, support, and inspiration from other users

Questions
LambdaTest Community
Answered

How does Gauge framework help with cross browser testing?

I was researching about how does Gauge framework help with cross browser testing. Can anyone please guide me on this particular topic.

Up Vote Down Vote 0 Votes
Posted 4 months ago

Answers


Source: How to perform automation testing with Gauge Framework

Gauge is a test automation solution that’s being built by ThoughtWorks; it’s cross-platform and open-source. It supports multiple languages including Ruby, Java, C#, Python and Javascript, and it has upcoming support for other languages — like Golang — as well.

Many folks, from both the gauge community and the core team at Thoughtworks contribute to Gauge. This can be seen by the number of plugins that come along with Gauge — like things for helping with report generations and dependency managements.

LambdaTest – A Free Cross Browser Testing Cloud

LambdaTest is a scalable, cloud-based testing platform designed to help you perform browser compatibility testing across 2000+ browsers and browser versions executing on various OS.

Installing & Setting Up Gauge For Your Operating System

Download the latest build of gauge from GitHub-Gauge. Depending upon the operating system, download the required binaries.

Installing Gauge Framework in Mac:

Installing Gauge framework in macOS using Homebrew with below commands:

  1. brew update
  2. brew install gauge.

Installing Gauge Framework in Linux using apt-get:

  1. Add GPG key with below command: sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-keys 023EDB0B
  2. Add Gauge framework repository to the list. echo deb https://dl.bintray.com/gauge/gauge-deb nightly main | sudo tee -a /etc/apt/sources.list
  3. Install Gauge framework with below commands: sudo apt-get updatesudo apt-get install gauge

Installing Gauge Framework in Windows:

Complete the installation of required packages of programming languages. It works with all languages like JavaScript, C#, Java, Python and Ruby.

Extract it to a desired location and add it to system path.

Using CLI to get started with Project Creation for Gauge

To verify the version of the Gauge framework, open cmd and type command gauge --version as shown in the image below.

Step 1: Gauge framework has a list of project templates defined already for the language of your need. You can take a look at it by typing in command gauge init --templates.

Step 2: Navigate to a folder of your choice and create a java project using command gauge init java.

Step 3: To run the sample project and view report you can use the command gauge run specs.

Up Vote Down Vote 0 Votes
Posted 4 months ago