SlideShare a Scribd company logo
1 of 27
How To Perform Test Automation With
Gauge & Selenium Framework?
What Is Cross Browser Testing?
Cross Browser Testing is the
process to validate the quality of
the web application across
different browsers, browser
versions running on numerous
operating systems to verify
compatibility and behaviour of an
application under test.
Why Choose Gauge For Cross Browser Testing Out Of
Other Test Automation Frameworks?
1. Wide range of templates are available in a language of your choice to have
an easy kick start to the project.
2. Command Line support which makes the integration easier with CI-CD
tools.
3. Test automation with Gauge framework supports all major programming
languages along with GoLang.
Is Gauge Framework Meant For BDD
● Behaviour Driven Development focuses more on conversations, collaborations and
automation in order to achieve the business needs, test automation with Gauge
framework following Acceptance Test Driven Development focuses and emphasize more
on functional testing.
● Feature file in BDD is replaced by spec file for test automation with Gauge framework.
● Feature file is created with Gherkin Language, Spec file is created using markdown
language.
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 & Setting Up Gauge For Your Operating System
Installing Gauge Framework in Linuxusingapt-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 update
○ sudo apt-get install gauge
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.
Using CLI to get started with Project Creation for Gauge
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”.
Using CLI to get started with Project Creation for Gauge
Step 2: Navigate to a folder of your choice and create a java project using
command “gauge init java”.
Using CLI to get started with Project Creation for Gauge
Step 3: To run the sample project and view report you can use the command
“gauge run specs”.
Creating Your First Project Using Gauge For Test Automation
Start with creating a maven project with
below information.
● Navigate to File and select New
Project.
● Project Type as maven should be
selected.
● You need to select the below
mentioned name:
“com.thoughtworks.gauge.maven:gaug
e-maven-plugin”
This would help you to generate an
archetype.
Running First Automation Script Using Gauge
Framework With Selenium Grid
Step 1: Create a specification file for searching a keyword in google and if results are
displayed as expected.
Specification heading in the specs file would be denoted with ‘#’ notation as defined in
our project.
Example: #Google Search Specification
Scenario would be defined using ‘##’ notation, quoting an example below for reference.
Example: ## Searching google should return the name of the query.
Running First Automation Script Using Gauge
Framework With Selenium Grid
Step 2: Create a step implementation file, with below-mentioned code to define
acceptance tests as defined in specification files.
Running First Automation Script Using Gauge
Framework With Selenium Grid
Step 3: Execute the test case from the specification file created. Right click on
the file and select option as shown in the image below. Browser specification
could be provided in env folder’s default.properties file as
#Browser Usage
BROWSER = CHROME
Cross Browser Testing with Parallel Execution using Gauge Framework
Problem Statement:
When it comes to cross browser testing there are more than 6 active browsers usage and
each browser having more than 4 to 5 version of it in use aggressively.
Solution:
1. Local Execution using Selenium-Grid:
You would end up executing 30,000 test cases in total. Manually handling the effort
would be impossible.
2. Cloud Execution using LambdaTest:
Utilizing cloud resources of LambdaTest would drastically cut down the effort as
scalability wouldn’t be an issue.
Configuring Our Current Gauge Framework For Test Automation
With LambdaTest
Step 1: Create an account for free on LambdaTest to start cross browser testing
with parallel execution. For a free account, only 1 concurrent user is available,
as more than 1 VM’s need account upgrade. Feel free to look at their pricing
plans over here:
https://accounts.lambdatest.com/billing/plans
Step 2: Navigate to “Selenium Desiredcapabilities Generator” tool by
LambdaTest at https://www.lambdatest.com/capabilities-generator/ as shown
in image below.
Step 3: Select the required programming language and operating system and browser
configuration as per the requirement, you can enable screenshots and video
recording as well. You have a feature of enabling advance configuration as well, which
lets you define tunnel, console and network logs and time zone selections.
Step 4: Copy the code and define the capabilities for remote webdriver in your Step
Implementation file. Code for the same as specified below.
Specified parameters required while setting desired capabilities required for executing
test remotely.
Step 5: Execute the specification and observe the terminal for test status.
Step 6: Login to LambdaTest Dashboard, select the automation tab to view your logs of
completed tests. Dashboard view would let you see the analytical information related
to the tests triggered on the LambdaTest.
Logs:
Automation logs which are a part of the automation dashboard provides you with
information related to server information, test ID, time stamp of execution in JSON
format.
Metadata
Metadata under automation dashboard provides information related to input, meta and
browser configuration as shown in image below.
You can even download the test logs such as screenshots and video recordings, if opted
from this tab.
Analytics Dashboard
Analytic view of builds ran, time consumed, build related information of test status such
as pass or fail and bugs logged which can be viewed in both build view and test view.
You can even sort the data using date, user information.
Dashboard
Default dashboard view provides you with the overview of how many active concurrent
sessions are running and minutes consumed in execution and the build statuses.
To conclude what we have discussed so far, we have kick started our framework
setup of the Gauge framework from scratch and created our first script and
integrated it with LambdaTest to achieve our cross browser testing and parallel
execution goals. Discussed the features and benefits of the tool, importance and the
need of cross browser and parallel test execution along with execution and analysis
of logs in LambdaTest platform.
www.lambdatest.com
CONCLUSION
SCHEDULE DEMO
HAPPY TESTING!!

