SlideShare ist ein Scribd-Unternehmen logo
1 von 32
October, 2020
Sauce Visual
What Functional Tests Overlook,
See It with Visual Testing
Larry Ho
Product Marketing
CONFIDENTIAL
THE CUSTOMER EXPERIENCE
IS NOW COMPLETELY DIGITAL
October, 2020
Not Just Having a Digital Experience
3
To Excel, You Must Deliver Digital Confidence
You are creating and delivering the best possible user experience for
your customers.
Your web applications look, function, and perform exactly as intended before
your users ever interact with them.
Your customers have no doubt that your web applications will work flawlessly every
single time they use them.
Digital confidence means knowing:
Source: Adopt Agile and DevOps to Drive Digital Business Success, Jan. 2020
October, 2020
To create a world of digital confidence.
SAUCE LABS VISION STATEMENT
Enterprise Security & Support
5
Sauce Labs Continuous Testing Cloud
Your Secret Sauce to Ensuring Digital Confidence
Headless
Browsers
Desktop
Browsers & OSs
Mobile Emulators
and Simulators
Scalable, Always On & Available from Anywhere Test Infrastructure
Real Devices
Analytics Debugging
Videos &
Screenshots
Productivity Tools to Find & Fix Failures Fast
Live Testing
Functional Performance Visual
Visibility into the 360° User Experience
API
October, 2020
Visual Testing
CONFIDENTIAL
Digital Confidence with Visual
7
Digital confidence means knowing your web
applications look, function, and perform
exactly as intended.
Visual testing is how you ensure your app
appears to the user as you intended.
CONFIDENTIAL
Spot the Difference
https://en.wikipedia.org/wiki/Spot_the_difference
CONFIDENTIAL
Spot the Difference
https://en.wikipedia.org/wiki/Spot_the_difference
CONFIDENTIAL
Example: Purchase Screen
EXPECTATION REALITY
CONFIDENTIAL
Challenges
Impact to Teams
Speed Manual testing is slowing down release cycles
Quality Releasing visual bugs into production
Time Time spent fixing the issues
Assertions: only test what has been explicitly asserted.
What if data is missing? ✘ Functional Tests pass ✓ 😱
What if images are broken? ✘ Functional Tests pass ✓ 😱
What if elements are missing? ✘ Functional Tests pass ✓ 😱
What if layout is broken? ✘ Functional Tests pass ✓ 😱
What if styles do not load? ✘ Functional Tests pass ✓ 😱
October, 2020
Sauce Visual
October, 2020 CONFIDENTIAL
Sauce Visual
19
Visual Component
Instantly get automated visual testing across
your React, Vue, and Angular components.
Visual End-to-End (E2E)
Harness the power of automation to test UIs
across different browsers and resolutions.
Automatically detect visual regressions across your application UI and increase test
coverage by performing both visual and functional testing in the same test run.
October, 2020 CONFIDENTIAL
Testing Pyramid
Unit
3
Integration
API Testing
2
End-to-End
Functional Testing
Visual Testing
Performance Testing
1
A Snapshot is Worth a Thousand Assertions
BEFORE: Assertions Example AFTER: Snapshot code
const h1 = await browser.$('h1');
const h2 = await browser.$('h2');
const colorH1 = await h1.getCSSProperty('color');
const colorH2 = await h2.getCSSProperty('color');
assert.strictEqual(colorH1, "rgb(255, 0, 0)");
assert.strictEqual(colorH2, "rgb(0, 255, 0)");
const sizeH1 = await h1.getSize();
const sizeH2 = await h2.getSize();
assert.strictEqual(sizeH1.width, 233);
assert.strictEqual(sizeH1.height, 35);
assert.strictEqual(sizeH2.width, 200);
assert.strictEqual(sizeH2.height, 25);
await browser('/*@visual.snapshot*/', 'Headers
Snapshot');
await browser('/*@visual.end*/');
CONFIDENTIAL
Customer Quote
“With Sauce Labs, we have a single visual snapshot for visual and
functional regressions, so less assertions are needed. This reduces the
complexity of writing and maintaining automated tests.
Zohar Liran, Head of Data Intelligence Group
Example: Pixel-based Image Diff
Example: Smart Hybrid Diff
Example: Smart Hybrid Diff
Example: Smart Hybrid Diff
Example: Smart Hybrid Diff
October, 2020 CONFIDENTIAL
Automated Visual Testing Benefits
Reduces time spent writing and maintaining scripts
Simplifies UI testing
Test both the functional and visual aspects of the UI
Increases coverage
Run tests in parallel for fast execution
Accelerates release velocity
Catches visual regression before it reaches production
Improvements to visual quality
CONFIDENTIAL
Customer Quote
“[The solution]...combines an automation testing tool with a visual
regression tool. We realized this would save QA time, make it easy to
write and maintain tests, and help us debug any issues we uncover,”
Daniel Gefen, Engineering Manager
October, 2020
Thank you
October, 2020
Q&A
Thank you for attending!
Slides and session recordings will be sent via email.
We want to hear from you!
Sign up to join the Sauce Labs UX Research Panel and help us continuously
improve our platform and capabilities. bit.ly/SauceUXPanel
32
What Functional Tests Overlook, See It With Visual Testing
February 24, 2021
SauceCon Online
Registration is now open for SauceCon Online, Sauce Labs
annual user conference, taking place April 20-22, 2021.
saucecon.com

Weitere ähnliche Inhalte

Mehr von Sauce Labs

Mehr von Sauce Labs (20)

How Open Source Helps to Bring Back Product Obsession
How Open Source Helps to Bring Back Product ObsessionHow Open Source Helps to Bring Back Product Obsession
How Open Source Helps to Bring Back Product Obsession
 
Webinar: A Sneak Peek at Selenium 4 with Simon Stewart
Webinar: A Sneak Peek at Selenium 4 with Simon StewartWebinar: A Sneak Peek at Selenium 4 with Simon Stewart
Webinar: A Sneak Peek at Selenium 4 with Simon Stewart
 
[Deu] Test Automatisierung Mit Web Driver.io
[Deu] Test Automatisierung Mit Web Driver.io[Deu] Test Automatisierung Mit Web Driver.io
[Deu] Test Automatisierung Mit Web Driver.io
 
Accelerating Innovation: Leveraging Open Source to Optimize Your Shift-Left I...
Accelerating Innovation: Leveraging Open Source to Optimize Your Shift-Left I...Accelerating Innovation: Leveraging Open Source to Optimize Your Shift-Left I...
Accelerating Innovation: Leveraging Open Source to Optimize Your Shift-Left I...
 
Accelerating Your Digital Agenda with Continuous Testing ft. Forrester
Accelerating Your Digital Agenda with Continuous Testing ft. ForresterAccelerating Your Digital Agenda with Continuous Testing ft. Forrester
Accelerating Your Digital Agenda with Continuous Testing ft. Forrester
 
How to Measure Success in Continuous Testing
How to Measure Success in Continuous TestingHow to Measure Success in Continuous Testing
How to Measure Success in Continuous Testing
 
From Zero to 2.7 Million - How Verizon Media Embraced Open Source to Accelera...
From Zero to 2.7 Million - How Verizon Media Embraced Open Source to Accelera...From Zero to 2.7 Million - How Verizon Media Embraced Open Source to Accelera...
From Zero to 2.7 Million - How Verizon Media Embraced Open Source to Accelera...
 
5 Steps to Jump Start Your Test Automation
5 Steps to Jump Start Your Test Automation5 Steps to Jump Start Your Test Automation
5 Steps to Jump Start Your Test Automation
 
Sauce Labs Webinar: Rising Importance of Software Testing
Sauce Labs Webinar: Rising Importance of Software TestingSauce Labs Webinar: Rising Importance of Software Testing
Sauce Labs Webinar: Rising Importance of Software Testing
 
BDD With Selenide by Hima Bindu Peteti
BDD With Selenide by Hima Bindu PetetiBDD With Selenide by Hima Bindu Peteti
BDD With Selenide by Hima Bindu Peteti
 
Closer To the Metal - Why and How We Use XCTest and Espresso by Mario Negro P...
Closer To the Metal - Why and How We Use XCTest and Espresso by Mario Negro P...Closer To the Metal - Why and How We Use XCTest and Espresso by Mario Negro P...
Closer To the Metal - Why and How We Use XCTest and Espresso by Mario Negro P...
 
Continuous Delivery for "Mature" Codebases by Melisa Benua
Continuous Delivery for "Mature" Codebases by Melisa BenuaContinuous Delivery for "Mature" Codebases by Melisa Benua
Continuous Delivery for "Mature" Codebases by Melisa Benua
 
Building Automation Engineers From Scratch by Jenny Bramble
Building Automation Engineers From Scratch by Jenny BrambleBuilding Automation Engineers From Scratch by Jenny Bramble
Building Automation Engineers From Scratch by Jenny Bramble
 
Automated Testing at The Speed of Headless by Alissa Lydon and Samantha Coffman
Automated Testing at The Speed of Headless by Alissa Lydon and Samantha CoffmanAutomated Testing at The Speed of Headless by Alissa Lydon and Samantha Coffman
Automated Testing at The Speed of Headless by Alissa Lydon and Samantha Coffman
 
Building The Blocks of Trust in Automation by Sneha Viswalingam
Building The Blocks of Trust in Automation by Sneha ViswalingamBuilding The Blocks of Trust in Automation by Sneha Viswalingam
Building The Blocks of Trust in Automation by Sneha Viswalingam
 
What's that smell? Tidying Up our Test Code by Angie Jones
What's that smell? Tidying Up our Test Code by Angie JonesWhat's that smell? Tidying Up our Test Code by Angie Jones
What's that smell? Tidying Up our Test Code by Angie Jones
 
Wait, That's Not Right by Troy Walsh
Wait, That's Not Right by Troy WalshWait, That's Not Right by Troy Walsh
Wait, That's Not Right by Troy Walsh
 
Using Kubernetes to Host Sauce Connect Tunnels by Morgan Vergara
Using Kubernetes to Host Sauce Connect Tunnels by Morgan VergaraUsing Kubernetes to Host Sauce Connect Tunnels by Morgan Vergara
Using Kubernetes to Host Sauce Connect Tunnels by Morgan Vergara
 
The Push From Within - A Journey of Transformation at Walmart Labs by Claude ...
The Push From Within - A Journey of Transformation at Walmart Labs by Claude ...The Push From Within - A Journey of Transformation at Walmart Labs by Claude ...
The Push From Within - A Journey of Transformation at Walmart Labs by Claude ...
 
Page Objects - You're Doing it Wrong by Titus Fortner
Page Objects - You're Doing it Wrong by Titus FortnerPage Objects - You're Doing it Wrong by Titus Fortner
Page Objects - You're Doing it Wrong by Titus Fortner
 

Kürzlich hochgeladen

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Kürzlich hochgeladen (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 

What Functional Tests Overlook, See It with Visual Testing

  • 1. October, 2020 Sauce Visual What Functional Tests Overlook, See It with Visual Testing Larry Ho Product Marketing
  • 3. October, 2020 Not Just Having a Digital Experience 3 To Excel, You Must Deliver Digital Confidence You are creating and delivering the best possible user experience for your customers. Your web applications look, function, and perform exactly as intended before your users ever interact with them. Your customers have no doubt that your web applications will work flawlessly every single time they use them. Digital confidence means knowing: Source: Adopt Agile and DevOps to Drive Digital Business Success, Jan. 2020
  • 4. October, 2020 To create a world of digital confidence. SAUCE LABS VISION STATEMENT
  • 5. Enterprise Security & Support 5 Sauce Labs Continuous Testing Cloud Your Secret Sauce to Ensuring Digital Confidence Headless Browsers Desktop Browsers & OSs Mobile Emulators and Simulators Scalable, Always On & Available from Anywhere Test Infrastructure Real Devices Analytics Debugging Videos & Screenshots Productivity Tools to Find & Fix Failures Fast Live Testing Functional Performance Visual Visibility into the 360° User Experience API
  • 7. CONFIDENTIAL Digital Confidence with Visual 7 Digital confidence means knowing your web applications look, function, and perform exactly as intended. Visual testing is how you ensure your app appears to the user as you intended.
  • 11. CONFIDENTIAL Challenges Impact to Teams Speed Manual testing is slowing down release cycles Quality Releasing visual bugs into production Time Time spent fixing the issues
  • 12. Assertions: only test what has been explicitly asserted.
  • 13. What if data is missing? ✘ Functional Tests pass ✓ 😱
  • 14. What if images are broken? ✘ Functional Tests pass ✓ 😱
  • 15. What if elements are missing? ✘ Functional Tests pass ✓ 😱
  • 16. What if layout is broken? ✘ Functional Tests pass ✓ 😱
  • 17. What if styles do not load? ✘ Functional Tests pass ✓ 😱
  • 19. October, 2020 CONFIDENTIAL Sauce Visual 19 Visual Component Instantly get automated visual testing across your React, Vue, and Angular components. Visual End-to-End (E2E) Harness the power of automation to test UIs across different browsers and resolutions. Automatically detect visual regressions across your application UI and increase test coverage by performing both visual and functional testing in the same test run.
  • 20. October, 2020 CONFIDENTIAL Testing Pyramid Unit 3 Integration API Testing 2 End-to-End Functional Testing Visual Testing Performance Testing 1
  • 21. A Snapshot is Worth a Thousand Assertions BEFORE: Assertions Example AFTER: Snapshot code const h1 = await browser.$('h1'); const h2 = await browser.$('h2'); const colorH1 = await h1.getCSSProperty('color'); const colorH2 = await h2.getCSSProperty('color'); assert.strictEqual(colorH1, "rgb(255, 0, 0)"); assert.strictEqual(colorH2, "rgb(0, 255, 0)"); const sizeH1 = await h1.getSize(); const sizeH2 = await h2.getSize(); assert.strictEqual(sizeH1.width, 233); assert.strictEqual(sizeH1.height, 35); assert.strictEqual(sizeH2.width, 200); assert.strictEqual(sizeH2.height, 25); await browser('/*@visual.snapshot*/', 'Headers Snapshot'); await browser('/*@visual.end*/');
  • 22. CONFIDENTIAL Customer Quote “With Sauce Labs, we have a single visual snapshot for visual and functional regressions, so less assertions are needed. This reduces the complexity of writing and maintaining automated tests. Zohar Liran, Head of Data Intelligence Group
  • 28. October, 2020 CONFIDENTIAL Automated Visual Testing Benefits Reduces time spent writing and maintaining scripts Simplifies UI testing Test both the functional and visual aspects of the UI Increases coverage Run tests in parallel for fast execution Accelerates release velocity Catches visual regression before it reaches production Improvements to visual quality
  • 29. CONFIDENTIAL Customer Quote “[The solution]...combines an automation testing tool with a visual regression tool. We realized this would save QA time, make it easy to write and maintain tests, and help us debug any issues we uncover,” Daniel Gefen, Engineering Manager
  • 32. Thank you for attending! Slides and session recordings will be sent via email. We want to hear from you! Sign up to join the Sauce Labs UX Research Panel and help us continuously improve our platform and capabilities. bit.ly/SauceUXPanel 32 What Functional Tests Overlook, See It With Visual Testing February 24, 2021 SauceCon Online Registration is now open for SauceCon Online, Sauce Labs annual user conference, taking place April 20-22, 2021. saucecon.com