The Future of AI-Based Test Automation

Applitools
ApplitoolsMarketing Director em Applitools
1
The future of AI based E2E test
automation
Adam Carmi
CTO & Co-Founder @ Applitools
Sep 2023
AI Powered Testing & Monitoring
2
Agenda
• Why E2E testing?
• Challenges with automated E2E testing
• How can AI assist today?
• What role will AI play (in the very near) future?
• Q&A
4
E2E (UI based) test automation
• Verify the correctness of a system through its UI
• Simulating user interactions as input
• Asserting the output rendered in the UI
• Supported by dozens of tools and frameworks
• Selenium, Cypress, Playwright, WDIO, Appium, …
5
E2E testing is critically important!
6
What’s wrong with traditional
E2E test automation?
7
Example UI test: required login details
8
A traditional UI test
Need to write a lot of
code
Code will break when
the UI changes
9
When the UI changes…
10
Can’t catch unexpected visual bugs!
A visual bug
11
Can’t catch unexpected functional bugs!
A functional bug
12
Automated E2E testing challenges
• Thousands of tests required to cover a modern app
• Low coverage
• High maintenance overhead
• Skill set dependent
14
How can AI assist with E2E testing
today?
15
How can AI assist with E2E testing today?
• Replace your traditional assertions with visual validations
• Stabilize your builds with self-healing locators
16
Replace assertions with visual checkpoints
17
18
19
20
Visual checkpoints advantages
• Enhances existing tests and reduces
the amount of test code by up to 80%
• A single visual checkpoint for complete
visual and functional coverage
• Catches unexpected defects
• Does not break when the UI changes
• No coding skills required to maintain
validation logic
21
Ultrafast cross device and browser testing
✓ Innovative
✓ Fast
✓ Stable
✓ Secure
✓ Simple
22
Demo
E2E testing with Cypress and Applitools Eyes
23
AI can stabilize your builds with
self-healing locators
24
Element locators are the root of all evil
Element locators
break following
UI changes
25
Element locators breaking is the primary cause for delayed test feedback
and for high test maintenance overhead following UI changes
26
Self healing applies AI to find an element even if its locator is broken
using information learned from previous successful runs
27
How does self-healing work?
• Every time we find an element
• Capture hundreds of data points about the element
• All attributes, location in hierarchy, details of ancestor and neighbor elements
• Store data in a DB using the locator as key
• When we can’t locate an element using a given locator
• Retrieve information from the DB using the failed locator
• Use proprietary algorithms to find the element based on that information
• If successful, update the DB and suggest a new locator in our dashboard
• Return the found element
28
What can be healed?
• Self-healing can find an element even if simultaneously
• Element properties change (e.g., ID, class, tag name, custom, etc)
• Text changes (clickable text, input value, label, placeholder)
• DOM position changes (hierarchy, position in list)
• Size and location changes
• Adaptive
• Implicitly wait for elements
29
The huge benefits of self-healing
• Tests don’t crash and don’t delay feedback to developers
• Release faster and avoid dev context switching
• No need to fix broken locators following UI changes
• Although we report them and suggest how to fix them
• Save hours reviewing failed test reports and fixing broken locators
• Can double the efficiency of each team member
30
When is self healing useful?
• Avoid test failures and test maintenance following UI changes
• Poor locator authoring skills
• Apps with weak locators
• Apps with dynamically generated UI (dynamic ids)
31
Demo
Self healing locators with the Applitools Execution Cloud
32
How can AI assist with E2E testing today?
• Drastically increase test coverage
• Reduce the amount of test code to author and maintain
• Eliminate repetitive maintenance work
• Lower required skill set
• Improve build stability
• Shorten feedback loops and increase team velocity
33
What role will AI play in the
future?
34
Autonomous testing platforms
• Create an entire test suite for your app out of the box
• Automatic app exploration
• Automatic validations (regressions, benchmarks, generic test flows)
• Doesn’t have to provide 100% coverage to be valuable
• The more generic your app is, the better it will work
• Guide the AI where it needs help
• Training
• Test code
• Record interactions with the UI
• In plain English: “Click the link below the blue button at the bottom of the page”
35
How to evaluate an autonomous tool?
• What coverage are you getting?
• Discovery, validation, coverage changes
• Ongoing maintenance overhead
• How well will the tool adapt to application changes?
• How does the tool facilitate large scale test maintenance?
• What skills are required to operate the tool?
• Testing, coding, element locators, ML, Devops, etc.
• How easy is it to guide the AI where it needs help?
36
37
Demo
Prompt based test execution + ChatGPT
38
ChatGPT
Give me step by step instructions for ordering the Dune book in
amazon.com for Kindle using my default payment details. Include only
mandatory steps assuming I'm already logged in and in amazon.com.
Each step should consist of a single line and should start with an action
such as "click" or "type" and followed by a description of the target
element. include only interaction steps and skip validation steps.
Include only a single option in each step.
40
What role will testers play in the
future?
41
What role will human testers play?
• Testing will become more important than ever
• AI is not 100% accurate and so will the app code it will generate!
• Less skilled developers
• Much more (AI generated) code to test
• Human testers will need to
• Decide on the testing strategy and tools
• Guide and fine tune the AI
• Determine if a change is a bug or a feature
• Test everything the AI won’t be able to
42
Questions?
Adam Carmi (@carmiadam)
Co-Founder and CTO at Applitools
1 de 39

