SlideShare una empresa de Scribd logo
1 de 36
Descargar para leer sin conexión
Peter Kim
2017
INTRO – H20Dragon
Peter Kim
Email: h20dragon@outlook.com
https://www.linkedin.com/in/peterkim777
Agenda
ž  Share how visual testing benefited our
functional test automation strategy
ž  Share where visual testing successfully
provided coverage to other test types
ž  Share how to get started with using
visual testing
ž  Demos
ž  Q&A
What is Visual Testing?
What is Visual Testing?
ž  Verifies the UI/UX
—  Test coverage of what was actually rendered
on the UI device
—  Test coverage for responsive app. behaviors
Verifies as though you are using your eyes.
Automated Visual Testing
A need to change because ....
ž  Catch defects earlier in the SDLC
ž  Verify the UI/UX across target browsers/UI devices
ž  Verify the UI/UX across different resolutions
ž  Existing automation strategy didn’t include “visual” coverage.
ž  Current process of asserting validations are too static
ž  Brittle Selenium locators (e.g. XPATH)
ž  Page Objects aren’t scaling quickly enough
ž  Customers are reporting defects, in PROD, instead of us
ž  Inability to scale functional (Regression) test coverage
ž  Uncertainty of what type of assertions are needed
ž  Lack domain knowledge in the app.
ž  Test reports lack depth
ž  Test reports need meaningful visuals
ž  Customers feel that your UI/UX is as important as the functionality
ž  QA team has limited resources
ž  It’s not 2007 anymore, but your test automation design/strategy
thinks it is.
ž  You want to repurpose your functional tests for other test types –
e.g. Localization / Accessibility
You need it because ..
Although, we were unable to create assertions to catch
potential defects, with visual testing, we now at least
have the ability to report and share with others what has
changed.
Here, you’ve empowered others, or possibly held
accountable, that they too were in a position to catch (or
see) potential defects or comment on changes (whether
intended or not per requirements/user story).
Automation with Selenium
Automation with Selenium
ž  Challenges
—  Takes time and resources to learn effective
Selenium/WebDriver
—  Selenium is an automation library. You’re
responsible for creating and/or piecing together
the framework, designs, and strategies that will
leverage it.
—  Poor test frameworks/design will mean brittle
tests and will most likely hinder your ability to
scale – you will be playing “catch-up” with the
current versions/releases of your app.
Automation with Selenium
ž  Challenges
—  Assertions are typically “static”, based on the
requirements/user stories/pre-canned
queries. E.g. Limited number of assertions
used to verify and validate your test case.
This means, if your application behaves
differently and none of your assertions cover
that change .. you are now exposed to risks
(defects, false confidence in your findings).
Are You Automating the
“Expected”?
“Obvious is the most dangerous word in
mathematics.”
- Eric Temple Bell (Mathematician)
1883-1960
Are You Automating the ‘Expected’?
Are You Automating the ‘Expected’?
ž  Pesticide Paradox
Over the course of time, your automated
tests will diminish it’s ability to catch
defects.
Especially, the tests that seem to always
pass.
Improving automation
ž What was our criteria to advance
our existing automation strategy?
Automation Requirements
ž  Need a technical solution that plays well with Selenium/WebDriver
since all our end-to-end tests are Selenium based.
ž  Minimal impact, e.g. refactoring, of our existing automation test suites.
ž  Avoid re-inventing designs based on old designs, thinking they’re new
designs.
ž  Be cautious of “best practices” that have been around since 2007.
ž  Short and simple learning curve, with powerful results.
ž  Technology/tool must be well supported
ž  Technology/tool must scale and be secure (e.g. cloud, multiple device
support)
ž  Powerful and customizable test reports
Lessons Learned
ž  .. Be cautious when investing in resources
with strategies which ultimately repurpose
the same old approach and processes.
ž  Consider leveraging a new design/strategy
ž  Consider leveraging proven technologies
that integrate with your existing testware.
DEMO – Functional Automated Test
Filters, for advanced search, returns correct set of Porsche 911s.
DEMO – Functional Automated Test
Filters, for advanced search, returns correct set of Porsche 911s.
DEMO I.
Create a baseline visual test
The visual baseline will be used for
validation of future visual test results.
DEMO I.
Create a baseline visual test
The visual baseline will be used for validation of future visual test results.
Demo I. Re-run the test.
Visually compare the new run against the baseline
Demo I. Recap
ž  Created a visual baseline
ž  Execute end-to-end with visual coverage
—  Specified matchType (e.g. Strict, Content, Layout)
—  Specified target page/regions
ž  Automated coverage scales with more
assertions.
ž  Easy to “see” visual results
ž  Ability to manage/update assertion criteria
Demo II. Visual Defect
Demo II. Visual Defect Analysis
Demo II. View the results
What was actually
demonstrated?
ž  Little resources are needed to add test coverage
(assertions) if you have a simple, yet powerful, ability
to leverage visual testing.
ž  Coverage is dramatically improved
—  Context (text)
—  Layout
—  Graphics
ž  Less brittleness in your automated Selenium tests,
while decreasing coding efforts
ž  Forgiveness of ones’ lack of insight of “what should
be covered?” or “what’s the scope?”
ž  UI (Visual) assertions can facilitate functional testing
ž  Minimize pesticide paradox
ž  Fred Flintstone has an awesome car!
Leveraging VT
Localization Test Automation (Regression)
Leveraging VT
ž  Localization Testing
Ensuring that all targeted and/or
served parties, regardless of
language, nationality, and culture are
equally and fairly respected and
presented with the same information
and content.
Localization Test Automation
ž  Content
ž  Images
ž  Layout
Localization Test Automation
ž  Content
—  Headings
—  Data formats
○  Date
○  Currency
—  Translation Errors
ž  Images
ž  Layout
Localization Test Automation
ž  Content
—  Headings
—  Data formats
○  Date
○  Currency
—  Translation Errors
ž  Images
ž  Layout
Get more details on automating your Localization tests at https://applitools.com/concur/
Localization Test Auto
Tools –Applitools Eyes
ž  Visual Test Automation
—  Advanced Visual/Digital Analysis (AI)
○  Mitigates false positives (e.g. floating or shifting of elements)
○  Create/manage regions per inclusion/exclusion
—  Applitools Account (It’s free)
https://applitools.com/sign-up/
—  Applitools API Key
—  Install the SDK (based on your programming language) for your
Selenium tests
—  Understanding resolutions – e.g. “viewport”
Reference: https://applitools.com/videotutorials/
Summary
ž  Functional testing can be improved by leveraging visual testing.
ž  It’s simple to conduct Visual Test Automation
E.g. Applitools Eyes with Selenium/WebDriver based framework
ž  Heavy reliance, using the pattern of asserting the “obvious”, being the “master of the obvious”, or
“happy path” is a great way to ship defects into PROD.
ž  Run and validate your tests on the actual devices your end-users are using.
ž  Run and validate your tests on the same resolutions (UI devices) based on the “rendered” pages (not
just the DOM).
ž  Automate responsive apps visually.
ž  Create a plan to deal with Pesticide Paradox
ž  Advance your test automation framework with new designs and strategies (it’s not 2007) – also,
leverage new technologies that are proven to be reliable and scalable, while being simple yet
powerful.
ž  For QA/QE teams – leverage “CYA”
Thank You
Peter Kim
Email: h20dragon@outlook.com
https://www.linkedin.com/in/peterkim777
https://dcast.io