More Related Content

What's hot

TestComplete – A Sophisticated Automated Testing Tool by SmartBear
TestComplete – A Sophisticated Automated Testing Tool by SmartBearTestComplete – A Sophisticated Automated Testing Tool by SmartBear
TestComplete – A Sophisticated Automated Testing Tool by SmartBearSoftware Testing Solution
 
Visual Studio ALM 2013 - Edition Comparison
Visual Studio ALM 2013 - Edition ComparisonVisual Studio ALM 2013 - Edition Comparison
Visual Studio ALM 2013 - Edition ComparisonSteve Lange
 
Testing Frameworks
Testing FrameworksTesting Frameworks
Testing FrameworksMoataz Nabil
 
Jenkins as the Test Reporting Framework
Jenkins as the Test Reporting FrameworkJenkins as the Test Reporting Framework
Jenkins as the Test Reporting FrameworkNitin Sharma
 
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...Moataz Nabil
 
Test automation
Test automationTest automation
Test automationXavier Yin
 
Testing in DevOps world
Testing in DevOps worldTesting in DevOps world
Testing in DevOps worldMoataz Nabil
 
Automation Testing Approach for Responsive Web Design
Automation Testing Approach for Responsive Web DesignAutomation Testing Approach for Responsive Web Design
Automation Testing Approach for Responsive Web DesignAgile Testing Alliance
 
Automated Testing with Agile
Automated Testing with AgileAutomated Testing with Agile
Automated Testing with AgileKen McCorkell
 
TFS 2010: Team Development on Crack
TFS 2010: Team Development on CrackTFS 2010: Team Development on Crack
TFS 2010: Team Development on CrackSteve Lange
 
Selenium RC, Selenium WebDriver and HP LoadRunner
Selenium RC, Selenium WebDriver and HP LoadRunnerSelenium RC, Selenium WebDriver and HP LoadRunner
Selenium RC, Selenium WebDriver and HP LoadRunnerMurageppa-QA
 
Continuous Integration as a Way of Life
Continuous Integration as a Way of LifeContinuous Integration as a Way of Life
Continuous Integration as a Way of LifeMelissa Benua
 
Automated Acceptance Tests & Tool choice
Automated Acceptance Tests & Tool choiceAutomated Acceptance Tests & Tool choice
Automated Acceptance Tests & Tool choicetoddbr
 
Cypress test techniques cucumber bdd framework,tdd,api tests course
Cypress test techniques cucumber bdd framework,tdd,api tests courseCypress test techniques cucumber bdd framework,tdd,api tests course
Cypress test techniques cucumber bdd framework,tdd,api tests courseNarayanan Palani
 
