SlideShare a Scribd company logo
1 of 32
Perfecto by Perforce © 2020 Perforce Software, Inc.
Enhancing your Test Automation Scenario Coverage With Selenium
2 | Advanced Codeless Testing for Web Apps perfecto.io
Today’s Speaker:
Eran Kinsbruner
• Chief Evangelist and author at Perfecto
• Blogger and speaker
• 19+ years in development & testing
• Author of “The Digital Quality Handbook”
and “Continuous Testing for DevOps
Professionals”
• @ek121268
perfecto.io3 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Today’s Agenda
1
2
3
Continuous Testing & the Need for Scale
Cross Browser Testing & Mobile Landscape Overview
4
How to Scale Testing for Web & Mobile Apps
Demo & Q&A
Continuous Testing and Test Automation at Scale
perfectomobile.com
What Is Continuous Testing?
Continuous testing is the process of executing automated
high value tests as a part of the software delivery pipeline
in order to obtain feedback on business risks associated
with a software release upon every code change.
perfecto.io6 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Measuring Continuous Testing Success
1. Average test case creation time
Total test cases
Total creation time
2. Test update/create ratio per sprint
Test case updated
New test created
3. Average test execution time
Test case executed
Total execution time
4. Test executed %
Test executed
Total test cases
5. False positive %
False failure
Total test cases
6. Tests blocked %
Test blocked
Total test cases
7. Average test case creation time
• Environment & test data preparation
• Test case maintenance, creation &
execution
8. Code coverage %
Lines of code executed
Total lines of code
9. Requirements coverage %
# of requrements
Total requirements
10. Risk coverage %
(frequency, damage)
11. Defect %
Test case failed
Total test cases executed
12. Defect leakage %
Defects slipped
Total defects
13. Defect rejection %
Defects rejected
Total defects found
14. Mean time to detect (MTTD)
Defects found
Total execution time
15. Product downtime %
Product downtime
Total run time
16. Exploratory testing hrs vs planned
17. Average exploratory session time
# of sessions
Total exploratory time
18. Average defects per session
Defects found
# of sessions
19. Defect distribution by
• Priority
• Severity
• Functional area
• Tester type
• Cause (env, architecture, code, design,
requirements, user entry)
• Test type (review, walkthrough, test
execution, exploratory, etc)
x100
x100
x100
x100
x100
x100
x100
x100
20. Cost of hardware
21. Cost of software
22. Cost of maintenance
(hardware, software)
23. Cost of test preparation
24. Cost of test execution
25. Average cost per tester
Total tester cost
# of testers
26. Cost of test maintenance over time
27. Cost of defect by
• Severity
• Stage found (dev, QA,
UAT, production)
S P E E D Q U A L I T Y C O S T
Mature DevOps Organizations Are Aiming Higher
Source: Dora, https://codeclimate.com/blog/state-of-devops-2019/
perfecto.io
World Quality
Report 2019-2020
perfecto.io
World Quality
Report 2019-2020
Maturing DevOps and Agile
Actually Requires More Testing!
perfecto.io10 | Perfecto by Perforce © 2020 Perforce Software, Inc.
• Fast feedback
• > Coverage of platforms
• < Execution of time constraints
The Need for Scale
perfecto.io11 | Perfecto by Perforce © 2020 Perforce Software, Inc.
• Scaling Methods — Build vs. Buy
• DIY (aka Selenium Grid)
• Containerized Computing
• Cloud
• Firefox is switching to a monthly release cycle.
The Need for Scale – Web Testing
W H A T ’ S Y O U R P R I M A R Y F O C U S ?
Market Overview
perfecto.io13 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Mobile Capabilities in Web Browser (Incomplete) — Ramping Up
CameraMic
Device Authentication
BT/BLE
Notification Network
perfecto.io14 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Mixing Technologies
for Maximum Test
Automation Coverage
Selenium
Headless (Puppeteer)
Codeless (Perfecto, Selenium IDE)
BDD
perfecto.io15 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Codeless
Open
Source
Cross-Browser Testing Market Is Highly Fragmented
perfecto.io16 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Cross-Browser Testing Tools (Open-Source) — Download Trends Vary
Protractor
Puppeteer
WebDriver IO
Cypress IO
Selenium WebDriver
Source: npmtrends
perfecto.io17 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Tools that...
• Provide a testing structure (BDD/ATDD) (Mocha, Jasmine, Jest, Cucumber).
• Provide assertion functions (Chai, Jasmine, Jest, Unexpected).
• Generate, display, and watch test results (Mocha, Jasmine, Jest, Karma).
• Generate code coverage reports (Istanbul, Jest, Blanket).
• Provide a browser or browser-like environment with control of scenario execution, UI testing, and more
(Protractor, Nightwatch, Phantom, Casper, Selenium, WebDriver.IO, TestCafe).
• Provide mocks, spies, and stubs (Sinon, Jasmine, enzyme, Jest, testdouble).
Additional Categorization of JavaScript Browser Testing Tools
Source: Medium.com
perfecto.io18 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Motivation
• Receive fast feedback (unit and basic functional tests).
• Easy environment setup, no IT dependencies.
• Uses standard JS language.
• Supported and promoted by browser vendors (Google, Mozilla).
• Additional use cases to cover:
• HAR file
• Performance testing
• Basic UI
• Security
Headless Browsers Role
How to Scale Test Automation
perfecto.io20 | Perfecto by Perforce © 2020 Perforce Software, Inc.
How would you describe your test automation scaling strategy?
• We add test scenarios based on data analysis.
• We leverage cloud and containers to scale testing.
• We divide automation scope all across the pipeline.
• Scaling is not a priority yet — we are still stabilizing automation.
• We scale by using real platforms, virtual platforms, and analyzing test data.
Live Poll
perfecto.io21 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Continuous Testing — Personas Involved
Testing is led by three main personas.
B U S I N E S S T E S T E R
S D E T ( S O F T W A R E D E V E L O P E R I N T E S T I N G )
S O F T W A R E D E V E L O P E R
Performs exploratory and structured manual testing.
Creates functional and nonfunctional code-based test
automation scripts (via Selenium, Appium, etc.).
Creates unit and build acceptance tests.
22 | Advanced Codeless Testing for Web Apps perfecto.io
Code-Based AutomationCodeless Automation
perfecto.io
High-Level Comparison Between Tools and Practices
Test Framework Supported
Dev
Languages
Supported
Platforms
Supported
Test
Frameworks
Setup and
Execution
Integrations Breadth of
Testing
Options
Maturity,
Documentation,
Support
Required Skillset Cloud and Execution at
Scale
Selenium/Appium
WebDriver
Java, C#,
Java Script,
Python,
Ruby,
Objective-
C
Chrome,
Safari,
Firefox,
Edge,
IE/iOS/Andr
oid
Mocha JS, Jest,
other super
set on top of
Selenium
(Protractor,
WebDriverIO,
etc.)
Download
relevant
driver, set up a
grid, network
and location
impacts
execution
speed
Plenty of
integrations
(CI, CD,
reporting,
visual testing,
cloud vendors)
End-to-
end,
security,
unit,
Robust community,
multiple bindings, best
practices
Coding skills required
(SDET Oriented)
Perfecto fully supports
Selenium and its
WebDriver
configurations. Local
execution requires
setting up a Selenium
grid
XCUITest/Espresso/
Headless/Cypress
Objective
C/Java/Jav
a Script
Chrome,
Electron
NA Embedded
into IDEs,
headless
bundles a
browser in the
FW
CI/CD UI/Unit Good documentation
and code samples
Dev Oriented Built-in Chrome/Firefox
browsers in headless,
Perfecto Cloud supports
scaling
Espresso/XCUITest
Codeless Irrelevant,
based on
record and
playback
All Proprietary UI
with
underlying
Selenium
WebDriver
APIs
Mostly
SaaS/browser
plugin
installation
Limited Functional
/UI
Growing, limited No coding skills
required (Business
Tester Oriented)
Perfecto supports
codeless in the cloud
BDD Java, Ruby,
JS, Kotlin
All Junit,
Selenium,
Appium
Open source,
Maven/Gradle
/TestNG
Plenty + APIs
(e.g. Rest
Assured)
Functional Robust community,
docs, adoption
Step-definition
development in code is
required/scenarios are
no-code (Mix of
Business Tester and
SDETs)
Perfecto Quantum is a
web/mobile BDD
framework
perfecto.io
Scaling Generates Large Test Data – Important Strategy Item
perfecto.io25 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Scaling Best Practices
What to Test
(Scenarios + Platforms)?
Why These (Value)? When in the Cycle,
How Often (CI/Outside)?
perfecto.io26 | Perfecto by Perforce © 2020 Perforce Software, Inc.
• Think continuous value.
• Think maintenance and complexity to create, execute, monitor, and maintain (ROI).
• Test reliability over time.
Test Automation Certification
If { (Test Scenario) == Candidate to add Value add
{ and x– It detect defects}
{ and – It passes across multiple platforms with consistent result}
{ and – Its execution time is < 5 minutes }
Then
{ Include in Test Suite & & CI }
Else {
}
Run such certifications
once in every 2-3
software iterations.
perfecto.io27 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Measuring Test Automation ROI Value
Value of test
automation
•Cycle testing time per iteration
•Test automation types (functional, non-functional, unit)
•Error detection efficiencies
•Product coverage (key business scenarios)
Cross-Team
Collaboration
•3 personas sharing load (resource, smart utilization of platforms)
•Manual testing %
•Backlog of test automation between iterations (in-sprint automation)
•Test debugging and analysis time per cycle
Test
Execution
•Automation within CI success rate
•Execution across platforms success rate
•Test redundancy/duplication/waste
•Coverage across environments (test, production)
LIVE DEMO
perfecto.io29 | Perfecto by Perforce © 2020 Perforce Software, Inc.
• Testing the Boston Globe RWD site at scale with Selenium (Java)
• Smart analytics with CI dashboard and cross-platform comparison
• Technologies Used:
• IntelliJ Idea
• Selenium
• TestNG/Maven
• Perfecto
Live Demo
Perfecto’s Four Key Pillars for Continuous Testing
perfecto.io31 | Perfecto by Perforce © 2020 Perforce Software, Inc.
The 4 Key Pillars of Continuous Testing in DevOps
This is where money is spent (Time, Tools, Resources)
This is where value is being
realized, quality is improved
Unified solution serves DevOps with greater effectiveness.
Thank You!
Visit perfecto.io or follow us @perfectomobile

More Related Content

What's hot

Best Practices for Shifting Left Performance and Accessibility Testing
Best Practices for Shifting Left Performance and Accessibility TestingBest Practices for Shifting Left Performance and Accessibility Testing
Best Practices for Shifting Left Performance and Accessibility Testing
Perfecto by Perforce
 
Ranjith kumar Nagisetty(AndiordApp and PostSiliconTest Engineer)_Resume
Ranjith kumar Nagisetty(AndiordApp and PostSiliconTest Engineer)_ResumeRanjith kumar Nagisetty(AndiordApp and PostSiliconTest Engineer)_Resume
Ranjith kumar Nagisetty(AndiordApp and PostSiliconTest Engineer)_Resume
ranjith nagisetty
 

What's hot (20)

Best Practices for Shifting Left Performance and Accessibility Testing
Best Practices for Shifting Left Performance and Accessibility TestingBest Practices for Shifting Left Performance and Accessibility Testing
Best Practices for Shifting Left Performance and Accessibility Testing
 
Fast Data, Fast Delivery: How Smart Analysis Accelerates App Testing
Fast Data, Fast Delivery: How Smart Analysis Accelerates App TestingFast Data, Fast Delivery: How Smart Analysis Accelerates App Testing
Fast Data, Fast Delivery: How Smart Analysis Accelerates App Testing
 
Deliver Flawless Mobile Apps Faster with CI/CD & CT
Deliver Flawless Mobile Apps Faster with CI/CD & CTDeliver Flawless Mobile Apps Faster with CI/CD & CT
Deliver Flawless Mobile Apps Faster with CI/CD & CT
 
How to Eliminate Escaped Defects With a Proven Test Automation Coverage Strategy
How to Eliminate Escaped Defects With a Proven Test Automation Coverage StrategyHow to Eliminate Escaped Defects With a Proven Test Automation Coverage Strategy
How to Eliminate Escaped Defects With a Proven Test Automation Coverage Strategy
 
4 Testing Methods to Scale and Automate Your DevOps Pipeline
4 Testing Methods to Scale and Automate Your DevOps Pipeline4 Testing Methods to Scale and Automate Your DevOps Pipeline
4 Testing Methods to Scale and Automate Your DevOps Pipeline
 
5 Mobile App Trends & What They Mean for Dev & Testing
5 Mobile App Trends & What They Mean for Dev & Testing5 Mobile App Trends & What They Mean for Dev & Testing
5 Mobile App Trends & What They Mean for Dev & Testing
 
Ranjith kumar Nagisetty(AndiordApp and PostSiliconTest Engineer)_Resume
Ranjith kumar Nagisetty(AndiordApp and PostSiliconTest Engineer)_ResumeRanjith kumar Nagisetty(AndiordApp and PostSiliconTest Engineer)_Resume
Ranjith kumar Nagisetty(AndiordApp and PostSiliconTest Engineer)_Resume
 
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
 
TechTalk: Get to Know Perfecto
TechTalk: Get to Know Perfecto TechTalk: Get to Know Perfecto
TechTalk: Get to Know Perfecto
 
Manoj kolhe - Continuous Integration Testing
Manoj kolhe - Continuous Integration TestingManoj kolhe - Continuous Integration Testing
Manoj kolhe - Continuous Integration Testing
 
Resume
ResumeResume
Resume
 
Drive Faster Quality Insights through Customized Test Automation
Drive Faster Quality Insights through Customized Test AutomationDrive Faster Quality Insights through Customized Test Automation
Drive Faster Quality Insights through Customized Test Automation
 
Overview and Analysis of Automated Testing Tools: Ranorex, Test Complete, Se...
Overview and Analysis of Automated Testing Tools:  Ranorex, Test Complete, Se...Overview and Analysis of Automated Testing Tools:  Ranorex, Test Complete, Se...
Overview and Analysis of Automated Testing Tools: Ranorex, Test Complete, Se...
 
Continuous testing
Continuous testing Continuous testing
Continuous testing
 
Tools for Software Testing
Tools for Software TestingTools for Software Testing
Tools for Software Testing
 
Four Keys to Efficient DevOps
Four Keys to Efficient DevOpsFour Keys to Efficient DevOps
Four Keys to Efficient DevOps
 
Code Coverage
Code CoverageCode Coverage
Code Coverage
 
Nonfunctional Testing: Examine the Other Side of the Coin
Nonfunctional Testing: Examine the Other Side of the CoinNonfunctional Testing: Examine the Other Side of the Coin
Nonfunctional Testing: Examine the Other Side of the Coin
 
Mobile Quality Assurance
Mobile Quality AssuranceMobile Quality Assurance
Mobile Quality Assurance
 
How to Embed Codeless Test Automation Into DevOps
How to Embed Codeless Test Automation Into DevOpsHow to Embed Codeless Test Automation Into DevOps
How to Embed Codeless Test Automation Into DevOps
 

Similar to Enhancing Your Test Automation Scenario Coverage with Selenium - QA or the Highway

How to Scale Digital App Testing With Jenkins & Automation You Can Trust
How to Scale Digital App Testing With Jenkins & Automation You Can TrustHow to Scale Digital App Testing With Jenkins & Automation You Can Trust
How to Scale Digital App Testing With Jenkins & Automation You Can Trust
Perfecto by Perforce
 
How to Prepare Your Apps for iOS 14 - Test Strategy, Coverage, & Best Practices
How to Prepare Your Apps for iOS 14 - Test Strategy, Coverage, & Best PracticesHow to Prepare Your Apps for iOS 14 - Test Strategy, Coverage, & Best Practices
How to Prepare Your Apps for iOS 14 - Test Strategy, Coverage, & Best Practices
Perfecto by Perforce
 
QUALITY ASSURANCE and VALIDATION ENGINEER
QUALITY ASSURANCE and VALIDATION ENGINEER QUALITY ASSURANCE and VALIDATION ENGINEER
QUALITY ASSURANCE and VALIDATION ENGINEER
Piyush Prakash
 
Resume_Archana_Rao
Resume_Archana_RaoResume_Archana_Rao
Resume_Archana_Rao
archana rao
 

Similar to Enhancing Your Test Automation Scenario Coverage with Selenium - QA or the Highway (20)

Enhancing your Test automation Scenario Coverage Using Selenium by Eran Kinsb...
Enhancing your Test automation Scenario Coverage Using Selenium by Eran Kinsb...Enhancing your Test automation Scenario Coverage Using Selenium by Eran Kinsb...
Enhancing your Test automation Scenario Coverage Using Selenium by Eran Kinsb...
 
How to Scale Digital App Testing With Jenkins & Automation You Can Trust
How to Scale Digital App Testing With Jenkins & Automation You Can TrustHow to Scale Digital App Testing With Jenkins & Automation You Can Trust
How to Scale Digital App Testing With Jenkins & Automation You Can Trust
 
Mastering Cross-Browser Test Automation With Cypress and Selenium
Mastering Cross-Browser Test Automation With Cypress and SeleniumMastering Cross-Browser Test Automation With Cypress and Selenium
Mastering Cross-Browser Test Automation With Cypress and Selenium
 
How to Guarantee Continuous Value from your Test Automation
How to Guarantee Continuous Value from your Test AutomationHow to Guarantee Continuous Value from your Test Automation
How to Guarantee Continuous Value from your Test Automation
 
Raji_QA
Raji_QARaji_QA
Raji_QA
 
Launch Better Apps, Faster - Perfecto & Orasi Joint Webinar Sldies
Launch Better Apps, Faster - Perfecto & Orasi Joint Webinar SldiesLaunch Better Apps, Faster - Perfecto & Orasi Joint Webinar Sldies
Launch Better Apps, Faster - Perfecto & Orasi Joint Webinar Sldies
 
Advanced Codeless Testing for Web Apps
Advanced Codeless Testing for Web AppsAdvanced Codeless Testing for Web Apps
Advanced Codeless Testing for Web Apps
 
How to Prepare Your Apps for iOS 14 - Test Strategy, Coverage, & Best Practices
How to Prepare Your Apps for iOS 14 - Test Strategy, Coverage, & Best PracticesHow to Prepare Your Apps for iOS 14 - Test Strategy, Coverage, & Best Practices
How to Prepare Your Apps for iOS 14 - Test Strategy, Coverage, & Best Practices
 
Agile & DevOps - It's all about project success
Agile & DevOps - It's all about project successAgile & DevOps - It's all about project success
Agile & DevOps - It's all about project success
 
How to Clean Up Your Continuous Testing Suites for Web & Mobile
How to Clean Up Your Continuous Testing Suites for Web & MobileHow to Clean Up Your Continuous Testing Suites for Web & Mobile
How to Clean Up Your Continuous Testing Suites for Web & Mobile
 
kishore
kishorekishore
kishore
 
Continuous Delivery with a PaaS Application
Continuous Delivery with a PaaS ApplicationContinuous Delivery with a PaaS Application
Continuous Delivery with a PaaS Application
 
Appium vs Appium with Perfecto
Appium vs Appium with PerfectoAppium vs Appium with Perfecto
Appium vs Appium with Perfecto
 
Appium vs. Appium with Perfecto
Appium vs. Appium with PerfectoAppium vs. Appium with Perfecto
Appium vs. Appium with Perfecto
 
End to End Test of Network Management Software
End to End Test of Network Management Software End to End Test of Network Management Software
End to End Test of Network Management Software
 
Success Story - End to End Testing of Network Management Software
Success Story - End to End Testing of Network Management SoftwareSuccess Story - End to End Testing of Network Management Software
Success Story - End to End Testing of Network Management Software
 
QUALITY ASSURANCE and VALIDATION ENGINEER
QUALITY ASSURANCE and VALIDATION ENGINEER QUALITY ASSURANCE and VALIDATION ENGINEER
QUALITY ASSURANCE and VALIDATION ENGINEER
 
Creating a successful continuous testing environment by Eran Kinsbruner
Creating a successful continuous testing environment by Eran KinsbrunerCreating a successful continuous testing environment by Eran Kinsbruner
Creating a successful continuous testing environment by Eran Kinsbruner
 
Zibrasoft | Software QA Testing Company Inida
Zibrasoft | Software QA Testing Company InidaZibrasoft | Software QA Testing Company Inida
Zibrasoft | Software QA Testing Company Inida
 
Resume_Archana_Rao
Resume_Archana_RaoResume_Archana_Rao
Resume_Archana_Rao
 

More from Perfecto by Perforce

More from Perfecto by Perforce (17)

Is BDD Worth It? Considerations for Advanced Test Automation
Is BDD Worth It? Considerations for Advanced Test AutomationIs BDD Worth It? Considerations for Advanced Test Automation
Is BDD Worth It? Considerations for Advanced Test Automation
 
Yoda debunks the top 5 challenges of continuous testing in the cloud
Yoda debunks the top 5 challenges of continuous testing in the cloudYoda debunks the top 5 challenges of continuous testing in the cloud
Yoda debunks the top 5 challenges of continuous testing in the cloud
 
Cognitive Engineering - Shifting Right with Gated.AI Testing - DevOps Next
Cognitive Engineering - Shifting Right with Gated.AI Testing - DevOps NextCognitive Engineering - Shifting Right with Gated.AI Testing - DevOps Next
Cognitive Engineering - Shifting Right with Gated.AI Testing - DevOps Next
 
The Rise and Benefits of Robotic Process Automation (RPA) - DevOps Next
The Rise and Benefits of Robotic Process Automation (RPA) - DevOps NextThe Rise and Benefits of Robotic Process Automation (RPA) - DevOps Next
The Rise and Benefits of Robotic Process Automation (RPA) - DevOps Next
 
The New Categories of Software Defects in the Era of AI and ML - DevOps Next
The New Categories of Software Defects in the Era of AI and ML - DevOps NextThe New Categories of Software Defects in the Era of AI and ML - DevOps Next
The New Categories of Software Defects in the Era of AI and ML - DevOps Next
 
Moving to Modern DevOps with Fuzzing and ML - DevOps Next
Moving to Modern DevOps with Fuzzing and ML - DevOps NextMoving to Modern DevOps with Fuzzing and ML - DevOps Next
Moving to Modern DevOps with Fuzzing and ML - DevOps Next
 
Leveraging AI and ML in Test Management Systems - DevOps Next
Leveraging AI and ML in Test Management Systems - DevOps NextLeveraging AI and ML in Test Management Systems - DevOps Next
Leveraging AI and ML in Test Management Systems - DevOps Next
 
How Does AIOps Benefit DevOps Pipeline and Software Quality? - DevOps Next
How Does AIOps Benefit DevOps Pipeline and Software Quality? - DevOps NextHow Does AIOps Benefit DevOps Pipeline and Software Quality? - DevOps Next
How Does AIOps Benefit DevOps Pipeline and Software Quality? - DevOps Next
 
Classification of Advanced AI and ML Testing Tools - DevOps Next
Classification of Advanced AI and ML Testing Tools - DevOps NextClassification of Advanced AI and ML Testing Tools - DevOps Next
Classification of Advanced AI and ML Testing Tools - DevOps Next
 
Automated Code Reviews with AI and ML - DevOps Next
Automated Code Reviews with AI and ML - DevOps NextAutomated Code Reviews with AI and ML - DevOps Next
Automated Code Reviews with AI and ML - DevOps Next
 
Advancing the State of The Art in AI and Testing - DevOps Next
Advancing the State of The Art in AI and Testing - DevOps NextAdvancing the State of The Art in AI and Testing - DevOps Next
Advancing the State of The Art in AI and Testing - DevOps Next
 
How to Create a Risk Based Testing Strategy With Simulators, Emulators, and R...
How to Create a Risk Based Testing Strategy With Simulators, Emulators, and R...How to Create a Risk Based Testing Strategy With Simulators, Emulators, and R...
How to Create a Risk Based Testing Strategy With Simulators, Emulators, and R...
 
Accelerating Digital Transformation With API Lifecycle & Test Automation
Accelerating Digital Transformation With API Lifecycle & Test AutomationAccelerating Digital Transformation With API Lifecycle & Test Automation
Accelerating Digital Transformation With API Lifecycle & Test Automation
 
The Automation Firehose: Be Strategic & Tactical With Your Mobile & Web Testing
The Automation Firehose: Be Strategic & Tactical With Your Mobile & Web TestingThe Automation Firehose: Be Strategic & Tactical With Your Mobile & Web Testing
The Automation Firehose: Be Strategic & Tactical With Your Mobile & Web Testing
 
Why Mobile and Web Testing MUST Move to the Cloud
Why Mobile and Web Testing MUST Move to the CloudWhy Mobile and Web Testing MUST Move to the Cloud
Why Mobile and Web Testing MUST Move to the Cloud
 
Uncovering the unknowns of appium and beyond
Uncovering the unknowns of appium and beyondUncovering the unknowns of appium and beyond
Uncovering the unknowns of appium and beyond
 
Everything You Need to Know About Testing i os 13
Everything You Need to Know About Testing i os 13Everything You Need to Know About Testing i os 13
Everything You Need to Know About Testing i os 13
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
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
 
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...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
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
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
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
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
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
 

Enhancing Your Test Automation Scenario Coverage with Selenium - QA or the Highway

  • 1. Perfecto by Perforce © 2020 Perforce Software, Inc. Enhancing your Test Automation Scenario Coverage With Selenium
  • 2. 2 | Advanced Codeless Testing for Web Apps perfecto.io Today’s Speaker: Eran Kinsbruner • Chief Evangelist and author at Perfecto • Blogger and speaker • 19+ years in development & testing • Author of “The Digital Quality Handbook” and “Continuous Testing for DevOps Professionals” • @ek121268
  • 3. perfecto.io3 | Perfecto by Perforce © 2020 Perforce Software, Inc. Today’s Agenda 1 2 3 Continuous Testing & the Need for Scale Cross Browser Testing & Mobile Landscape Overview 4 How to Scale Testing for Web & Mobile Apps Demo & Q&A
  • 4. Continuous Testing and Test Automation at Scale
  • 5. perfectomobile.com What Is Continuous Testing? Continuous testing is the process of executing automated high value tests as a part of the software delivery pipeline in order to obtain feedback on business risks associated with a software release upon every code change.
  • 6. perfecto.io6 | Perfecto by Perforce © 2020 Perforce Software, Inc. Measuring Continuous Testing Success 1. Average test case creation time Total test cases Total creation time 2. Test update/create ratio per sprint Test case updated New test created 3. Average test execution time Test case executed Total execution time 4. Test executed % Test executed Total test cases 5. False positive % False failure Total test cases 6. Tests blocked % Test blocked Total test cases 7. Average test case creation time • Environment & test data preparation • Test case maintenance, creation & execution 8. Code coverage % Lines of code executed Total lines of code 9. Requirements coverage % # of requrements Total requirements 10. Risk coverage % (frequency, damage) 11. Defect % Test case failed Total test cases executed 12. Defect leakage % Defects slipped Total defects 13. Defect rejection % Defects rejected Total defects found 14. Mean time to detect (MTTD) Defects found Total execution time 15. Product downtime % Product downtime Total run time 16. Exploratory testing hrs vs planned 17. Average exploratory session time # of sessions Total exploratory time 18. Average defects per session Defects found # of sessions 19. Defect distribution by • Priority • Severity • Functional area • Tester type • Cause (env, architecture, code, design, requirements, user entry) • Test type (review, walkthrough, test execution, exploratory, etc) x100 x100 x100 x100 x100 x100 x100 x100 20. Cost of hardware 21. Cost of software 22. Cost of maintenance (hardware, software) 23. Cost of test preparation 24. Cost of test execution 25. Average cost per tester Total tester cost # of testers 26. Cost of test maintenance over time 27. Cost of defect by • Severity • Stage found (dev, QA, UAT, production) S P E E D Q U A L I T Y C O S T
  • 7. Mature DevOps Organizations Are Aiming Higher Source: Dora, https://codeclimate.com/blog/state-of-devops-2019/
  • 9. perfecto.io World Quality Report 2019-2020 Maturing DevOps and Agile Actually Requires More Testing!
  • 10. perfecto.io10 | Perfecto by Perforce © 2020 Perforce Software, Inc. • Fast feedback • > Coverage of platforms • < Execution of time constraints The Need for Scale
  • 11. perfecto.io11 | Perfecto by Perforce © 2020 Perforce Software, Inc. • Scaling Methods — Build vs. Buy • DIY (aka Selenium Grid) • Containerized Computing • Cloud • Firefox is switching to a monthly release cycle. The Need for Scale – Web Testing W H A T ’ S Y O U R P R I M A R Y F O C U S ?
  • 13. perfecto.io13 | Perfecto by Perforce © 2020 Perforce Software, Inc. Mobile Capabilities in Web Browser (Incomplete) — Ramping Up CameraMic Device Authentication BT/BLE Notification Network
  • 14. perfecto.io14 | Perfecto by Perforce © 2020 Perforce Software, Inc. Mixing Technologies for Maximum Test Automation Coverage Selenium Headless (Puppeteer) Codeless (Perfecto, Selenium IDE) BDD
  • 15. perfecto.io15 | Perfecto by Perforce © 2020 Perforce Software, Inc. Codeless Open Source Cross-Browser Testing Market Is Highly Fragmented
  • 16. perfecto.io16 | Perfecto by Perforce © 2020 Perforce Software, Inc. Cross-Browser Testing Tools (Open-Source) — Download Trends Vary Protractor Puppeteer WebDriver IO Cypress IO Selenium WebDriver Source: npmtrends
  • 17. perfecto.io17 | Perfecto by Perforce © 2020 Perforce Software, Inc. Tools that... • Provide a testing structure (BDD/ATDD) (Mocha, Jasmine, Jest, Cucumber). • Provide assertion functions (Chai, Jasmine, Jest, Unexpected). • Generate, display, and watch test results (Mocha, Jasmine, Jest, Karma). • Generate code coverage reports (Istanbul, Jest, Blanket). • Provide a browser or browser-like environment with control of scenario execution, UI testing, and more (Protractor, Nightwatch, Phantom, Casper, Selenium, WebDriver.IO, TestCafe). • Provide mocks, spies, and stubs (Sinon, Jasmine, enzyme, Jest, testdouble). Additional Categorization of JavaScript Browser Testing Tools Source: Medium.com
  • 18. perfecto.io18 | Perfecto by Perforce © 2020 Perforce Software, Inc. Motivation • Receive fast feedback (unit and basic functional tests). • Easy environment setup, no IT dependencies. • Uses standard JS language. • Supported and promoted by browser vendors (Google, Mozilla). • Additional use cases to cover: • HAR file • Performance testing • Basic UI • Security Headless Browsers Role
  • 19. How to Scale Test Automation
  • 20. perfecto.io20 | Perfecto by Perforce © 2020 Perforce Software, Inc. How would you describe your test automation scaling strategy? • We add test scenarios based on data analysis. • We leverage cloud and containers to scale testing. • We divide automation scope all across the pipeline. • Scaling is not a priority yet — we are still stabilizing automation. • We scale by using real platforms, virtual platforms, and analyzing test data. Live Poll
  • 21. perfecto.io21 | Perfecto by Perforce © 2020 Perforce Software, Inc. Continuous Testing — Personas Involved Testing is led by three main personas. B U S I N E S S T E S T E R S D E T ( S O F T W A R E D E V E L O P E R I N T E S T I N G ) S O F T W A R E D E V E L O P E R Performs exploratory and structured manual testing. Creates functional and nonfunctional code-based test automation scripts (via Selenium, Appium, etc.). Creates unit and build acceptance tests.
  • 22. 22 | Advanced Codeless Testing for Web Apps perfecto.io Code-Based AutomationCodeless Automation
  • 23. perfecto.io High-Level Comparison Between Tools and Practices Test Framework Supported Dev Languages Supported Platforms Supported Test Frameworks Setup and Execution Integrations Breadth of Testing Options Maturity, Documentation, Support Required Skillset Cloud and Execution at Scale Selenium/Appium WebDriver Java, C#, Java Script, Python, Ruby, Objective- C Chrome, Safari, Firefox, Edge, IE/iOS/Andr oid Mocha JS, Jest, other super set on top of Selenium (Protractor, WebDriverIO, etc.) Download relevant driver, set up a grid, network and location impacts execution speed Plenty of integrations (CI, CD, reporting, visual testing, cloud vendors) End-to- end, security, unit, Robust community, multiple bindings, best practices Coding skills required (SDET Oriented) Perfecto fully supports Selenium and its WebDriver configurations. Local execution requires setting up a Selenium grid XCUITest/Espresso/ Headless/Cypress Objective C/Java/Jav a Script Chrome, Electron NA Embedded into IDEs, headless bundles a browser in the FW CI/CD UI/Unit Good documentation and code samples Dev Oriented Built-in Chrome/Firefox browsers in headless, Perfecto Cloud supports scaling Espresso/XCUITest Codeless Irrelevant, based on record and playback All Proprietary UI with underlying Selenium WebDriver APIs Mostly SaaS/browser plugin installation Limited Functional /UI Growing, limited No coding skills required (Business Tester Oriented) Perfecto supports codeless in the cloud BDD Java, Ruby, JS, Kotlin All Junit, Selenium, Appium Open source, Maven/Gradle /TestNG Plenty + APIs (e.g. Rest Assured) Functional Robust community, docs, adoption Step-definition development in code is required/scenarios are no-code (Mix of Business Tester and SDETs) Perfecto Quantum is a web/mobile BDD framework
  • 24. perfecto.io Scaling Generates Large Test Data – Important Strategy Item
  • 25. perfecto.io25 | Perfecto by Perforce © 2020 Perforce Software, Inc. Scaling Best Practices What to Test (Scenarios + Platforms)? Why These (Value)? When in the Cycle, How Often (CI/Outside)?
  • 26. perfecto.io26 | Perfecto by Perforce © 2020 Perforce Software, Inc. • Think continuous value. • Think maintenance and complexity to create, execute, monitor, and maintain (ROI). • Test reliability over time. Test Automation Certification If { (Test Scenario) == Candidate to add Value add { and x– It detect defects} { and – It passes across multiple platforms with consistent result} { and – Its execution time is < 5 minutes } Then { Include in Test Suite & & CI } Else { } Run such certifications once in every 2-3 software iterations.
  • 27. perfecto.io27 | Perfecto by Perforce © 2020 Perforce Software, Inc. Measuring Test Automation ROI Value Value of test automation •Cycle testing time per iteration •Test automation types (functional, non-functional, unit) •Error detection efficiencies •Product coverage (key business scenarios) Cross-Team Collaboration •3 personas sharing load (resource, smart utilization of platforms) •Manual testing % •Backlog of test automation between iterations (in-sprint automation) •Test debugging and analysis time per cycle Test Execution •Automation within CI success rate •Execution across platforms success rate •Test redundancy/duplication/waste •Coverage across environments (test, production)
  • 29. perfecto.io29 | Perfecto by Perforce © 2020 Perforce Software, Inc. • Testing the Boston Globe RWD site at scale with Selenium (Java) • Smart analytics with CI dashboard and cross-platform comparison • Technologies Used: • IntelliJ Idea • Selenium • TestNG/Maven • Perfecto Live Demo
  • 30. Perfecto’s Four Key Pillars for Continuous Testing
  • 31. perfecto.io31 | Perfecto by Perforce © 2020 Perforce Software, Inc. The 4 Key Pillars of Continuous Testing in DevOps This is where money is spent (Time, Tools, Resources) This is where value is being realized, quality is improved Unified solution serves DevOps with greater effectiveness.
  • 32. Thank You! Visit perfecto.io or follow us @perfectomobile