Más contenido relacionado

La actualidad más candente

From 0 to DevOps in 80 Days [Webinar Replay]
From 0 to DevOps in 80 Days [Webinar Replay]From 0 to DevOps in 80 Days [Webinar Replay]
From 0 to DevOps in 80 Days [Webinar Replay]
Dynatrace
 
Our DevOps Journey: 6 Month Waterfalls to 1 Hour Code Deploys
Our DevOps Journey: 6 Month Waterfalls to 1 Hour Code DeploysOur DevOps Journey: 6 Month Waterfalls to 1 Hour Code Deploys
Our DevOps Journey: 6 Month Waterfalls to 1 Hour Code Deploys
Dynatrace
 
Continuous delivery mobile application development
Continuous delivery mobile application developmentContinuous delivery mobile application development
Continuous delivery mobile application development
Thoughtworks
 

La actualidad más candente (20)

Appium & Selenium Alone vs Appium & Selenium with Perfecto
Appium & Selenium Alone vs Appium & Selenium with PerfectoAppium & Selenium Alone vs Appium & Selenium with Perfecto
Appium & Selenium Alone vs Appium & Selenium with Perfecto
 
Automated Visual Testing at Scale : Real-life Example from Dow Jones
Automated Visual Testing at Scale : Real-life Example from Dow JonesAutomated Visual Testing at Scale : Real-life Example from Dow Jones
Automated Visual Testing at Scale : Real-life Example from Dow Jones
 