Visual Studio LightSwitch (Beta 1) Overview
Visual Studio LightSwitch (Beta 1) OverviewVisual Studio LightSwitch (Beta 1) Overview
Visual Studio LightSwitch (Beta 1) OverviewSteve Lange
 
Sencha Roadshow 2017: Best Practices for Implementing Continuous Web App Testing
Sencha Roadshow 2017: Best Practices for Implementing Continuous Web App TestingSencha Roadshow 2017: Best Practices for Implementing Continuous Web App Testing
Sencha Roadshow 2017: Best Practices for Implementing Continuous Web App TestingSencha
 
Continuous Testing Meets the Classroom at Code.org
Continuous Testing Meets the Classroom at Code.orgContinuous Testing Meets the Classroom at Code.org
Continuous Testing Meets the Classroom at Code.orgSauce Labs
 

What's hot (20)

TestComplete – A Sophisticated Automated Testing Tool by SmartBear
TestComplete – A Sophisticated Automated Testing Tool by SmartBearTestComplete – A Sophisticated Automated Testing Tool by SmartBear
TestComplete – A Sophisticated Automated Testing Tool by SmartBear
 
Visual Studio ALM 2013 - Edition Comparison
Visual Studio ALM 2013 - Edition ComparisonVisual Studio ALM 2013 - Edition Comparison
Visual Studio ALM 2013 - Edition Comparison
 
Testing Frameworks
Testing FrameworksTesting Frameworks
Testing Frameworks
 
Jenkins as the Test Reporting Framework
Jenkins as the Test Reporting FrameworkJenkins as the Test Reporting Framework
Jenkins as the Test Reporting Framework
 
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...
 
Test automation
Test automationTest automation
Test automation
 
Test automation process
Test automation processTest automation process
Test automation process
 
Test Complete
Test CompleteTest Complete
Test Complete
 
Testing in DevOps world
Testing in DevOps worldTesting in DevOps world
Testing in DevOps world
 
Automation Testing Approach for Responsive Web Design
Automation Testing Approach for Responsive Web DesignAutomation Testing Approach for Responsive Web Design
Automation Testing Approach for Responsive Web Design
 
ASP.NET & Unit Testing
ASP.NET & Unit TestingASP.NET & Unit Testing
ASP.NET & Unit Testing
 
Automated Testing with Agile
Automated Testing with AgileAutomated Testing with Agile
Automated Testing with Agile
 
TFS 2010: Team Development on Crack
TFS 2010: Team Development on CrackTFS 2010: Team Development on Crack
TFS 2010: Team Development on Crack
 
Selenium RC, Selenium WebDriver and HP LoadRunner
Selenium RC, Selenium WebDriver and HP LoadRunnerSelenium RC, Selenium WebDriver and HP LoadRunner
Selenium RC, Selenium WebDriver and HP LoadRunner
 
Continuous Integration as a Way of Life
Continuous Integration as a Way of LifeContinuous Integration as a Way of Life
Continuous Integration as a Way of Life
 
Automated Acceptance Tests & Tool choice
Automated Acceptance Tests & Tool choiceAutomated Acceptance Tests & Tool choice
Automated Acceptance Tests & Tool choice
 
Cypress test techniques cucumber bdd framework,tdd,api tests course
Cypress test techniques cucumber bdd framework,tdd,api tests courseCypress test techniques cucumber bdd framework,tdd,api tests course
Cypress test techniques cucumber bdd framework,tdd,api tests course
 
Visual Studio LightSwitch (Beta 1) Overview
Visual Studio LightSwitch (Beta 1) OverviewVisual Studio LightSwitch (Beta 1) Overview
Visual Studio LightSwitch (Beta 1) Overview
 
Sencha Roadshow 2017: Best Practices for Implementing Continuous Web App Testing
Sencha Roadshow 2017: Best Practices for Implementing Continuous Web App TestingSencha Roadshow 2017: Best Practices for Implementing Continuous Web App Testing
Sencha Roadshow 2017: Best Practices for Implementing Continuous Web App Testing
 