Recomendados

Introducing the Applitools Self Healing Execution Cloud.pdf por
Introducing the Applitools Self Healing Execution Cloud.pdfIntroducing the Applitools Self Healing Execution Cloud.pdf
Introducing the Applitools Self Healing Execution Cloud.pdfApplitools
101 visualizações30 slides
Digital Transformation, Testing and Automation por
Digital Transformation, Testing and AutomationDigital Transformation, Testing and Automation
Digital Transformation, Testing and AutomationTEST Huddle
1.6K visualizações41 slides
Testing Best Practices por
Testing Best PracticesTesting Best Practices
Testing Best PracticesAxway Appcelerator
3.1K visualizações27 slides
When & How to Successfully use Test Automation for Mobile Applications por
When & How to Successfully use Test Automation for Mobile ApplicationsWhen & How to Successfully use Test Automation for Mobile Applications
When & How to Successfully use Test Automation for Mobile ApplicationsTechnologyAssociationOregon
1.9K visualizações45 slides
Thomas Haver - Mobile Testing.pdf por
Thomas Haver - Mobile Testing.pdfThomas Haver - Mobile Testing.pdf
Thomas Haver - Mobile Testing.pdfQA or the Highway
2 visualizações34 slides

Mais conteúdo relacionado

Similar a The Future of AI-Based Test Automation

DBmaestro's State of the Database Continuous Delivery Survey- Findings Revealed por
DBmaestro's State of the Database Continuous Delivery Survey- Findings RevealedDBmaestro's State of the Database Continuous Delivery Survey- Findings Revealed
DBmaestro's State of the Database Continuous Delivery Survey- Findings RevealedDBmaestro - Database DevOps
441 visualizações57 slides
Embedded world 2017 por
Embedded world 2017Embedded world 2017
Embedded world 2017ChantalWauters
89 visualizações19 slides
Generating unit tests based on user logs por
Generating unit tests based on user logsGenerating unit tests based on user logs
Generating unit tests based on user logsRick Wicker
97 visualizações13 slides
A Beard, An App, A Blender por
A Beard, An App, A BlenderA Beard, An App, A Blender
A Beard, An App, A Blenderedm00se
2.5K visualizações44 slides
Reliable mobile test automation por
Reliable mobile test automationReliable mobile test automation
Reliable mobile test automationVishal Banthia
4.2K visualizações42 slides
Swiss Testing Day - Testautomation, 10 (sometimes painful) lessons learned por
Swiss Testing Day - Testautomation, 10 (sometimes painful) lessons learnedSwiss Testing Day - Testautomation, 10 (sometimes painful) lessons learned
Swiss Testing Day - Testautomation, 10 (sometimes painful) lessons learnedMichael Palotas
929 visualizações20 slides