Can We Deliver Mobile Apps Continuously?
Can We Deliver Mobile Apps Continuously?Can We Deliver Mobile Apps Continuously?
Can We Deliver Mobile Apps Continuously?
 
What's New with Perfecto? - Mid-Year Edition
What's New with Perfecto? - Mid-Year EditionWhat's New with Perfecto? - Mid-Year Edition
What's New with Perfecto? - Mid-Year Edition
 
accelQ quality lifecycle automation
accelQ quality lifecycle automationaccelQ quality lifecycle automation
accelQ quality lifecycle automation
 
Test Automation Architecture
Test Automation ArchitectureTest Automation Architecture
Test Automation Architecture
 
From 0 to DevOps in 80 Days [Webinar Replay]
From 0 to DevOps in 80 Days [Webinar Replay]From 0 to DevOps in 80 Days [Webinar Replay]
From 0 to DevOps in 80 Days [Webinar Replay]
 
Testing in the IoT Era
Testing in the IoT EraTesting in the IoT Era
Testing in the IoT Era
 
ATAGTR2017 Testing in DevOps Culture
ATAGTR2017 Testing in DevOps CultureATAGTR2017 Testing in DevOps Culture
ATAGTR2017 Testing in DevOps Culture
 
Augmented Reality & Software Testing - Sourabh d
Augmented Reality & Software Testing - Sourabh dAugmented Reality & Software Testing - Sourabh d
Augmented Reality & Software Testing - Sourabh d
 
Silicon Valley Grade IT and Cloud Maturity Assessment for Startup Ecosystem i...
Silicon Valley Grade IT and Cloud Maturity Assessment for Startup Ecosystem i...Silicon Valley Grade IT and Cloud Maturity Assessment for Startup Ecosystem i...
Silicon Valley Grade IT and Cloud Maturity Assessment for Startup Ecosystem i...
 
[Infographic] Challenges in Test Automation
[Infographic] Challenges in Test Automation [Infographic] Challenges in Test Automation
[Infographic] Challenges in Test Automation
 
Our DevOps Journey: 6 Month Waterfalls to 1 Hour Code Deploys
Our DevOps Journey: 6 Month Waterfalls to 1 Hour Code DeploysOur DevOps Journey: 6 Month Waterfalls to 1 Hour Code Deploys
Our DevOps Journey: 6 Month Waterfalls to 1 Hour Code Deploys
 
TechTalk: Get to Know Perfecto
TechTalk: Get to Know Perfecto TechTalk: Get to Know Perfecto
TechTalk: Get to Know Perfecto
 
DevOps for the Mobile Enterprise: Test and Deploy
DevOps for the Mobile Enterprise: Test and DeployDevOps for the Mobile Enterprise: Test and Deploy
DevOps for the Mobile Enterprise: Test and Deploy
 
Continuous delivery mobile application development
Continuous delivery mobile application developmentContinuous delivery mobile application development
Continuous delivery mobile application development
 
Definition Driven API Development: How OAS & Swagger Help Teams Streamline Th...
Definition Driven API Development: How OAS & Swagger Help Teams Streamline Th...Definition Driven API Development: How OAS & Swagger Help Teams Streamline Th...
Definition Driven API Development: How OAS & Swagger Help Teams Streamline Th...
 
Simplify Salesforce Testing with AI-Driven Codeless Tools
Simplify Salesforce Testing with AI-Driven Codeless ToolsSimplify Salesforce Testing with AI-Driven Codeless Tools
Simplify Salesforce Testing with AI-Driven Codeless Tools
 
A Top Down Approach to End-to-End Testing
A Top Down Approach to End-to-End TestingA Top Down Approach to End-to-End Testing
A Top Down Approach to End-to-End Testing
 