Continuous Testing Meets the Classroom at Code.org
Continuous Testing Meets the Classroom at Code.orgContinuous Testing Meets the Classroom at Code.org
Continuous Testing Meets the Classroom at Code.org
 

Similar to How to Perform Test Automation With Gauge & Selenium Framework

Using galen framework for automated cross browser layout testing
Using galen framework for automated cross browser layout testingUsing galen framework for automated cross browser layout testing
Using galen framework for automated cross browser layout testingSarah Elson
 
automation framework
automation frameworkautomation framework
automation frameworkANSHU GOYAL
 
JMeter JMX Script Creation via BlazeMeter
JMeter JMX Script Creation via BlazeMeterJMeter JMX Script Creation via BlazeMeter
JMeter JMX Script Creation via BlazeMeterRapidValue
 
Automation test framework with cucumber – BDD
Automation test framework with cucumber – BDDAutomation test framework with cucumber – BDD
Automation test framework with cucumber – BDD123abcda
 
Execute Automation Testing in 3 Steps
Execute Automation Testing in 3 StepsExecute Automation Testing in 3 Steps
Execute Automation Testing in 3 StepsExecuteAutomation
 
HKG15-411: Browser Testing Framework for LHG
HKG15-411: Browser Testing Framework for LHGHKG15-411: Browser Testing Framework for LHG
HKG15-411: Browser Testing Framework for LHGLinaro
 
Continuous Integration using Cruise Control
Continuous Integration using Cruise ControlContinuous Integration using Cruise Control
Continuous Integration using Cruise Controlelliando dias
 
Dive into Angular, part 5: Experience
Dive into Angular, part 5: ExperienceDive into Angular, part 5: Experience
Dive into Angular, part 5: ExperienceOleksii Prohonnyi
 
New features in qtp11
New features in qtp11New features in qtp11
New features in qtp11Ramu Palanki
 
Qtp 11 new enhacements in
Qtp 11 new enhacements inQtp 11 new enhacements in
Qtp 11 new enhacements inRamu Palanki
 
Automated Acceptance Testing Example
Automated Acceptance Testing ExampleAutomated Acceptance Testing Example
Automated Acceptance Testing ExampleHani Massoud
 
Qtp 9.2 examples
Qtp 9.2 examplesQtp 9.2 examples
Qtp 9.2 examplesmedsherb
 
Selenium and JMeter Testing
Selenium and JMeter TestingSelenium and JMeter Testing
Selenium and JMeter TestingArchanaKalapgar
 
Getting started with test complete 7
Getting started with test complete 7Getting started with test complete 7
Getting started with test complete 7Hoamuoigio Hoa
 

Similar to How to Perform Test Automation With Gauge & Selenium Framework (20)

jDriver Presentation
jDriver PresentationjDriver Presentation
jDriver Presentation
 
Using galen framework for automated cross browser layout testing
Using galen framework for automated cross browser layout testingUsing galen framework for automated cross browser layout testing
Using galen framework for automated cross browser layout testing
 
automation framework
automation frameworkautomation framework
automation framework
 
Selenium.pptx
Selenium.pptxSelenium.pptx
Selenium.pptx
 
JMeter JMX Script Creation via BlazeMeter
JMeter JMX Script Creation via BlazeMeterJMeter JMX Script Creation via BlazeMeter
JMeter JMX Script Creation via BlazeMeter
 
Automation test framework with cucumber – BDD
Automation test framework with cucumber – BDDAutomation test framework with cucumber – BDD
Automation test framework with cucumber – BDD
 
Execute Automation Testing in 3 Steps
Execute Automation Testing in 3 StepsExecute Automation Testing in 3 Steps
Execute Automation Testing in 3 Steps
 
Test automation
Test automationTest automation
Test automation
 
HKG15-411: Browser Testing Framework for LHG
HKG15-411: Browser Testing Framework for LHGHKG15-411: Browser Testing Framework for LHG
HKG15-411: Browser Testing Framework for LHG
 
Continuous Integration using Cruise Control
Continuous Integration using Cruise ControlContinuous Integration using Cruise Control
Continuous Integration using Cruise Control
 