Similar a The Future of AI-Based Test Automation(20)

DBmaestro's State of the Database Continuous Delivery Survey- Findings Revealed por DBmaestro - Database DevOps
DBmaestro's State of the Database Continuous Delivery Survey- Findings RevealedDBmaestro's State of the Database Continuous Delivery Survey- Findings Revealed
DBmaestro's State of the Database Continuous Delivery Survey- Findings Revealed
DBmaestro - Database DevOps441 visualizações
Embedded world 2017 por ChantalWauters
Embedded world 2017Embedded world 2017
Embedded world 2017
ChantalWauters89 visualizações
Generating unit tests based on user logs por Rick Wicker
Generating unit tests based on user logsGenerating unit tests based on user logs
Generating unit tests based on user logs
Rick Wicker97 visualizações
A Beard, An App, A Blender por edm00se
A Beard, An App, A BlenderA Beard, An App, A Blender
A Beard, An App, A Blender
edm00se2.5K visualizações
Reliable mobile test automation por Vishal Banthia
Reliable mobile test automationReliable mobile test automation
Reliable mobile test automation
Vishal Banthia4.2K visualizações
Swiss Testing Day - Testautomation, 10 (sometimes painful) lessons learned por Michael Palotas
Swiss Testing Day - Testautomation, 10 (sometimes painful) lessons learnedSwiss Testing Day - Testautomation, 10 (sometimes painful) lessons learned
Swiss Testing Day - Testautomation, 10 (sometimes painful) lessons learned
Michael Palotas929 visualizações
TLC2018 Thomas Haver: The Automation Firehose - Be Strategic and Tactical por Anna Royzman
TLC2018 Thomas Haver: The Automation Firehose - Be Strategic and TacticalTLC2018 Thomas Haver: The Automation Firehose - Be Strategic and Tactical
TLC2018 Thomas Haver: The Automation Firehose - Be Strategic and Tactical
Anna Royzman301 visualizações
Battle for Code Quality - A Story of One Java Project por GlobalLogic Ukraine
Battle for Code Quality - A Story of One Java ProjectBattle for Code Quality - A Story of One Java Project
Battle for Code Quality - A Story of One Java Project
GlobalLogic Ukraine3.1K visualizações
Avoiding test hell por Yun Ki Lee
Avoiding test hellAvoiding test hell
Avoiding test hell
Yun Ki Lee260 visualizações
AI improves software testing by Kari Kakkonen at TQS por Kari Kakkonen
AI improves software testing by Kari Kakkonen at TQSAI improves software testing by Kari Kakkonen at TQS
AI improves software testing by Kari Kakkonen at TQS
Kari Kakkonen217 visualizações
Capability Building for Cyber Defense: Software Walk through and Screening por Maven Logix
Capability Building for Cyber Defense: Software Walk through and Screening Capability Building for Cyber Defense: Software Walk through and Screening
Capability Building for Cyber Defense: Software Walk through and Screening
Maven Logix 95 visualizações
10 Lessons learned in test automation por Romania Testing
10 Lessons learned in test automation10 Lessons learned in test automation
10 Lessons learned in test automation
Romania Testing2.5K visualizações
Iasi code camp 20 april 2013 marian chicu - database unit tests in the sql se... por Codecamp Romania
Iasi code camp 20 april 2013 marian chicu - database unit tests in the sql se...Iasi code camp 20 april 2013 marian chicu - database unit tests in the sql se...
Iasi code camp 20 april 2013 marian chicu - database unit tests in the sql se...
Codecamp Romania801 visualizações
How to Embed Codeless Test Automation Into DevOps por Perfecto by Perforce
How to Embed Codeless Test Automation Into DevOpsHow to Embed Codeless Test Automation Into DevOps
How to Embed Codeless Test Automation Into DevOps
Perfecto by Perforce516 visualizações
Agile testing por Raj Indugula
Agile testingAgile testing
Agile testing
Raj Indugula2.7K visualizações
SauceCon 2017: Making Your Mobile App Automatable por Sauce Labs
SauceCon 2017: Making Your Mobile App AutomatableSauceCon 2017: Making Your Mobile App Automatable
SauceCon 2017: Making Your Mobile App Automatable
Sauce Labs181 visualizações
[QE 2018] Paul Gerrard – Automating Assurance: Tools, Collaboration and DevOps por Future Processing
[QE 2018] Paul Gerrard – Automating Assurance: Tools, Collaboration and DevOps[QE 2018] Paul Gerrard – Automating Assurance: Tools, Collaboration and DevOps
[QE 2018] Paul Gerrard – Automating Assurance: Tools, Collaboration and DevOps
Future Processing157 visualizações
Tools for Software Testing por Mohammed Moishin
Tools for Software TestingTools for Software Testing
Tools for Software Testing
Mohammed Moishin252 visualizações
Week 14 Unit Testing.pptx por mianshafa
Week 14  Unit Testing.pptxWeek 14  Unit Testing.pptx
Week 14 Unit Testing.pptx
mianshafa27 visualizações
Gartner Infrastructure and Operations Summit Berlin 2015 - DevOps Journey por Kelly Looney
Gartner Infrastructure and Operations Summit Berlin 2015 - DevOps JourneyGartner Infrastructure and Operations Summit Berlin 2015 - DevOps Journey
Gartner Infrastructure and Operations Summit Berlin 2015 - DevOps Journey
Kelly Looney614 visualizações

