SlideShare a Scribd company logo
1@shwetasharma84
Advanced Automated
Visual Regression
Testing
— Shweta Sharma
2@shwetasharma84
@shwetasharma84
@shwetaneelsharma
@shwetaneelsharma
@shweta_ns
Connect with me
Shweta Sharma
Director of QA Services
India, Pune
3@shwetasharma84
Fully-distributed, 6 Time Zones
10 Years Of Growth
120+ Enthusiastic, Kind,
Open Professionals
100+ Enterprise Engagements
Qualitative Drupal
Contributor
Axelerant from above
4@shwetasharma84
01
What is Automated Visual
testing?
02 How does it work?
03
Level - 1 (Objectives, Tools,
demo, challenges-resolutions)
04
Level - 2 (Objectives, Tools,
demo, challenges-resolutions)
05
Level - 3 (Objectives, Tools,
demo, challenges-resolutions)
Agenda
06 Comparison between tools
07 Testing Strategy
08 Good practices
09 Key results achieved
10 Facts
11 Where to go from here?
12 References
5@shwetasharma84
What is
Automated
Visual testing?
Validate the following:
● Visual content
● Page layout
● Responsive design of Web App
6@shwetasharma84
How does it work?
Test Runner
Capture screenshots at run time
Test passes
Update baselineBug
Compare
Capture baseline images
First run
Subsequent runs
unintended intended
Fails and report differences
7@shwetasharma84
● Site development in
progress/maintenance
● Optimise testing efforts
as an individual
● Resolve challenges
faced at individual level
LEVEL 1 -
Beginner
8@shwetasharma84
BackstopJS - viewports and scenario defined (element)
9@shwetasharma84
BackstopJS - viewports and scenario defined (full page)
10@shwetasharma84
BackstopJS Demo - Create reference images
11@shwetasharma84
Reference files
12@shwetasharma84
BackstopJS Demo - Execute Tests
13@shwetasharma84
Challenge 1 - Dynamic content
14@shwetasharma84
Demo
Dynamic
Content
Using
BackstopJS
15@shwetasharma84
How few
tools
handle
some
challenges
16@shwetasharma84
How few tools handle some challenges
17@shwetasharma84
New
reference
image using
hide
strategy
18@shwetasharma84
New reference image using hide strategy
19@shwetasharma84
Demo
resolution
for dynamic
content
using
BackstopJS
20@shwetasharma84
GET STARTED - TOOLS AVAILABLE
Open-source BackstopJS, Wraith, Spectre
Commercial Applitools SIDE (Selenium IDE) extension, Percy, Diffy
21@shwetasharma84
LEVEL 2 - OBJECTIVES and CHALLENGES
OBJECTIVES CHALLENGES
Involve more than 1 individual so that
more people benefit from automation
Baseline images created from one
machine fail on others due to anti-aliasing
Simulating user actions like filling up
forms, clicking, hovering etc.
Seamless integration with existing testing
frameworks
Optimise testing efforts for a small
development/testing team
Harmonious integration with your CI setup
22@shwetasharma84
Resolution for Level 2 challenges
● Anti-aliasing
○ Use of Docker so that the environment is the same every time
○ Run visual tests on cloud
■ BrowserStack
■ SauceLabs
■ AWS Device Farms
■ Cross Browser testing
■ Select a tool which handles it implicitly
● Integration with existing testing frameworks
○ Open source and commercial tools available
● Integration with the CI setup
○ Commercial tools available
23@shwetasharma84
TOOLS AVAILABLE
Open-source Several visual testing plugins by Cypress
Commercial Applitools, Percy
24@shwetasharma84
Page to be tested
25@shwetasharma84
Cypress & Percy - The actual test
26@shwetasharma84
Cypress + Percy - Create baseline images
27@shwetasharma84
Cypress + Percy - Approve baseline images
28@shwetasharma84
Cypress + Percy - Bug introduced in feature branch
29@shwetasharma84
LEVEL 3 - OBJECTIVES and CHALLENGES
CHALLENGES CAUSE OBJECTIVES
Running into false positives ● Small vertical/horizontal
shifts
● Browser updates
Avoid pixel-to-pixel matching
Increased time test on several
browsers & devices
Execution happens on all
configured browsers/devices
Better Test coverage for visual
tests at a faster pace
Frequently/Major change in
elements
Change requests Better baseline management
Scattered tests, poor readability Inability to group Better Test Suite management
30@shwetasharma84
TOOLS AVAILABLE
Open-source None
Commercial Applitools, Percy (to some extent)
31@shwetasharma84
FALSE POSITIVES - Resolution
PERCY APPLITOOLS
It ignores 1px difference It uses AI-based comparison
algorithm
32@shwetasharma84
BROWSERS/DEVICES & SCATTERED TESTS - Resolution
● APPLITOOLS
○ Supports all browsers &
devices
○ Executes once and
captures everywhere in
background in parallel
○ Create relevant Batches
and group tests
● PERCY
○ Supports only Chrome &
FF
○ Supports only viewports
33@shwetasharma84
Comparison between tools (Must have)
PARAMETER PERCY APPLITOOLS
Pixel-to-pixel matching ✅ ✅
AI-based matching ❌ ✅
Browsers Chrome and Firefox All
Devices Only Viewports All
Dynamic content
handling
✅ ✅
Baseline management ❌ ✅
Team management ✅ ✅
34@shwetasharma84
Comparison between tools (Need basis)
PARAMETER PERCY APPLITOOLS
Root cause analysis ❌ ✅
Integration tools Source control, build
servers, collaboration
Source control, build
servers, collaboration
SDK support Good Excellent
On-premise support ❌ ✅
Collaborative
dashboard
❌ ✅
Desktop, mobile app
support
❌ ✅
35@shwetasharma84
Now what?
36@shwetasharma84
Testing Strategy
● Capturing screenshots
○ Element level
■ Component based libraries
● Storybook
● Pattern Lab
■ Development in progress
● Group the components logically (For e.g. Header, Footer etc.)
○ Full page
■ Comparing two similar environments
■ Entire page is developed
37@shwetasharma84
Testing Strategy contd...
● Plan the level of visual coverage needed
○ Both for browsers and devices
■ Every project is different as our customers are different
■ Identify patterns from previously learned lessons
○ Application wide
■ Don’t capture all pages
■ Identify appropriate samples
38@shwetasharma84
Good practices to follow
● Organize Test Suites
○ Browser wise
○ Feature wise
○ Device wise
● Speed up test execution by running tests in parallel
● Identify the frequency to run visual tests
39@shwetasharma84
Organizing tests as per browser
40@shwetasharma84
Creating suites
41@shwetasharma84
Key results achieved at Axelerant
● Test data
○ Time saved to handle dynamic content scenarios because of data consistency
○ Minimal efforts for Visual tests
● Seamless integration of Automation tools involved
● Visual tests validated for the site which is a replica of the wireframe
● Less number of assertions required for the Acceptance test Automation suite
42@shwetasharma84
Facts
● Efforts needed to maintain baseline images
● Respect the Test Pyramid
○ Include Unit tests, Service tests, Acceptance tests and Visual tests
● Best practices in Automating Visual tests:
○ Ensure full page validation
○ Do not have too many element specific tests
■ Avoid element locators maintenance
○ General rules for automating Acceptance tests apply here too:
■ Pick up the right candidates for Automation
■ Logical division of tests
■ Usage of Seams
● Do not expect overnight success
43@shwetasharma84
Where to go from here?
● No coding knowledge?
○ Use configuration based tools like BackstopJS, Wraith, Applitools SIDE browser
extension
○ Pair up with developers, SDETs to have the structure ready
● Good with coding?
○ Look for harmonious integration with your automated functional suite
■ Reduce the unnecessary functional assertions
● Maintainable suite
● Better execution time
○ Be brave and bring the tests in your CI pipeline
■ Let the whole team benefit
44@shwetasharma84
References
● BackstopJS
● WebdriverIO - Visual Regression
Service
● Applitools for Selenium IDE Tutorial
● Visual Regression Testing Using Wraith
● Run Selenium tests with WebDriverIO
● Cypress visual testing plugins
● Diffy
● Spectre
● Applitools Eyes
● Applitools Ultrafast Test Cloud
● Percy - Getting started
45@shwetasharma84
Q & A
@shwetasharma84
@shwetaneelsharma
@shwetaneelsharma
@shweta_ns

