SlideShare ist ein Scribd-Unternehmen logo
1 von 33
Downloaden Sie, um offline zu lesen
1 | How to Select the Right Selenium Tools to Boost Your Test Automation perfecto.io
Mastering Cross-Browser Test Automation
With Cypress and Selenium
z
About Me:
Eran Kinsbruner
• Chief Evangelist and author at Perfecto
• Blogger and speaker
• 20+ 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
Cross-Browser Testing Landscape Overview (Functional and NFT)
Introduction to the Cypress vs. Selenium
4 Testing Visibility Role
5 Live Demo and Q&A
Tool Comparison and Considerations
4 | How to Guarantee Continuous Value from your Test Automation perfecto.io
Cross Browser Testing Tools Landscape
perfecto.io5 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Mobile Capabilities in Web Browser (Incomplete) — Ramping Up
CameraMic
Device Authentication
BT/BLE
Notification Network
perfecto.io6 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Cross-Browser Testing Market Is Highly Fragmented
Codeless
Open
Source
perfecto.io7 | 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.io8 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Additional Categorization of JavaScript Browser Testing Tools
• 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).
Source: Medium.com
perfecto.io9 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Motivation
• Receive fast feedback (unit and basic functional tests)
— mostly dev.
• 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
perfecto.io10 | Perfecto by Perforce © 2020 Perforce Software, Inc.
z
Headless Browsers Role
perfecto.io11 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Web Market Testing – Selection Criteria
Automation
Coverage
Visual navigation testing
Take screenshots
Network monitoring, HAR
file
Memory & performance
profiling
Code coverage analysis
Testing types
SDLC
Process Fit
Plugins/integrations
BDD/ATDD friendly
Dev language support
Automation
Robustness &
Maintainability
Config file generation
Page object model creation
Execution speed
Sync
Feedback Loop
& Reporting
Reporters
Community Strength
Documentation
Contributors
Cloud & Automation
at Scale
Cloud Support
perfecto.io12 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Pipeline Testing Coverage Example
Spotlight – Cypress & Selenium
perfecto.io14 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Market Adoption — Cypress
perfecto.io15 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Cypress Overview
perfecto.io16 | Perfecto by Perforce © 2020 Perforce Software, Inc.
z
Cypress Overview –
Why It’s Dev Friendly
Fast, open source, & works
on any front-end
framework
Uses JavaScript – Matches
both SDTEs and devs
Time travel, real time reload,
run in CI
Documentation and ease of
use
perfecto.io17 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Front-End Developer Friendly Testing
perfecto.io18 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Cypress Execution Overview
Run From UI Run in the Cloud — Perfecto Run From CLI
perfecto.io19 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Cypress Dashboard and Parallel Testing
perfecto.io20 | Perfecto by Perforce © 2020 Perforce Software, Inc.
• Standard W3C implementation for all WebDriver browsers
Selenium 4 Highlights
perfecto.io21 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Selenium 4 Highlights — Continued
Blocking specific types
from being loaded — like
styles and images
• Relative locators • Interacting with Chrome
Debugging Protocol
support (CDP)
perfecto.io22 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Cypress vs. Selenium
Selenium has its own IDE, new features like relative locators, and more
23 | How to Guarantee Continuous Value from your Test Automation perfecto.io
The End vs. the Or Approach
High-Level Comparison Between Tools and Practices
Test
Framework
Supported
Dev
Languages
Supported
Browsers
Supported Test
Frameworks
Setup and
Execution
Integrations Breadth of
Testing
Options
Maturity,
Documentation,
Support
Required Skillset Cloud and Execution at
Scale
Selenium
WebDriver
Java, C#, Java
Script,
Python,
Ruby,
Objective-C
Chrome,
Safari,
Firefox, Edge,
IE
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 Perfecto fully supports
Selenium and its
WebDriver
configurations. Local
execution requires
setting up a Selenium
grid
Cypress.io JavaScript Chrome,
Electron
Mocha JS Comes with
bundled
chrome
browser, no
complex
environment
setup
Limited
integrations
End-to-
end
Good documentation
and code sample,
growing community
Coding skills required Built-in Chrome
browser, limited
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
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
Perfecto Quantum is a
web/mobile BDD
framework
25 | How to Guarantee Continuous Value from your Test Automation perfecto.io
Test Data Visibility Role
perfecto.io26 | Perfecto by Perforce © 2020 Perforce Software, Inc.
The Power of Test Data Analysis
Ask yourself:
1. Is there a long history of
failures:
A. Test flakiness
B. Exclude and debug
2. Are we following script
development practices to
avoid:
A. Popup/security issues
B. Element not found
C. Platform-specific issues
3. Do the tests bring any new
value?
4. Platform/CI health?
perfecto.io27 | Perfecto by Perforce © 2020 Perforce Software, Inc.
Collaborative Approach — Codeless & Code-Based
perfecto.io28 | Perfecto by Perforce © 2020 Perforce Software, Inc.
LIVE DEMO
• Selenium BDD across platforms running in parallel
• Cypress framework
L I V E D E M O
29 | Getting Ready for iOS 13 Testing perfecto.io
Perfecto’s Four Key Pillars for Continuous Testing
perfecto.io30 | Perfecto by Perforce © 2020 Perforce Software, Inc.
The Four Key Pillars of Continuous Testing in DevOps
ANALYSISCREATION EXECUTION LAB
Unified solution serves DevOps with greater efficiency.
Lab for continuous testing
• Backbone for all testing
activities
• Hosting of devices,
management, & logistics
• Availability & scaling
• Supporting functions
Test execution within the
pipeline
• Scale
• Orchestration
• Frameworks
Test creation and
maintenance
• Authoring tool
• Validations
Test analysis
• Fast feedback
• Root cause analysis
Perfecto’s Smart Continuous Testing Solution
Smart Execution
Fast and parallel test execution with
multi-team orchestration abilities and
management.
Smart Analytics
"Single pane of glass" provides
visibility and scales to support
millions of test results.
Smart Creation
Automation creation that matches your
team’s skillset (Appium, Espresso,
XCUITest, Quantum BDD, Codeless).
Smart Lab
Always on and stable. Always up
to date. Supports all mobile OS
and platforms.
The Perfecto
human factor
increases your
chances to succeed.
Black Belt
Testing Experts
Training
Dedicated
Success Manager
24/7 VIP
Support
perfecto.io32 | Perfecto by Perforce © 2020 Perforce Software, Inc.
33 | Getting Ready for iOS 13 Testing perfecto.io
Thank You
Visit perfecto.io or follow us @perfectomobile