Enforcing Your Organization's API Design Standards with SwaggerHub
Enforcing Your Organization's API Design Standards with SwaggerHubEnforcing Your Organization's API Design Standards with SwaggerHub
Enforcing Your Organization's API Design Standards with SwaggerHub
 

Similar a Leveraging Visual Testing with Your Functional Tests

What is Selenium Testing.pdf
What is Selenium Testing.pdfWhat is Selenium Testing.pdf
What is Selenium Testing.pdf
AnanthReddy38
 
Navyashree_QA_profile
Navyashree_QA_profileNavyashree_QA_profile
Navyashree_QA_profile
Navya Shree
 
Sanju_July2015_Atlanta_QA_Test_Lead_0715
Sanju_July2015_Atlanta_QA_Test_Lead_0715Sanju_July2015_Atlanta_QA_Test_Lead_0715
Sanju_July2015_Atlanta_QA_Test_Lead_0715
sanju alex
 
Timothy Pettway Resume 8-2-2015
Timothy Pettway Resume 8-2-2015Timothy Pettway Resume 8-2-2015
Timothy Pettway Resume 8-2-2015
Timothy Pettway
 

Similar a Leveraging Visual Testing with Your Functional Tests (20)

How Concur Technologies (a SAP company) Leverages Visual Testing for Localiza...
How Concur Technologies (a SAP company) Leverages Visual Testing for Localiza...How Concur Technologies (a SAP company) Leverages Visual Testing for Localiza...
How Concur Technologies (a SAP company) Leverages Visual Testing for Localiza...
 
Discover the power of QA automation testing
Discover the power of QA automation testingDiscover the power of QA automation testing
Discover the power of QA automation testing
 
Test Automation: Investment Today Pays Back Tomorrow
Test Automation: Investment Today Pays Back TomorrowTest Automation: Investment Today Pays Back Tomorrow
Test Automation: Investment Today Pays Back Tomorrow
 
What is Selenium Testing.pdf
What is Selenium Testing.pdfWhat is Selenium Testing.pdf
What is Selenium Testing.pdf
 
Appium Interview Questions and Answers | Edureka
Appium Interview Questions and Answers | EdurekaAppium Interview Questions and Answers | Edureka
Appium Interview Questions and Answers | Edureka
 
Real world selenium resume which gets more job interviews
Real world selenium resume which gets more job interviewsReal world selenium resume which gets more job interviews
Real world selenium resume which gets more job interviews
 
Lightning Talks by Globant - Automation (This app runs by itself )
Lightning Talks by Globant -  Automation (This app runs by itself ) Lightning Talks by Globant -  Automation (This app runs by itself )
Lightning Talks by Globant - Automation (This app runs by itself )
 
Navyashree_QA_profile
Navyashree_QA_profileNavyashree_QA_profile
Navyashree_QA_profile
 
Basics of Scriptless Automation for Web and Mobile Apps (1).pdf
Basics of Scriptless Automation for Web and Mobile Apps (1).pdfBasics of Scriptless Automation for Web and Mobile Apps (1).pdf
Basics of Scriptless Automation for Web and Mobile Apps (1).pdf
 
QA_Mahesh
QA_MaheshQA_Mahesh
QA_Mahesh
 
Relieving the Testing Bottle Neck in Your Projects | cPrime + QASymphony
Relieving the Testing Bottle Neck in Your Projects | cPrime + QASymphonyRelieving the Testing Bottle Neck in Your Projects | cPrime + QASymphony
Relieving the Testing Bottle Neck in Your Projects | cPrime + QASymphony
 
Relieveing the Testing Bottle Neck - Webinar
Relieveing the Testing Bottle Neck - WebinarRelieveing the Testing Bottle Neck - Webinar
Relieveing the Testing Bottle Neck - Webinar
 
The Tester’s Role: Balancing Technical Acumen and User Advocacy
The Tester’s Role: Balancing Technical Acumen and User AdvocacyThe Tester’s Role: Balancing Technical Acumen and User Advocacy
The Tester’s Role: Balancing Technical Acumen and User Advocacy
 