Mais de Applitools

Test Automation at Scale: Lessons from Top-Performing Distributed Teams por
Test Automation at Scale: Lessons from Top-Performing Distributed TeamsTest Automation at Scale: Lessons from Top-Performing Distributed Teams
Test Automation at Scale: Lessons from Top-Performing Distributed TeamsApplitools
12 visualizações6 slides
Triple Assurance: AI-Powered Test Automation in UI Design and Functionality por
Triple Assurance: AI-Powered Test Automation in UI Design and FunctionalityTriple Assurance: AI-Powered Test Automation in UI Design and Functionality
Triple Assurance: AI-Powered Test Automation in UI Design and FunctionalityApplitools
50 visualizações17 slides
Navigating the Challenges of Testing at Scale: Lessons from Top-Performing Teams por
Navigating the Challenges of Testing at Scale: Lessons from Top-Performing TeamsNavigating the Challenges of Testing at Scale: Lessons from Top-Performing Teams
Navigating the Challenges of Testing at Scale: Lessons from Top-Performing TeamsApplitools
31 visualizações4 slides
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap... por
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...Applitools
1.7K visualizações114 slides
Collaborating From Design To Experience: Introducing Centra por
Collaborating From Design To Experience: Introducing CentraCollaborating From Design To Experience: Introducing Centra
Collaborating From Design To Experience: Introducing CentraApplitools
352 visualizações20 slides
What the QA Position Will Look Like in the Future por
What the QA Position Will Look Like in the FutureWhat the QA Position Will Look Like in the Future
What the QA Position Will Look Like in the FutureApplitools
204 visualizações19 slides

Mais de Applitools(20)