Weitere ähnliche Inhalte

Was ist angesagt?

Software Engineer in Test at DeNA
Software Engineer in Test at DeNASoftware Engineer in Test at DeNA
Software Engineer in Test at DeNA
Masaki Nakagawa
 

Was ist angesagt? (20)

Compatibility Testing of Your Web Apps - Tips and Tricks for Debugging Locall...
Compatibility Testing of Your Web Apps - Tips and Tricks for Debugging Locall...Compatibility Testing of Your Web Apps - Tips and Tricks for Debugging Locall...
Compatibility Testing of Your Web Apps - Tips and Tricks for Debugging Locall...
 
Coding Safe Modern C++ With AUTOSAR Guidelines
Coding Safe Modern C++ With AUTOSAR GuidelinesCoding Safe Modern C++ With AUTOSAR Guidelines
Coding Safe Modern C++ With AUTOSAR Guidelines
 
DevOps Testing | Continuous Testing In DevOps | DevOps Tutorial | DevOps Trai...
DevOps Testing | Continuous Testing In DevOps | DevOps Tutorial | DevOps Trai...DevOps Testing | Continuous Testing In DevOps | DevOps Tutorial | DevOps Trai...
DevOps Testing | Continuous Testing In DevOps | DevOps Tutorial | DevOps Trai...
 
How to Do Code Reviews at Massive Scale For DevOps
How to Do Code Reviews at Massive Scale For DevOpsHow to Do Code Reviews at Massive Scale For DevOps
How to Do Code Reviews at Massive Scale For DevOps
 
Four Keys to Efficient DevOps
Four Keys to Efficient DevOpsFour Keys to Efficient DevOps
Four Keys to Efficient DevOps
 
Software Engineer in Test at DeNA
Software Engineer in Test at DeNASoftware Engineer in Test at DeNA
Software Engineer in Test at DeNA
 
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...
 