Load Runner
Load RunnerLoad Runner
Load Runner
 
Dive into Angular, part 5: Experience
Dive into Angular, part 5: ExperienceDive into Angular, part 5: Experience
Dive into Angular, part 5: Experience
 
Installation of Silk Test Framework
Installation of Silk Test FrameworkInstallation of Silk Test Framework
Installation of Silk Test Framework
 
New features in qtp11
New features in qtp11New features in qtp11
New features in qtp11
 
Qtp 11 new enhacements in
Qtp 11 new enhacements inQtp 11 new enhacements in
Qtp 11 new enhacements in
 
Automated Acceptance Testing Example
Automated Acceptance Testing ExampleAutomated Acceptance Testing Example
Automated Acceptance Testing Example
 
Qtp 9.2 examples
Qtp 9.2 examplesQtp 9.2 examples
Qtp 9.2 examples
 
Selenium and JMeter Testing
Selenium and JMeter TestingSelenium and JMeter Testing
Selenium and JMeter Testing
 
Selenium and JMeter
Selenium and JMeterSelenium and JMeter
Selenium and JMeter
 
Getting started with test complete 7
Getting started with test complete 7Getting started with test complete 7
Getting started with test complete 7
 

More from Sarah Elson

Top 5 Software Testing Myths in The Industry
Top 5 Software Testing Myths in The IndustryTop 5 Software Testing Myths in The Industry
Top 5 Software Testing Myths in The IndustrySarah Elson
 
Why You Need to Care About Automated Functional Testing in 2019
Why You Need to Care About Automated Functional Testing in 2019Why You Need to Care About Automated Functional Testing in 2019
Why You Need to Care About Automated Functional Testing in 2019Sarah Elson
 
Top Java Script Frameworks for 2019
Top Java Script Frameworks for 2019Top Java Script Frameworks for 2019
Top Java Script Frameworks for 2019Sarah Elson
 
Cross Browser Automation Testing Using Watir
Cross Browser Automation Testing Using WatirCross Browser Automation Testing Using Watir
Cross Browser Automation Testing Using WatirSarah Elson
 
How to Implement Continuous Testing in Dev Ops Like a Pro
How to Implement Continuous Testing in Dev Ops Like a Pro How to Implement Continuous Testing in Dev Ops Like a Pro
How to Implement Continuous Testing in Dev Ops Like a Pro Sarah Elson
 
CSS With Feature Detection for Cross Browser Compatibility
CSS With Feature Detection for Cross Browser CompatibilityCSS With Feature Detection for Cross Browser Compatibility
CSS With Feature Detection for Cross Browser CompatibilitySarah Elson
 
Skyrocket Your Cross Browser Testing with Minimal Effort
Skyrocket Your Cross Browser Testing with Minimal EffortSkyrocket Your Cross Browser Testing with Minimal Effort
Skyrocket Your Cross Browser Testing with Minimal EffortSarah Elson
 
Selenium Web Driver Tutorial for Cross Browser Testing
Selenium Web Driver Tutorial for Cross Browser TestingSelenium Web Driver Tutorial for Cross Browser Testing
Selenium Web Driver Tutorial for Cross Browser TestingSarah Elson
 
17 Ways to Save Time on Manual Cross Browser Testing
17 Ways to Save Time on Manual Cross Browser Testing17 Ways to Save Time on Manual Cross Browser Testing
17 Ways to Save Time on Manual Cross Browser TestingSarah Elson
 
What is Continuous Integration and Continuous Delivery
What is Continuous Integration and Continuous Delivery What is Continuous Integration and Continuous Delivery
What is Continuous Integration and Continuous Delivery Sarah Elson
 
Overcoming The Challenges Faced in Exploratory Testing
Overcoming The Challenges Faced in Exploratory TestingOvercoming The Challenges Faced in Exploratory Testing
Overcoming The Challenges Faced in Exploratory TestingSarah Elson
 