More Related Content

PDF
Advanced automated visual testing - DrupalCon seattle 2019
PPTX
How To Transform the Manual Testing Process to Incorporate Test Automation
PDF
Tutorial ranorex
PPTX
Application Lifecycle Management - It's a team sport
PDF
Virtual Dreamin Salesforce DevOps Top 10
PPTX
Agile Test Automation
PPTX
Best Practices for a Repeatable Shift-Left Commitment
PPTX
SpiraTest: Designing and Creating Test Script
Advanced automated visual testing - DrupalCon seattle 2019
How To Transform the Manual Testing Process to Incorporate Test Automation
Tutorial ranorex
Application Lifecycle Management - It's a team sport
Virtual Dreamin Salesforce DevOps Top 10
Agile Test Automation
Best Practices for a Repeatable Shift-Left Commitment
SpiraTest: Designing and Creating Test Script

What's hot (20)

PPTX
ATAGTR2017 Unified APM: The new age performance monitoring for production sys...
PDF
Why Ranorex
PPTX
ISTQB ADVANCED LEVEL – INGENIERO DE AUTOMATIZACIÓN DE PRUEBA
PDF
Automated vs manual testing
PDF
Testing Design System Changes Across Your Application -- Intuit Use Case -- w...
PPTX
ATAGTR2017 Keeping pace with Product Evolution: UI Automation Framework Guide...
PDF
Vladimir Lozanov How to deliver high quality apps to the app store
PDF
Visual AI Testing Using Applitools
PPT
Test Automation In The Hands of "The Business"
PPTX
Qa workshop
PPTX
How Manual Testers Can Break into Automation Without Programming Skills
PPTX
The Three Pillars Approach to Your Agile Test Strategy
PPTX
#TesterbhiCoder - Every Tester should get into coding - Selenium automation
PDF
Managers, Future Proof Your Automation
PPTX
Swiss Army Knife for Automation Testing
PDF
Agile testing - Principles and best practices
PDF
Suchindra samavedam visualcv_resume
PDF
Katalon: Mobile and Browser-Based Automation | Quality Jam 2018
PDF
Agile Testing 2020
PPTX
Exploratory Testing - concept and ideas for SpiraTest
ATAGTR2017 Unified APM: The new age performance monitoring for production sys...
Why Ranorex
ISTQB ADVANCED LEVEL – INGENIERO DE AUTOMATIZACIÓN DE PRUEBA
Automated vs manual testing
Testing Design System Changes Across Your Application -- Intuit Use Case -- w...
ATAGTR2017 Keeping pace with Product Evolution: UI Automation Framework Guide...
Vladimir Lozanov How to deliver high quality apps to the app store
Visual AI Testing Using Applitools
Test Automation In The Hands of "The Business"
Qa workshop
How Manual Testers Can Break into Automation Without Programming Skills
The Three Pillars Approach to Your Agile Test Strategy
#TesterbhiCoder - Every Tester should get into coding - Selenium automation
Managers, Future Proof Your Automation
Swiss Army Knife for Automation Testing
Agile testing - Principles and best practices
Suchindra samavedam visualcv_resume
Katalon: Mobile and Browser-Based Automation | Quality Jam 2018
Agile Testing 2020
Exploratory Testing - concept and ideas for SpiraTest
Ad

