SlideShare a Scribd company logo
Automated Mobile UI Testing Fragility
An Exploratory Assessment Study on Android
Riccardo Coppola, Emanuele Raffero, Marco Torchiano
Politecnico di Torino, Dipartimento di Automatica e Informatica
Android UI Testing
Three ways of testing Android User
Interfaces:
• Manual tests;
• Automated Unit Tests;
• Automated Instrumented Tests.
Android UI Testing - Challenges
• Different configurations of display sizes, layouts, pixel
densities;
• Different input modalities;
• Dynamic swapping of applications;
• Fast evolution of the operative system, and therefore of
the app features.
Android UI Testing - Fragility
A GUI automated test is said to be fragile when:
• It fails when the application evolves;
• The failure is not due to the modification of the
functionalities under test, but to changes in the interface
arrangement and definition.
When a fragility occurs, extra effort is needed to:
• Verify that no regression has occurred;
• Modify the failing tests to adapt them to the changed UI.
Research questions
RQ1 How many tests have to be modified to adapt to
subsequent releases of the same app?
RQ2 Which are the intrinsic causes of the fragilities of UI
tests?
Selected Application
• Open-source project;
• 120k LOC;
• 336 releases;
• Stable graphic interface.
Testing Tools: Code-Based
Use of ids and
content to identify
UI elements.
Testing Tools: Image Recognition
Use of captures to
identify UI elements.
Test Suite
Successful Authentication
Send message
Reply to a message
Delete a message
Add user account
Delete user account
Delete account data
Restore account data
Export account settings
Import account settings
v2.102
v2.995
v3.309
v3.993
v4.804
v5.010
6 releases
10 features
Code-based test suites: Evolution
Test suite evolution
Tests
not failed
Image-recognition test suites: Evolution
Test suite evolution
Tests
not failed
Fragilities Classification
• Identifier Change;
• Text Change;
Fragilities Classification
• Deletion or Relocation;
• Physical Buttons use;
• Graphics Change;
• Activity Flow Change;
• Execution Time Variability.
Fragilities Classification
Fragilities Occurrence
Causes of fragilities in code-based failed test cases:
Cause v2.995 v3.993 v4.804
Text Change 0/2 2/2 3/6
Identifier Change 0/2 0/2 3/6
Deletion or Relocation 2/2 0/2 3/6
Physical Buttons use 0/2 0/2 3/6
Findings
RQ1 How many tests have to be modified to adapt to
subsequent releases of the same app?
Up to 75% of code-based test scripts, and up to
100% of image recognition test scripts, had to be
adapted.
Findings
RQ2 Which are the intrinsic causes of the fragilities of UI
tests?
Seven potential causes of fragility have been
characterized. All of them caused fragilities in the test
suite developed.
Future Work
• Test Fragility Characterization:
– Survey of existing tools;
– Frequency of tool adoption;
– How much and often tests are changed;
– Classification of fragility causes;
– Frequency of occurrence of specific causes.
Future Work
• Guidelines definition:
– Set of DOs and DONTs;
• Test Code Analysis;
• Test Code Refactoring:
– Set of refactoring recipes;
– Plug-in for an IDE.
Questions?
Thank You

More Related Content

PDF
Types of Software Testing | Edureka
PDF
Functional Testing vs Non-Functional Testing | Edureka
PPTX
Application Quality Best Practices with Visual Studio 2010 - Adrian Dunne
PDF
Functional Testing Tutorial | Edureka
PDF
Testing and qa services
PDF
Step by-step mobile testing approaches and strategies
PDF
What Is Functional Testing?
PPT
Stc 2015 regional-round-ppt-bdd along with ci
Types of Software Testing | Edureka
Functional Testing vs Non-Functional Testing | Edureka
Application Quality Best Practices with Visual Studio 2010 - Adrian Dunne
Functional Testing Tutorial | Edureka
Testing and qa services
Step by-step mobile testing approaches and strategies
What Is Functional Testing?
Stc 2015 regional-round-ppt-bdd along with ci

What's hot (19)