Mobile UI Testing using Appium and Docker
Mobile UI Testing using Appium and DockerMobile UI Testing using Appium and Docker
Mobile UI Testing using Appium and Docker
 
Tales from the Dark Side: Ori Bendet Selenium Conference India 2016
Tales from the Dark Side: Ori Bendet Selenium Conference India 2016Tales from the Dark Side: Ori Bendet Selenium Conference India 2016
Tales from the Dark Side: Ori Bendet Selenium Conference India 2016
 
Continuous testing
Continuous testing Continuous testing
Continuous testing
 
Mobile performance metrics and performance monitoring meetup 2017 05 10
Mobile performance metrics and performance monitoring meetup 2017 05 10Mobile performance metrics and performance monitoring meetup 2017 05 10
Mobile performance metrics and performance monitoring meetup 2017 05 10
 
Testing in DevOps world
Testing in DevOps worldTesting in DevOps world
Testing in DevOps world
 
Mobile Apps development best practices. TDD, CI, CD
Mobile Apps development best practices. TDD, CI, CDMobile Apps development best practices. TDD, CI, CD
Mobile Apps development best practices. TDD, CI, CD
 
Building Security in Using CI
Building Security in Using CIBuilding Security in Using CI
Building Security in Using CI
 
Continuous testing webinar 041017 slideshare
Continuous testing webinar 041017 slideshareContinuous testing webinar 041017 slideshare
Continuous testing webinar 041017 slideshare
 
10 Things You Might Not Know: Continuous Integration
10 Things You Might Not Know: Continuous Integration10 Things You Might Not Know: Continuous Integration
10 Things You Might Not Know: Continuous Integration
 
10 Emerging Test Frameworks for Cross Browser Testing
10 Emerging Test Frameworks for Cross Browser Testing10 Emerging Test Frameworks for Cross Browser Testing
10 Emerging Test Frameworks for Cross Browser Testing
 
Continuous Integration
Continuous IntegrationContinuous Integration
Continuous Integration
 
Top 5 Automation Challenges Webinar
Top 5 Automation Challenges WebinarTop 5 Automation Challenges Webinar
Top 5 Automation Challenges Webinar
 
Automate More with Selenium for your RWD
Automate More with Selenium for your RWDAutomate More with Selenium for your RWD
Automate More with Selenium for your RWD
 

Ähnlich wie Mastering Cross-Browser Test Automation With Cypress and Selenium

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
 
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
 
Встреча "QA: в каких направлениях может найти себя тестировщик?"
Встреча "QA: в каких направлениях может найти себя тестировщик?"Встреча "QA: в каких направлениях может найти себя тестировщик?"
Встреча "QA: в каких направлениях может найти себя тестировщик?"
GoIT
 

Ähnlich wie Mastering Cross-Browser Test Automation With Cypress and Selenium (20)

Keeping Your Continuous Test Automation Suites Continuously Valuable in DevOps
Keeping Your Continuous Test Automation Suites Continuously Valuable in DevOpsKeeping Your Continuous Test Automation Suites Continuously Valuable in DevOps
Keeping Your Continuous Test Automation Suites Continuously Valuable in DevOps
 
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
 
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
 
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
 
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
 
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
 
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
 
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
 
Tools for Software Testing
Tools for Software TestingTools for Software Testing
Tools for Software Testing
 
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
 
Perforce on Tour 2015 - Optimising the Developer Pipeline: Deliver Faster & ...
Perforce on Tour 2015 -  Optimising the Developer Pipeline: Deliver Faster & ...Perforce on Tour 2015 -  Optimising the Developer Pipeline: Deliver Faster & ...
Perforce on Tour 2015 - Optimising the Developer Pipeline: Deliver Faster & ...
 
Webinar: Automate Your Environment Provisioning for Mobile App Development
Webinar: Automate Your Environment Provisioning for Mobile App Development Webinar: Automate Your Environment Provisioning for Mobile App Development
Webinar: Automate Your Environment Provisioning for Mobile App Development
 
5 Best Automation Testing Tools to Speed up Testing.pdf
5 Best Automation Testing Tools to Speed up Testing.pdf5 Best Automation Testing Tools to Speed up Testing.pdf
5 Best Automation Testing Tools to Speed up Testing.pdf
 
Sampat Kumar Ch
Sampat Kumar ChSampat Kumar Ch
Sampat Kumar Ch
 