Sanju_July2015_Atlanta_QA_Test_Lead_0715
Sanju_July2015_Atlanta_QA_Test_Lead_0715Sanju_July2015_Atlanta_QA_Test_Lead_0715
Sanju_July2015_Atlanta_QA_Test_Lead_0715
 
Integrate Your Test Automation Tools for More Power
Integrate Your Test Automation Tools for More PowerIntegrate Your Test Automation Tools for More Power
Integrate Your Test Automation Tools for More Power
 
Visual Studio ALM and DevOps Tools Walkthrough
Visual Studio ALM and DevOps Tools WalkthroughVisual Studio ALM and DevOps Tools Walkthrough
Visual Studio ALM and DevOps Tools Walkthrough
 
Khushboo_Resume
Khushboo_ResumeKhushboo_Resume
Khushboo_Resume
 
Software Testing Tools Training
Software Testing Tools TrainingSoftware Testing Tools Training
Software Testing Tools Training
 
Web Application Testing – The Basics of Web App Test Automation.pdf
Web Application Testing – The Basics of Web App Test Automation.pdfWeb Application Testing – The Basics of Web App Test Automation.pdf
Web Application Testing – The Basics of Web App Test Automation.pdf
 
Timothy Pettway Resume 8-2-2015
Timothy Pettway Resume 8-2-2015Timothy Pettway Resume 8-2-2015
Timothy Pettway Resume 8-2-2015
 

Más de TEST Huddle

Más de TEST Huddle (20)

Why We Need Diversity in Testing- Accenture
Why We Need Diversity in Testing- AccentureWhy We Need Diversity in Testing- Accenture
Why We Need Diversity in Testing- Accenture
 
Why you Shouldnt Automated But You Will Anyway
Why you Shouldnt Automated But You Will Anyway Why you Shouldnt Automated But You Will Anyway
Why you Shouldnt Automated But You Will Anyway
 
Being a Tester in Scrum
Being a Tester in ScrumBeing a Tester in Scrum
Being a Tester in Scrum
 
Using Test Trees to get an Overview of Test Work
Using Test Trees to get an Overview of Test WorkUsing Test Trees to get an Overview of Test Work
Using Test Trees to get an Overview of Test Work
 
Big Data: The Magic to Attain New Heights
Big Data:  The Magic to Attain New HeightsBig Data:  The Magic to Attain New Heights
Big Data: The Magic to Attain New Heights
 
Will Robots Replace Testers?
Will Robots Replace Testers?Will Robots Replace Testers?
Will Robots Replace Testers?
 
TDD For The Rest Of Us
TDD For The Rest Of UsTDD For The Rest Of Us
TDD For The Rest Of Us
 
Scaling Agile with LeSS (Large Scale Scrum)
Scaling Agile with LeSS (Large Scale Scrum)Scaling Agile with LeSS (Large Scale Scrum)
Scaling Agile with LeSS (Large Scale Scrum)
 
Creating Agile Test Strategies for Larger Enterprises
Creating Agile Test Strategies for Larger EnterprisesCreating Agile Test Strategies for Larger Enterprises
Creating Agile Test Strategies for Larger Enterprises
 
Is There A Risk?
Is There A Risk?Is There A Risk?
Is There A Risk?
 
Are Your Tests Well-Travelled? Thoughts About Test Coverage
Are Your Tests Well-Travelled? Thoughts About Test CoverageAre Your Tests Well-Travelled? Thoughts About Test Coverage
Are Your Tests Well-Travelled? Thoughts About Test Coverage
 
Growing a Company Test Community: Roles and Paths for Testers
Growing a Company Test Community: Roles and Paths for TestersGrowing a Company Test Community: Roles and Paths for Testers
Growing a Company Test Community: Roles and Paths for Testers
 
Do we need testers on agile teams?
Do we need testers on agile teams?Do we need testers on agile teams?
Do we need testers on agile teams?
 
How to use selenium successfully
How to use selenium successfullyHow to use selenium successfully
How to use selenium successfully
 
Testers & Teams on the Agile Fluency™ Journey
Testers & Teams on the Agile Fluency™ Journey Testers & Teams on the Agile Fluency™ Journey
Testers & Teams on the Agile Fluency™ Journey
 