PDF
Automated Testing: An Edge Over Manual Software Testing
PPTX
Software Testing
PPTX
Software testing lifecycle
PDF
Testing in CI / CD Pipeline
PPTX
Software testing
PPTX
Apps Qualification for the NAO Store
PPTX
Testing web application
DOCX
Window Desktop Application Testing
PPTX
Web Application Testing
PPT
SynapseIndia mobile apps
PPTX
Software testing
PPT
Part5 - enforcing coding standard and best practices with jas forge v1.0
PPT
Stc 2015 regional-round-ppt-exlopratory mobile testing with risk analysis
PPTX
Overcoming Test Automation Obstacles
PPTX
Compatibility testing a must do of the web apps 2012
PPTX
Splitting The Check On Compliance and Security
PPT
Different types of tests performed in it environment management
PPTX
Automated Generation, Evolution and Maintenance: a perspective for mobile GUI...
Automated Testing: An Edge Over Manual Software Testing
Software Testing
Software testing lifecycle
Testing in CI / CD Pipeline
Software testing
Apps Qualification for the NAO Store
Testing web application
Window Desktop Application Testing
Web Application Testing
SynapseIndia mobile apps
Software testing
Part5 - enforcing coding standard and best practices with jas forge v1.0
Stc 2015 regional-round-ppt-exlopratory mobile testing with risk analysis
Overcoming Test Automation Obstacles
Compatibility testing a must do of the web apps 2012
Splitting The Check On Compliance and Security
Different types of tests performed in it environment management
Automated Generation, Evolution and Maintenance: a perspective for mobile GUI...
Ad

Similar to Automated Mobile UI Testing Fragility: An Exploratory Assessment Study on Android (20)

PDF
Fragility of Layout-based and Visual GUI test scripts: an assessment study on...
PDF
20170529 clem kazuaki_matsuo
PDF
Agile Mobile Testing Workshop
PDF
Top 4 Popular Android Test Automation Frameworks During an Economic Downturn.pdf
PDF
Automated Exploratory Testing
PDF
Continuous, Evolutionary and Large-Scale: A New Perspective for Automated Mob...
PDF
Android UI Testing with Espresso - How to Get Started.pdf
PPTX
Testing the UI of Mobile Applications
PDF
Automated GUI-Testing of Android Apps: From Research to Practice
PDF
Justin Ison
PPTX
Testing the User Interface - Coded UI Tests with Visual Studio 2010
PDF
Mobile Test Automation
PPTX
An overview of automated test suites and defect density in Android
PDF
Stop guessing, start testing – mobile testing done right - Timo Euteneuer
PDF
ICSE17Tech Briefing - Automated GUI Testing of Android Apps: From Research to...
PDF
Auto-completing Bug Reports for Android Applications
PDF
[webinar] Cutting-edge Functional UI Testing Techniques - w/ Adam Carmi
PPTX
Testing for Android: When, Where, and How to Successfully Use Test Automation
PDF
How to Make Your UI Tests Stable, Scalable, and Maintainable
PDF
UI (User Interface Testing) - A Complete Guide.pdf
Fragility of Layout-based and Visual GUI test scripts: an assessment study on...
20170529 clem kazuaki_matsuo
Agile Mobile Testing Workshop
Top 4 Popular Android Test Automation Frameworks During an Economic Downturn.pdf
Automated Exploratory Testing
Continuous, Evolutionary and Large-Scale: A New Perspective for Automated Mob...
Android UI Testing with Espresso - How to Get Started.pdf
Testing the UI of Mobile Applications
Automated GUI-Testing of Android Apps: From Research to Practice
Justin Ison
Testing the User Interface - Coded UI Tests with Visual Studio 2010
Mobile Test Automation
An overview of automated test suites and defect density in Android
Stop guessing, start testing – mobile testing done right - Timo Euteneuer
ICSE17Tech Briefing - Automated GUI Testing of Android Apps: From Research to...
Auto-completing Bug Reports for Android Applications
[webinar] Cutting-edge Functional UI Testing Techniques - w/ Adam Carmi
Testing for Android: When, Where, and How to Successfully Use Test Automation
How to Make Your UI Tests Stable, Scalable, and Maintainable
UI (User Interface Testing) - A Complete Guide.pdf
Ad