Guide to Browser Compatibility for Online Learning Platforms
Guide to Browser Compatibility for Online Learning PlatformsGuide to Browser Compatibility for Online Learning Platforms
Guide to Browser Compatibility for Online Learning PlatformsSarah Elson
 
What is the Need for Software Testing?
What is the Need for Software Testing?What is the Need for Software Testing?
What is the Need for Software Testing?Sarah Elson
 
Top 15 Interview Questions for Manual Testers
Top 15 Interview Questions for Manual TestersTop 15 Interview Questions for Manual Testers
Top 15 Interview Questions for Manual TestersSarah Elson
 
Design Patterns for Micro Service Architecture
Design Patterns for Micro Service ArchitectureDesign Patterns for Micro Service Architecture
Design Patterns for Micro Service ArchitectureSarah Elson
 
Top 13 Mistakes Committed by Angular Java script Developers
Top 13 Mistakes Committed by Angular Java script DevelopersTop 13 Mistakes Committed by Angular Java script Developers
Top 13 Mistakes Committed by Angular Java script DevelopersSarah Elson
 
Importance of a Test Management Tool for Your Project
Importance of a Test Management Tool for Your ProjectImportance of a Test Management Tool for Your Project
Importance of a Test Management Tool for Your ProjectSarah Elson
 
Easy Cross Browser Testing with LambdaTest Screenshots Chrome Extension
Easy Cross Browser Testing with LambdaTest Screenshots Chrome ExtensionEasy Cross Browser Testing with LambdaTest Screenshots Chrome Extension
Easy Cross Browser Testing with LambdaTest Screenshots Chrome ExtensionSarah Elson
 
LambdaTest + GitHub = Seamless Software Testing Experience 🚀😍
LambdaTest + GitHub = Seamless Software Testing Experience 🚀😍LambdaTest + GitHub = Seamless Software Testing Experience 🚀😍
LambdaTest + GitHub = Seamless Software Testing Experience 🚀😍Sarah Elson
 

More from Sarah Elson (19)

Top 5 Software Testing Myths in The Industry
Top 5 Software Testing Myths in The IndustryTop 5 Software Testing Myths in The Industry
Top 5 Software Testing Myths in The Industry
 
Why You Need to Care About Automated Functional Testing in 2019
Why You Need to Care About Automated Functional Testing in 2019Why You Need to Care About Automated Functional Testing in 2019
Why You Need to Care About Automated Functional Testing in 2019
 
Top Java Script Frameworks for 2019
Top Java Script Frameworks for 2019Top Java Script Frameworks for 2019
Top Java Script Frameworks for 2019
 
Cross Browser Automation Testing Using Watir
Cross Browser Automation Testing Using WatirCross Browser Automation Testing Using Watir
Cross Browser Automation Testing Using Watir
 
How to Implement Continuous Testing in Dev Ops Like a Pro
How to Implement Continuous Testing in Dev Ops Like a Pro How to Implement Continuous Testing in Dev Ops Like a Pro
How to Implement Continuous Testing in Dev Ops Like a Pro
 
CSS With Feature Detection for Cross Browser Compatibility
CSS With Feature Detection for Cross Browser CompatibilityCSS With Feature Detection for Cross Browser Compatibility
CSS With Feature Detection for Cross Browser Compatibility
 
Skyrocket Your Cross Browser Testing with Minimal Effort
Skyrocket Your Cross Browser Testing with Minimal EffortSkyrocket Your Cross Browser Testing with Minimal Effort
Skyrocket Your Cross Browser Testing with Minimal Effort
 
Selenium Web Driver Tutorial for Cross Browser Testing
Selenium Web Driver Tutorial for Cross Browser TestingSelenium Web Driver Tutorial for Cross Browser Testing
Selenium Web Driver Tutorial for Cross Browser Testing
 
17 Ways to Save Time on Manual Cross Browser Testing
17 Ways to Save Time on Manual Cross Browser Testing17 Ways to Save Time on Manual Cross Browser Testing
17 Ways to Save Time on Manual Cross Browser Testing
 