Mobile Monitoring Best Practices
Mobile Monitoring Best PracticesMobile Monitoring Best Practices
Mobile Monitoring Best Practices
 
Встреча "QA: в каких направлениях может найти себя тестировщик?"
Встреча "QA: в каких направлениях может найти себя тестировщик?"Встреча "QA: в каких направлениях может найти себя тестировщик?"
Встреча "QA: в каких направлениях может найти себя тестировщик?"
 
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
 
Continuous Delivery with a PaaS Application
Continuous Delivery with a PaaS ApplicationContinuous Delivery with a PaaS Application
Continuous Delivery with a PaaS Application
 

Mehr von Perfecto by Perforce

Mehr von Perfecto by Perforce (16)

Cloud Testing Has Never Been Easier or More Accessible
Cloud Testing Has Never Been Easier or More AccessibleCloud Testing Has Never Been Easier or More Accessible
Cloud Testing Has Never Been Easier or More Accessible
 
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...
 
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
 
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
 
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
 

Kürzlich hochgeladen

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Kürzlich hochgeladen (20)

Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
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
 
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...
 
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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
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...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
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...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
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
 
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
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 

Mastering Cross-Browser Test Automation With Cypress and Selenium

  • 1. 1 | How to Select the Right Selenium Tools to Boost Your Test Automation perfecto.io Mastering Cross-Browser Test Automation With Cypress and Selenium
  • 2. z About Me: Eran Kinsbruner • Chief Evangelist and author at Perfecto • Blogger and speaker • 20+ 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 Cross-Browser Testing Landscape Overview (Functional and NFT) Introduction to the Cypress vs. Selenium 4 Testing Visibility Role 5 Live Demo and Q&A Tool Comparison and Considerations
  • 4. 4 | How to Guarantee Continuous Value from your Test Automation perfecto.io Cross Browser Testing Tools Landscape
  • 5. perfecto.io5 | Perfecto by Perforce © 2020 Perforce Software, Inc. Mobile Capabilities in Web Browser (Incomplete) — Ramping Up CameraMic Device Authentication BT/BLE Notification Network
  • 6. perfecto.io6 | Perfecto by Perforce © 2020 Perforce Software, Inc. Cross-Browser Testing Market Is Highly Fragmented Codeless Open Source
  • 7. perfecto.io7 | 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
  • 8. perfecto.io8 | Perfecto by Perforce © 2020 Perforce Software, Inc. Additional Categorization of JavaScript Browser Testing Tools • 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). Source: Medium.com
  • 9. perfecto.io9 | Perfecto by Perforce © 2020 Perforce Software, Inc. Motivation • Receive fast feedback (unit and basic functional tests) — mostly dev. • 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
  • 10. perfecto.io10 | Perfecto by Perforce © 2020 Perforce Software, Inc. z Headless Browsers Role
  • 11. perfecto.io11 | Perfecto by Perforce © 2020 Perforce Software, Inc. Web Market Testing – Selection Criteria Automation Coverage Visual navigation testing Take screenshots Network monitoring, HAR file Memory & performance profiling Code coverage analysis Testing types SDLC Process Fit Plugins/integrations BDD/ATDD friendly Dev language support Automation Robustness & Maintainability Config file generation Page object model creation Execution speed Sync Feedback Loop & Reporting Reporters Community Strength Documentation Contributors Cloud & Automation at Scale Cloud Support
  • 12. perfecto.io12 | Perfecto by Perforce © 2020 Perforce Software, Inc. Pipeline Testing Coverage Example
  • 13. Spotlight – Cypress & Selenium
  • 14. perfecto.io14 | Perfecto by Perforce © 2020 Perforce Software, Inc. Market Adoption — Cypress
  • 15. perfecto.io15 | Perfecto by Perforce © 2020 Perforce Software, Inc. Cypress Overview
  • 16. perfecto.io16 | Perfecto by Perforce © 2020 Perforce Software, Inc. z Cypress Overview – Why It’s Dev Friendly Fast, open source, & works on any front-end framework Uses JavaScript – Matches both SDTEs and devs Time travel, real time reload, run in CI Documentation and ease of use
  • 17. perfecto.io17 | Perfecto by Perforce © 2020 Perforce Software, Inc. Front-End Developer Friendly Testing
  • 18. perfecto.io18 | Perfecto by Perforce © 2020 Perforce Software, Inc. Cypress Execution Overview Run From UI Run in the Cloud — Perfecto Run From CLI
  • 19. perfecto.io19 | Perfecto by Perforce © 2020 Perforce Software, Inc. Cypress Dashboard and Parallel Testing
  • 20. perfecto.io20 | Perfecto by Perforce © 2020 Perforce Software, Inc. • Standard W3C implementation for all WebDriver browsers Selenium 4 Highlights
  • 21. perfecto.io21 | Perfecto by Perforce © 2020 Perforce Software, Inc. Selenium 4 Highlights — Continued Blocking specific types from being loaded — like styles and images • Relative locators • Interacting with Chrome Debugging Protocol support (CDP)
  • 22. perfecto.io22 | Perfecto by Perforce © 2020 Perforce Software, Inc. Cypress vs. Selenium Selenium has its own IDE, new features like relative locators, and more
  • 23. 23 | How to Guarantee Continuous Value from your Test Automation perfecto.io The End vs. the Or Approach
  • 24. High-Level Comparison Between Tools and Practices Test Framework Supported Dev Languages Supported Browsers Supported Test Frameworks Setup and Execution Integrations Breadth of Testing Options Maturity, Documentation, Support Required Skillset Cloud and Execution at Scale Selenium WebDriver Java, C#, Java Script, Python, Ruby, Objective-C Chrome, Safari, Firefox, Edge, IE 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 Perfecto fully supports Selenium and its WebDriver configurations. Local execution requires setting up a Selenium grid Cypress.io JavaScript Chrome, Electron Mocha JS Comes with bundled chrome browser, no complex environment setup Limited integrations End-to- end Good documentation and code sample, growing community Coding skills required Built-in Chrome browser, limited 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 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 Perfecto Quantum is a web/mobile BDD framework
  • 25. 25 | How to Guarantee Continuous Value from your Test Automation perfecto.io Test Data Visibility Role
  • 26. perfecto.io26 | Perfecto by Perforce © 2020 Perforce Software, Inc. The Power of Test Data Analysis Ask yourself: 1. Is there a long history of failures: A. Test flakiness B. Exclude and debug 2. Are we following script development practices to avoid: A. Popup/security issues B. Element not found C. Platform-specific issues 3. Do the tests bring any new value? 4. Platform/CI health?
  • 27. perfecto.io27 | Perfecto by Perforce © 2020 Perforce Software, Inc. Collaborative Approach — Codeless & Code-Based
  • 28. perfecto.io28 | Perfecto by Perforce © 2020 Perforce Software, Inc. LIVE DEMO • Selenium BDD across platforms running in parallel • Cypress framework L I V E D E M O
  • 29. 29 | Getting Ready for iOS 13 Testing perfecto.io Perfecto’s Four Key Pillars for Continuous Testing
  • 30. perfecto.io30 | Perfecto by Perforce © 2020 Perforce Software, Inc. The Four Key Pillars of Continuous Testing in DevOps ANALYSISCREATION EXECUTION LAB Unified solution serves DevOps with greater efficiency. Lab for continuous testing • Backbone for all testing activities • Hosting of devices, management, & logistics • Availability & scaling • Supporting functions Test execution within the pipeline • Scale • Orchestration • Frameworks Test creation and maintenance • Authoring tool • Validations Test analysis • Fast feedback • Root cause analysis
  • 31. Perfecto’s Smart Continuous Testing Solution Smart Execution Fast and parallel test execution with multi-team orchestration abilities and management. Smart Analytics "Single pane of glass" provides visibility and scales to support millions of test results. Smart Creation Automation creation that matches your team’s skillset (Appium, Espresso, XCUITest, Quantum BDD, Codeless). Smart Lab Always on and stable. Always up to date. Supports all mobile OS and platforms. The Perfecto human factor increases your chances to succeed. Black Belt Testing Experts Training Dedicated Success Manager 24/7 VIP Support
  • 32. perfecto.io32 | Perfecto by Perforce © 2020 Perforce Software, Inc.
  • 33. 33 | Getting Ready for iOS 13 Testing perfecto.io Thank You Visit perfecto.io or follow us @perfectomobile