Test Automation at Scale: Lessons from Top-Performing Distributed Teams por Applitools
Test Automation at Scale: Lessons from Top-Performing Distributed TeamsTest Automation at Scale: Lessons from Top-Performing Distributed Teams
Test Automation at Scale: Lessons from Top-Performing Distributed Teams
Applitools12 visualizações
Triple Assurance: AI-Powered Test Automation in UI Design and Functionality por Applitools
Triple Assurance: AI-Powered Test Automation in UI Design and FunctionalityTriple Assurance: AI-Powered Test Automation in UI Design and Functionality
Triple Assurance: AI-Powered Test Automation in UI Design and Functionality
Applitools50 visualizações
Navigating the Challenges of Testing at Scale: Lessons from Top-Performing Teams por Applitools
Navigating the Challenges of Testing at Scale: Lessons from Top-Performing TeamsNavigating the Challenges of Testing at Scale: Lessons from Top-Performing Teams
Navigating the Challenges of Testing at Scale: Lessons from Top-Performing Teams
Applitools31 visualizações
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap... por Applitools
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...
Applitools1.7K visualizações
Collaborating From Design To Experience: Introducing Centra por Applitools
Collaborating From Design To Experience: Introducing CentraCollaborating From Design To Experience: Introducing Centra
Collaborating From Design To Experience: Introducing Centra
Applitools352 visualizações
What the QA Position Will Look Like in the Future por Applitools
What the QA Position Will Look Like in the FutureWhat the QA Position Will Look Like in the Future
What the QA Position Will Look Like in the Future
Applitools204 visualizações
Getting Started with Visual Testing por Applitools
Getting Started with Visual TestingGetting Started with Visual Testing
Getting Started with Visual Testing
Applitools267 visualizações
Workshop: Head-to-Head Web Testing: Part 1 with Cypress por Applitools
Workshop: Head-to-Head Web Testing: Part 1 with CypressWorkshop: Head-to-Head Web Testing: Part 1 with Cypress
Workshop: Head-to-Head Web Testing: Part 1 with Cypress
Applitools669 visualizações
From Washing Cars To Automating Test Applications por Applitools
From Washing Cars To Automating Test ApplicationsFrom Washing Cars To Automating Test Applications
From Washing Cars To Automating Test Applications
Applitools69 visualizações
A Holistic Approach to Testing in Continuous Delivery por Applitools
A Holistic Approach to Testing in Continuous DeliveryA Holistic Approach to Testing in Continuous Delivery
A Holistic Approach to Testing in Continuous Delivery
Applitools262 visualizações
AI-Powered-Cross-Browser Testing por Applitools
AI-Powered-Cross-Browser TestingAI-Powered-Cross-Browser Testing
AI-Powered-Cross-Browser Testing
Applitools199 visualizações
Workshop: An Introduction to API Automation with Javascript por Applitools
Workshop: An Introduction to API Automation with JavascriptWorkshop: An Introduction to API Automation with Javascript
Workshop: An Introduction to API Automation with Javascript
Applitools241 visualizações
The Role of Automation in Mobile Continuous Testing por Applitools
The Role of Automation in Mobile Continuous TestingThe Role of Automation in Mobile Continuous Testing
The Role of Automation in Mobile Continuous Testing
Applitools154 visualizações
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present... por Applitools
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools55.5K visualizações
Future-Proofing Your Automation Pipeline por Applitools
Future-Proofing Your Automation PipelineFuture-Proofing Your Automation Pipeline
Future-Proofing Your Automation Pipeline
Applitools1.2K visualizações
How to Leverage AI to Enhance UI Testing por Applitools
How to Leverage AI to Enhance UI TestingHow to Leverage AI to Enhance UI Testing
How to Leverage AI to Enhance UI Testing
Applitools759 visualizações
Cypress, Playwright, Selenium, or WebdriverIO? Let the Engineers Speak! por Applitools
Cypress, Playwright, Selenium, or WebdriverIO? Let the Engineers Speak!Cypress, Playwright, Selenium, or WebdriverIO? Let the Engineers Speak!
Cypress, Playwright, Selenium, or WebdriverIO? Let the Engineers Speak!
Applitools4.9K visualizações
Ensuring Reliable Digital Experience - eCommerceTesting.pdf por Applitools
Ensuring Reliable Digital Experience - eCommerceTesting.pdfEnsuring Reliable Digital Experience - eCommerceTesting.pdf
Ensuring Reliable Digital Experience - eCommerceTesting.pdf
Applitools1.1K visualizações
Skills and Strategies for New Test Managers.pdf por Applitools
Skills and Strategies for New Test Managers.pdfSkills and Strategies for New Test Managers.pdf
Skills and Strategies for New Test Managers.pdf
Applitools1.5K visualizações
You, Me, and Accessibility: Empathy and Human-Centered Design Thinking por Applitools
You, Me, and Accessibility: Empathy and Human-Centered Design ThinkingYou, Me, and Accessibility: Empathy and Human-Centered Design Thinking
You, Me, and Accessibility: Empathy and Human-Centered Design Thinking
Applitools857 visualizações