What is Continuous Integration and Continuous Delivery
What is Continuous Integration and Continuous Delivery What is Continuous Integration and Continuous Delivery
What is Continuous Integration and Continuous Delivery
 
Overcoming The Challenges Faced in Exploratory Testing
Overcoming The Challenges Faced in Exploratory TestingOvercoming The Challenges Faced in Exploratory Testing
Overcoming The Challenges Faced in Exploratory Testing
 
Guide to Browser Compatibility for Online Learning Platforms
Guide to Browser Compatibility for Online Learning PlatformsGuide to Browser Compatibility for Online Learning Platforms
Guide to Browser Compatibility for Online Learning Platforms
 
What is the Need for Software Testing?
What is the Need for Software Testing?What is the Need for Software Testing?
What is the Need for Software Testing?
 
Top 15 Interview Questions for Manual Testers
Top 15 Interview Questions for Manual TestersTop 15 Interview Questions for Manual Testers
Top 15 Interview Questions for Manual Testers
 
Design Patterns for Micro Service Architecture
Design Patterns for Micro Service ArchitectureDesign Patterns for Micro Service Architecture
Design Patterns for Micro Service Architecture
 
Top 13 Mistakes Committed by Angular Java script Developers
Top 13 Mistakes Committed by Angular Java script DevelopersTop 13 Mistakes Committed by Angular Java script Developers
Top 13 Mistakes Committed by Angular Java script Developers
 
Importance of a Test Management Tool for Your Project
Importance of a Test Management Tool for Your ProjectImportance of a Test Management Tool for Your Project
Importance of a Test Management Tool for Your Project
 
Easy Cross Browser Testing with LambdaTest Screenshots Chrome Extension
Easy Cross Browser Testing with LambdaTest Screenshots Chrome ExtensionEasy Cross Browser Testing with LambdaTest Screenshots Chrome Extension
Easy Cross Browser Testing with LambdaTest Screenshots Chrome Extension
 
LambdaTest + GitHub = Seamless Software Testing Experience 🚀😍
LambdaTest + GitHub = Seamless Software Testing Experience 🚀😍LambdaTest + GitHub = Seamless Software Testing Experience 🚀😍
LambdaTest + GitHub = Seamless Software Testing Experience 🚀😍
 

Recently uploaded

10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024Mind IT Systems
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...Shane Coughlan
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...Nitya salvi
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastPapp Krisztián
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionOnePlan Solutions
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...masabamasaba
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfkalichargn70th171
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...masabamasaba
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfayushiqss
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...masabamasaba
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdfPearlKirahMaeRagusta1
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnAmarnathKambale
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyviewmasabamasaba
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 

Recently uploaded (20)

10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 