Similar to Advanced automated visual testing at DrupalCon Europe 2020 (20)

PDF
Advanced automated visual testing at selenium conf india 2020
PDF
Advanced automated visual testing - DrupalCon Global 2020
PPTX
SeConf2015: Advanced Automated Visual Testing With Selenium
PPTX
Advanced Automated Visual Testing
PDF
Web application automated testing types and tools
PPTX
Advanced automated visual testing with Selenium
PPTX
Testing Single Page Webapp
PPTX
Advanced Visual Test Automation with Selenium
PPTX
Solving the Automation Puzzle - how to select the right automation framework ...
PDF
Conquer 6 Testing Challenges_Applitools.pdf
PPTX
Colorful world-of-visual-automation-testing-latest
PPTX
The Holy Trinity of UI Testing by Diego Molina
PPTX
The Right Tool for the Right Project
PDF
Modern Functional Test Automation Through Visual AI - webinar w/ Raja Rao
PDF
Wrong Tool, Wrong Time: Re-Thinking Test Automation -- w/ State of Visual Tes...
PPTX
7 automated visual testing tools for you
PDF
Lean Quality & Engineering
PDF
Leveraging Visual Testing with Your Functional Tests
PDF
Visual Regression Testing at the Speed of Unit Testing -- by Gil Tayar
PDF
Code and No-Code Journeys: The Coverage Overlook
Advanced automated visual testing at selenium conf india 2020
Advanced automated visual testing - DrupalCon Global 2020
SeConf2015: Advanced Automated Visual Testing With Selenium
Advanced Automated Visual Testing
Web application automated testing types and tools
Advanced automated visual testing with Selenium
Testing Single Page Webapp
Advanced Visual Test Automation with Selenium
Solving the Automation Puzzle - how to select the right automation framework ...
Conquer 6 Testing Challenges_Applitools.pdf
Colorful world-of-visual-automation-testing-latest
The Holy Trinity of UI Testing by Diego Molina
The Right Tool for the Right Project
Modern Functional Test Automation Through Visual AI - webinar w/ Raja Rao
Wrong Tool, Wrong Time: Re-Thinking Test Automation -- w/ State of Visual Tes...
7 automated visual testing tools for you
Lean Quality & Engineering
Leveraging Visual Testing with Your Functional Tests
Visual Regression Testing at the Speed of Unit Testing -- by Gil Tayar
Code and No-Code Journeys: The Coverage Overlook
Ad

Recently uploaded (20)

PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
Welding lecture in detail for understanding
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
additive manufacturing of ss316l using mig welding
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
PPT on Performance Review to get promotions
PPT
Mechanical Engineering MATERIALS Selection
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Welding lecture in detail for understanding
Operating System & Kernel Study Guide-1 - converted.pdf
additive manufacturing of ss316l using mig welding
CYBER-CRIMES AND SECURITY A guide to understanding
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Embodied AI: Ushering in the Next Era of Intelligent Systems
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Foundation to blockchain - A guide to Blockchain Tech
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
CH1 Production IntroductoryConcepts.pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPT on Performance Review to get promotions
Mechanical Engineering MATERIALS Selection
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT

Advanced automated visual testing at DrupalCon Europe 2020