Practical Test Strategy Using Heuristics
Practical Test Strategy Using HeuristicsPractical Test Strategy Using Heuristics
Practical Test Strategy Using Heuristics
 
Thinking Through Your Role
Thinking Through Your RoleThinking Through Your Role
Thinking Through Your Role
 
Using Selenium 3 0
Using Selenium 3 0Using Selenium 3 0
Using Selenium 3 0
 
New Model Testing: A New Test Process and Tool
New Model Testing:  A New Test Process and ToolNew Model Testing:  A New Test Process and Tool
New Model Testing: A New Test Process and Tool
 
Five Digital Age Trends That Will Dramatically Impact Testing And Quality Sk...
 Five Digital Age Trends That Will Dramatically Impact Testing And Quality Sk... Five Digital Age Trends That Will Dramatically Impact Testing And Quality Sk...
Five Digital Age Trends That Will Dramatically Impact Testing And Quality Sk...
 

Último

TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 

Último (20)

TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
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
 
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-...
 
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
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
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
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
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
 
Pharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodologyPharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodology
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
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...
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 

Leveraging Visual Testing with Your Functional Tests

  • 2. INTRO – H20Dragon Peter Kim Email: h20dragon@outlook.com https://www.linkedin.com/in/peterkim777
  • 3. Agenda ž  Share how visual testing benefited our functional test automation strategy ž  Share where visual testing successfully provided coverage to other test types ž  Share how to get started with using visual testing ž  Demos ž  Q&A
  • 4. What is Visual Testing?
  • 5. What is Visual Testing? ž  Verifies the UI/UX —  Test coverage of what was actually rendered on the UI device —  Test coverage for responsive app. behaviors Verifies as though you are using your eyes.
  • 7. A need to change because .... ž  Catch defects earlier in the SDLC ž  Verify the UI/UX across target browsers/UI devices ž  Verify the UI/UX across different resolutions ž  Existing automation strategy didn’t include “visual” coverage. ž  Current process of asserting validations are too static ž  Brittle Selenium locators (e.g. XPATH) ž  Page Objects aren’t scaling quickly enough ž  Customers are reporting defects, in PROD, instead of us ž  Inability to scale functional (Regression) test coverage ž  Uncertainty of what type of assertions are needed ž  Lack domain knowledge in the app. ž  Test reports lack depth ž  Test reports need meaningful visuals ž  Customers feel that your UI/UX is as important as the functionality ž  QA team has limited resources ž  It’s not 2007 anymore, but your test automation design/strategy thinks it is. ž  You want to repurpose your functional tests for other test types – e.g. Localization / Accessibility
  • 8. You need it because .. Although, we were unable to create assertions to catch potential defects, with visual testing, we now at least have the ability to report and share with others what has changed. Here, you’ve empowered others, or possibly held accountable, that they too were in a position to catch (or see) potential defects or comment on changes (whether intended or not per requirements/user story).
  • 10. Automation with Selenium ž  Challenges —  Takes time and resources to learn effective Selenium/WebDriver —  Selenium is an automation library. You’re responsible for creating and/or piecing together the framework, designs, and strategies that will leverage it. —  Poor test frameworks/design will mean brittle tests and will most likely hinder your ability to scale – you will be playing “catch-up” with the current versions/releases of your app.
  • 11. Automation with Selenium ž  Challenges —  Assertions are typically “static”, based on the requirements/user stories/pre-canned queries. E.g. Limited number of assertions used to verify and validate your test case. This means, if your application behaves differently and none of your assertions cover that change .. you are now exposed to risks (defects, false confidence in your findings).
  • 12. Are You Automating the “Expected”? “Obvious is the most dangerous word in mathematics.” - Eric Temple Bell (Mathematician) 1883-1960
  • 13. Are You Automating the ‘Expected’?
  • 14. Are You Automating the ‘Expected’? ž  Pesticide Paradox Over the course of time, your automated tests will diminish it’s ability to catch defects. Especially, the tests that seem to always pass.
  • 15. Improving automation ž What was our criteria to advance our existing automation strategy?
  • 16. Automation Requirements ž  Need a technical solution that plays well with Selenium/WebDriver since all our end-to-end tests are Selenium based. ž  Minimal impact, e.g. refactoring, of our existing automation test suites. ž  Avoid re-inventing designs based on old designs, thinking they’re new designs. ž  Be cautious of “best practices” that have been around since 2007. ž  Short and simple learning curve, with powerful results. ž  Technology/tool must be well supported ž  Technology/tool must scale and be secure (e.g. cloud, multiple device support) ž  Powerful and customizable test reports
  • 17. Lessons Learned ž  .. Be cautious when investing in resources with strategies which ultimately repurpose the same old approach and processes. ž  Consider leveraging a new design/strategy ž  Consider leveraging proven technologies that integrate with your existing testware.
  • 18. DEMO – Functional Automated Test Filters, for advanced search, returns correct set of Porsche 911s.
  • 19. DEMO – Functional Automated Test Filters, for advanced search, returns correct set of Porsche 911s.
  • 20. DEMO I. Create a baseline visual test The visual baseline will be used for validation of future visual test results.
  • 21. DEMO I. Create a baseline visual test The visual baseline will be used for validation of future visual test results.
  • 22. Demo I. Re-run the test. Visually compare the new run against the baseline
  • 23. Demo I. Recap ž  Created a visual baseline ž  Execute end-to-end with visual coverage —  Specified matchType (e.g. Strict, Content, Layout) —  Specified target page/regions ž  Automated coverage scales with more assertions. ž  Easy to “see” visual results ž  Ability to manage/update assertion criteria
  • 24. Demo II. Visual Defect
  • 25. Demo II. Visual Defect Analysis
  • 26. Demo II. View the results
  • 27. What was actually demonstrated? ž  Little resources are needed to add test coverage (assertions) if you have a simple, yet powerful, ability to leverage visual testing. ž  Coverage is dramatically improved —  Context (text) —  Layout —  Graphics ž  Less brittleness in your automated Selenium tests, while decreasing coding efforts ž  Forgiveness of ones’ lack of insight of “what should be covered?” or “what’s the scope?” ž  UI (Visual) assertions can facilitate functional testing ž  Minimize pesticide paradox ž  Fred Flintstone has an awesome car!
  • 28. Leveraging VT Localization Test Automation (Regression)
  • 29. Leveraging VT ž  Localization Testing Ensuring that all targeted and/or served parties, regardless of language, nationality, and culture are equally and fairly respected and presented with the same information and content.
  • 30. Localization Test Automation ž  Content ž  Images ž  Layout
  • 31. Localization Test Automation ž  Content —  Headings —  Data formats ○  Date ○  Currency —  Translation Errors ž  Images ž  Layout
  • 32. Localization Test Automation ž  Content —  Headings —  Data formats ○  Date ○  Currency —  Translation Errors ž  Images ž  Layout Get more details on automating your Localization tests at https://applitools.com/concur/
  • 34. Tools –Applitools Eyes ž  Visual Test Automation —  Advanced Visual/Digital Analysis (AI) ○  Mitigates false positives (e.g. floating or shifting of elements) ○  Create/manage regions per inclusion/exclusion —  Applitools Account (It’s free) https://applitools.com/sign-up/ —  Applitools API Key —  Install the SDK (based on your programming language) for your Selenium tests —  Understanding resolutions – e.g. “viewport” Reference: https://applitools.com/videotutorials/
  • 35. Summary ž  Functional testing can be improved by leveraging visual testing. ž  It’s simple to conduct Visual Test Automation E.g. Applitools Eyes with Selenium/WebDriver based framework ž  Heavy reliance, using the pattern of asserting the “obvious”, being the “master of the obvious”, or “happy path” is a great way to ship defects into PROD. ž  Run and validate your tests on the actual devices your end-users are using. ž  Run and validate your tests on the same resolutions (UI devices) based on the “rendered” pages (not just the DOM). ž  Automate responsive apps visually. ž  Create a plan to deal with Pesticide Paradox ž  Advance your test automation framework with new designs and strategies (it’s not 2007) – also, leverage new technologies that are proven to be reliable and scalable, while being simple yet powerful. ž  For QA/QE teams – leverage “CYA”
  • 36. Thank You Peter Kim Email: h20dragon@outlook.com https://www.linkedin.com/in/peterkim777 https://dcast.io