Último

Dapr Unleashed: Accelerating Microservice Development por
Dapr Unleashed: Accelerating Microservice DevelopmentDapr Unleashed: Accelerating Microservice Development
Dapr Unleashed: Accelerating Microservice DevelopmentMiroslav Janeski
10 visualizações29 slides
Agile 101 por
Agile 101Agile 101
Agile 101John Valentino
9 visualizações20 slides
BushraDBR: An Automatic Approach to Retrieving Duplicate Bug Reports por
BushraDBR: An Automatic Approach to Retrieving Duplicate Bug ReportsBushraDBR: An Automatic Approach to Retrieving Duplicate Bug Reports
BushraDBR: An Automatic Approach to Retrieving Duplicate Bug ReportsRa'Fat Al-Msie'deen
8 visualizações49 slides
SUGCON ANZ Presentation V2.1 Final.pptx por
SUGCON ANZ Presentation V2.1 Final.pptxSUGCON ANZ Presentation V2.1 Final.pptx
SUGCON ANZ Presentation V2.1 Final.pptxJack Spektor
23 visualizações34 slides
Advanced API Mocking Techniques por
Advanced API Mocking TechniquesAdvanced API Mocking Techniques
Advanced API Mocking TechniquesDimpy Adhikary
19 visualizações11 slides
Programming Field por
Programming FieldProgramming Field
Programming Fieldthehardtechnology
5 visualizações9 slides

Último(20)