Recently uploaded (20)

PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Construction Project Organization Group 2.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Current and future trends in Computer Vision.pptx
PPTX
Sustainable Sites - Green Building Construction
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPT
Project quality management in manufacturing
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
UNIT-1 - COAL BASED THERMAL POWER PLANTS
CYBER-CRIMES AND SECURITY A guide to understanding
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Construction Project Organization Group 2.pptx
Model Code of Practice - Construction Work - 21102022 .pdf
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Automation-in-Manufacturing-Chapter-Introduction.pdf
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
additive manufacturing of ss316l using mig welding
Current and future trends in Computer Vision.pptx
Sustainable Sites - Green Building Construction
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Project quality management in manufacturing
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
Foundation to blockchain - A guide to Blockchain Tech
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk

Automated Mobile UI Testing Fragility: An Exploratory Assessment Study on Android

  • 1. Automated Mobile UI Testing Fragility An Exploratory Assessment Study on Android Riccardo Coppola, Emanuele Raffero, Marco Torchiano Politecnico di Torino, Dipartimento di Automatica e Informatica
  • 2. Android UI Testing Three ways of testing Android User Interfaces: • Manual tests; • Automated Unit Tests; • Automated Instrumented Tests.
  • 3. Android UI Testing - Challenges • Different configurations of display sizes, layouts, pixel densities; • Different input modalities; • Dynamic swapping of applications; • Fast evolution of the operative system, and therefore of the app features.
  • 4. Android UI Testing - Fragility A GUI automated test is said to be fragile when: • It fails when the application evolves; • The failure is not due to the modification of the functionalities under test, but to changes in the interface arrangement and definition. When a fragility occurs, extra effort is needed to: • Verify that no regression has occurred; • Modify the failing tests to adapt them to the changed UI.
  • 5. Research questions RQ1 How many tests have to be modified to adapt to subsequent releases of the same app? RQ2 Which are the intrinsic causes of the fragilities of UI tests?
  • 6. Selected Application • Open-source project; • 120k LOC; • 336 releases; • Stable graphic interface.
  • 7. Testing Tools: Code-Based Use of ids and content to identify UI elements.
  • 8. Testing Tools: Image Recognition Use of captures to identify UI elements.
  • 9. Test Suite Successful Authentication Send message Reply to a message Delete a message Add user account Delete user account Delete account data Restore account data Export account settings Import account settings v2.102 v2.995 v3.309 v3.993 v4.804 v5.010 6 releases 10 features
  • 10. Code-based test suites: Evolution Test suite evolution Tests not failed
  • 11. Image-recognition test suites: Evolution Test suite evolution Tests not failed
  • 12. Fragilities Classification • Identifier Change; • Text Change;
  • 13. Fragilities Classification • Deletion or Relocation; • Physical Buttons use;
  • 14. • Graphics Change; • Activity Flow Change; • Execution Time Variability. Fragilities Classification
  • 15. Fragilities Occurrence Causes of fragilities in code-based failed test cases: Cause v2.995 v3.993 v4.804 Text Change 0/2 2/2 3/6 Identifier Change 0/2 0/2 3/6 Deletion or Relocation 2/2 0/2 3/6 Physical Buttons use 0/2 0/2 3/6
  • 16. Findings RQ1 How many tests have to be modified to adapt to subsequent releases of the same app? Up to 75% of code-based test scripts, and up to 100% of image recognition test scripts, had to be adapted.
  • 17. Findings RQ2 Which are the intrinsic causes of the fragilities of UI tests? Seven potential causes of fragility have been characterized. All of them caused fragilities in the test suite developed.
  • 18. Future Work • Test Fragility Characterization: – Survey of existing tools; – Frequency of tool adoption; – How much and often tests are changed; – Classification of fragility causes; – Frequency of occurrence of specific causes.
  • 19. Future Work • Guidelines definition: – Set of DOs and DONTs; • Test Code Analysis; • Test Code Refactoring: – Set of refactoring recipes; – Plug-in for an IDE.