How to Perform Test Automation With Gauge & Selenium Framework

  • 1. How To Perform Test Automation With Gauge & Selenium Framework?
  • 2. What Is Cross Browser Testing? Cross Browser Testing is the process to validate the quality of the web application across different browsers, browser versions running on numerous operating systems to verify compatibility and behaviour of an application under test.
  • 3. Why Choose Gauge For Cross Browser Testing Out Of Other Test Automation Frameworks? 1. Wide range of templates are available in a language of your choice to have an easy kick start to the project. 2. Command Line support which makes the integration easier with CI-CD tools. 3. Test automation with Gauge framework supports all major programming languages along with GoLang.
  • 4. Is Gauge Framework Meant For BDD ● Behaviour Driven Development focuses more on conversations, collaborations and automation in order to achieve the business needs, test automation with Gauge framework following Acceptance Test Driven Development focuses and emphasize more on functional testing. ● Feature file in BDD is replaced by spec file for test automation with Gauge framework. ● Feature file is created with Gherkin Language, Spec file is created using markdown language.
  • 5. 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.
  • 6. Installing & Setting Up Gauge For Your Operating System Installing Gauge Framework in Linuxusingapt-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 update ○ sudo apt-get install gauge
  • 7. 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.
  • 8. Using CLI to get started with Project Creation for Gauge 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”.
  • 9. Using CLI to get started with Project Creation for Gauge Step 2: Navigate to a folder of your choice and create a java project using command “gauge init java”.
  • 10. Using CLI to get started with Project Creation for Gauge Step 3: To run the sample project and view report you can use the command “gauge run specs”.
  • 11. Creating Your First Project Using Gauge For Test Automation Start with creating a maven project with below information. ● Navigate to File and select New Project. ● Project Type as maven should be selected. ● You need to select the below mentioned name: “com.thoughtworks.gauge.maven:gaug e-maven-plugin” This would help you to generate an archetype.
  • 12. Running First Automation Script Using Gauge Framework With Selenium Grid Step 1: Create a specification file for searching a keyword in google and if results are displayed as expected. Specification heading in the specs file would be denoted with ‘#’ notation as defined in our project. Example: #Google Search Specification Scenario would be defined using ‘##’ notation, quoting an example below for reference. Example: ## Searching google should return the name of the query.
  • 13. Running First Automation Script Using Gauge Framework With Selenium Grid Step 2: Create a step implementation file, with below-mentioned code to define acceptance tests as defined in specification files.
  • 14. Running First Automation Script Using Gauge Framework With Selenium Grid Step 3: Execute the test case from the specification file created. Right click on the file and select option as shown in the image below. Browser specification could be provided in env folder’s default.properties file as #Browser Usage BROWSER = CHROME
  • 15. Cross Browser Testing with Parallel Execution using Gauge Framework Problem Statement: When it comes to cross browser testing there are more than 6 active browsers usage and each browser having more than 4 to 5 version of it in use aggressively. Solution: 1. Local Execution using Selenium-Grid: You would end up executing 30,000 test cases in total. Manually handling the effort would be impossible. 2. Cloud Execution using LambdaTest: Utilizing cloud resources of LambdaTest would drastically cut down the effort as scalability wouldn’t be an issue.
  • 16. Configuring Our Current Gauge Framework For Test Automation With LambdaTest Step 1: Create an account for free on LambdaTest to start cross browser testing with parallel execution. For a free account, only 1 concurrent user is available, as more than 1 VM’s need account upgrade. Feel free to look at their pricing plans over here: https://accounts.lambdatest.com/billing/plans
  • 17. Step 2: Navigate to “Selenium Desiredcapabilities Generator” tool by LambdaTest at https://www.lambdatest.com/capabilities-generator/ as shown in image below.
  • 18. Step 3: Select the required programming language and operating system and browser configuration as per the requirement, you can enable screenshots and video recording as well. You have a feature of enabling advance configuration as well, which lets you define tunnel, console and network logs and time zone selections.
  • 19. Step 4: Copy the code and define the capabilities for remote webdriver in your Step Implementation file. Code for the same as specified below.
  • 20. Specified parameters required while setting desired capabilities required for executing test remotely.
  • 21. Step 5: Execute the specification and observe the terminal for test status. Step 6: Login to LambdaTest Dashboard, select the automation tab to view your logs of completed tests. Dashboard view would let you see the analytical information related to the tests triggered on the LambdaTest.
  • 22. Logs: Automation logs which are a part of the automation dashboard provides you with information related to server information, test ID, time stamp of execution in JSON format.
  • 23. Metadata Metadata under automation dashboard provides information related to input, meta and browser configuration as shown in image below. You can even download the test logs such as screenshots and video recordings, if opted from this tab.
  • 24. Analytics Dashboard Analytic view of builds ran, time consumed, build related information of test status such as pass or fail and bugs logged which can be viewed in both build view and test view. You can even sort the data using date, user information.
  • 25. Dashboard Default dashboard view provides you with the overview of how many active concurrent sessions are running and minutes consumed in execution and the build statuses.
  • 26. To conclude what we have discussed so far, we have kick started our framework setup of the Gauge framework from scratch and created our first script and integrated it with LambdaTest to achieve our cross browser testing and parallel execution goals. Discussed the features and benefits of the tool, importance and the need of cross browser and parallel test execution along with execution and analysis of logs in LambdaTest platform. www.lambdatest.com CONCLUSION SCHEDULE DEMO