Dapr Unleashed: Accelerating Microservice Development por Miroslav Janeski
Dapr Unleashed: Accelerating Microservice DevelopmentDapr Unleashed: Accelerating Microservice Development
Dapr Unleashed: Accelerating Microservice Development
Miroslav Janeski10 visualizações
Agile 101 por John Valentino
Agile 101Agile 101
Agile 101
John Valentino9 visualizações
BushraDBR: An Automatic Approach to Retrieving Duplicate Bug Reports por Ra'Fat Al-Msie'deen
BushraDBR: An Automatic Approach to Retrieving Duplicate Bug ReportsBushraDBR: An Automatic Approach to Retrieving Duplicate Bug Reports
BushraDBR: An Automatic Approach to Retrieving Duplicate Bug Reports
Ra'Fat Al-Msie'deen8 visualizações
SUGCON ANZ Presentation V2.1 Final.pptx por Jack Spektor
SUGCON ANZ Presentation V2.1 Final.pptxSUGCON ANZ Presentation V2.1 Final.pptx
SUGCON ANZ Presentation V2.1 Final.pptx
Jack Spektor23 visualizações
Advanced API Mocking Techniques por Dimpy Adhikary
Advanced API Mocking TechniquesAdvanced API Mocking Techniques
Advanced API Mocking Techniques
Dimpy Adhikary19 visualizações
DSD-INT 2023 The Danube Hazardous Substances Model - Kovacs por Deltares
DSD-INT 2023 The Danube Hazardous Substances Model - KovacsDSD-INT 2023 The Danube Hazardous Substances Model - Kovacs
DSD-INT 2023 The Danube Hazardous Substances Model - Kovacs
Deltares10 visualizações
DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko... por Deltares
DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko...DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko...
DSD-INT 2023 Simulation of Coastal Hydrodynamics and Water Quality in Hong Ko...
Deltares14 visualizações
Navigating container technology for enhanced security by Niklas Saari por Metosin Oy
Navigating container technology for enhanced security by Niklas SaariNavigating container technology for enhanced security by Niklas Saari
Navigating container technology for enhanced security by Niklas Saari
Metosin Oy14 visualizações
Unmasking the Dark Art of Vectored Exception Handling: Bypassing XDR and EDR ... por Donato Onofri
Unmasking the Dark Art of Vectored Exception Handling: Bypassing XDR and EDR ...Unmasking the Dark Art of Vectored Exception Handling: Bypassing XDR and EDR ...
Unmasking the Dark Art of Vectored Exception Handling: Bypassing XDR and EDR ...
Donato Onofri860 visualizações
360 graden fabriek por info33492
360 graden fabriek360 graden fabriek
360 graden fabriek
info33492122 visualizações
.NET Developer Conference 2023 - .NET Microservices mit Dapr – zu viel Abstra... por Marc Müller
.NET Developer Conference 2023 - .NET Microservices mit Dapr – zu viel Abstra....NET Developer Conference 2023 - .NET Microservices mit Dapr – zu viel Abstra...
.NET Developer Conference 2023 - .NET Microservices mit Dapr – zu viel Abstra...
Marc Müller40 visualizações
Fleet Management Software in India por Fleetable
Fleet Management Software in India Fleet Management Software in India
Fleet Management Software in India
Fleetable11 visualizações
Keep por Geniusee
KeepKeep
Keep
Geniusee77 visualizações
Ports-and-Adapters Architecture for Embedded HMI por Burkhard Stubert
Ports-and-Adapters Architecture for Embedded HMIPorts-and-Adapters Architecture for Embedded HMI
Ports-and-Adapters Architecture for Embedded HMI
Burkhard Stubert21 visualizações
FIMA 2023 Neo4j & FS - Entity Resolution.pptx por Neo4j
FIMA 2023 Neo4j & FS - Entity Resolution.pptxFIMA 2023 Neo4j & FS - Entity Resolution.pptx
FIMA 2023 Neo4j & FS - Entity Resolution.pptx
Neo4j8 visualizações
tecnologia18.docx por nosi6702
tecnologia18.docxtecnologia18.docx
tecnologia18.docx
nosi67025 visualizações
MS PowerPoint.pptx por Litty Sylus
MS PowerPoint.pptxMS PowerPoint.pptx
MS PowerPoint.pptx
Litty Sylus5 visualizações
Unleash The Monkeys por Jacob Duijzer
Unleash The MonkeysUnleash The Monkeys
Unleash The Monkeys
Jacob Duijzer8 visualizações

The Future of AI-Based Test Automation

  • 1. 1 The future of AI based E2E test automation Adam Carmi CTO & Co-Founder @ Applitools Sep 2023 AI Powered Testing & Monitoring
  • 2. 2 Agenda • Why E2E testing? • Challenges with automated E2E testing • How can AI assist today? • What role will AI play (in the very near) future? • Q&A
  • 3. 4 E2E (UI based) test automation • Verify the correctness of a system through its UI • Simulating user interactions as input • Asserting the output rendered in the UI • Supported by dozens of tools and frameworks • Selenium, Cypress, Playwright, WDIO, Appium, …
  • 4. 5 E2E testing is critically important!
  • 5. 6 What’s wrong with traditional E2E test automation?
  • 6. 7 Example UI test: required login details
  • 7. 8 A traditional UI test Need to write a lot of code Code will break when the UI changes
  • 8. 9 When the UI changes…
  • 9. 10 Can’t catch unexpected visual bugs! A visual bug
  • 10. 11 Can’t catch unexpected functional bugs! A functional bug
  • 11. 12 Automated E2E testing challenges • Thousands of tests required to cover a modern app • Low coverage • High maintenance overhead • Skill set dependent
  • 12. 14 How can AI assist with E2E testing today?
  • 13. 15 How can AI assist with E2E testing today? • Replace your traditional assertions with visual validations • Stabilize your builds with self-healing locators
  • 14. 16 Replace assertions with visual checkpoints
  • 15. 17
  • 16. 18
  • 17. 19
  • 18. 20 Visual checkpoints advantages • Enhances existing tests and reduces the amount of test code by up to 80% • A single visual checkpoint for complete visual and functional coverage • Catches unexpected defects • Does not break when the UI changes • No coding skills required to maintain validation logic
  • 19. 21 Ultrafast cross device and browser testing ✓ Innovative ✓ Fast ✓ Stable ✓ Secure ✓ Simple
  • 20. 22 Demo E2E testing with Cypress and Applitools Eyes
  • 21. 23 AI can stabilize your builds with self-healing locators
  • 22. 24 Element locators are the root of all evil Element locators break following UI changes
  • 23. 25 Element locators breaking is the primary cause for delayed test feedback and for high test maintenance overhead following UI changes
  • 24. 26 Self healing applies AI to find an element even if its locator is broken using information learned from previous successful runs
  • 25. 27 How does self-healing work? • Every time we find an element • Capture hundreds of data points about the element • All attributes, location in hierarchy, details of ancestor and neighbor elements • Store data in a DB using the locator as key • When we can’t locate an element using a given locator • Retrieve information from the DB using the failed locator • Use proprietary algorithms to find the element based on that information • If successful, update the DB and suggest a new locator in our dashboard • Return the found element
  • 26. 28 What can be healed? • Self-healing can find an element even if simultaneously • Element properties change (e.g., ID, class, tag name, custom, etc) • Text changes (clickable text, input value, label, placeholder) • DOM position changes (hierarchy, position in list) • Size and location changes • Adaptive • Implicitly wait for elements
  • 27. 29 The huge benefits of self-healing • Tests don’t crash and don’t delay feedback to developers • Release faster and avoid dev context switching • No need to fix broken locators following UI changes • Although we report them and suggest how to fix them • Save hours reviewing failed test reports and fixing broken locators • Can double the efficiency of each team member
  • 28. 30 When is self healing useful? • Avoid test failures and test maintenance following UI changes • Poor locator authoring skills • Apps with weak locators • Apps with dynamically generated UI (dynamic ids)
  • 29. 31 Demo Self healing locators with the Applitools Execution Cloud
  • 30. 32 How can AI assist with E2E testing today? • Drastically increase test coverage • Reduce the amount of test code to author and maintain • Eliminate repetitive maintenance work • Lower required skill set • Improve build stability • Shorten feedback loops and increase team velocity
  • 31. 33 What role will AI play in the future?
  • 32. 34 Autonomous testing platforms • Create an entire test suite for your app out of the box • Automatic app exploration • Automatic validations (regressions, benchmarks, generic test flows) • Doesn’t have to provide 100% coverage to be valuable • The more generic your app is, the better it will work • Guide the AI where it needs help • Training • Test code • Record interactions with the UI • In plain English: “Click the link below the blue button at the bottom of the page”
  • 33. 35 How to evaluate an autonomous tool? • What coverage are you getting? • Discovery, validation, coverage changes • Ongoing maintenance overhead • How well will the tool adapt to application changes? • How does the tool facilitate large scale test maintenance? • What skills are required to operate the tool? • Testing, coding, element locators, ML, Devops, etc. • How easy is it to guide the AI where it needs help?
  • 34. 36
  • 35. 37 Demo Prompt based test execution + ChatGPT
  • 36. 38 ChatGPT Give me step by step instructions for ordering the Dune book in amazon.com for Kindle using my default payment details. Include only mandatory steps assuming I'm already logged in and in amazon.com. Each step should consist of a single line and should start with an action such as "click" or "type" and followed by a description of the target element. include only interaction steps and skip validation steps. Include only a single option in each step.
  • 37. 40 What role will testers play in the future?
  • 38. 41 What role will human testers play? • Testing will become more important than ever • AI is not 100% accurate and so will the app code it will generate! • Less skilled developers • Much more (AI generated) code to test • Human testers will need to • Decide on the testing strategy and tools • Guide and fine tune the AI • Determine if a change is a bug or a feature • Test everything the AI won’t be able to