A Reinforcement Learning Approach for Automated Crawling and Testing of Android Apps

With the growing global popularity of Android apps, ensuring their quality and reliability has become increasingly important, as low-quality apps can lead to poor user experiences and potential business losses. A common approach to testing Android apps involves automatically generating event sequences that interact with the app’s graphical user interface (GUI) to detect crashes. To support this, we developed ACE (Android Crawler), a tool that systematically generates events to test Android apps by automatically exploring their GUIs. However, ACE’s original heuristic-driven exploration can be inefficient in complex application states. To address this, we extend ACE with a deep reinforcement learning-based crawling strategy, called Reinforcement Learning Strategy (RLS), which tightly integrates with ACE’s GUI exploration process by learning to intelligently select GUI components and interaction actions. RLS leverages the Proximal Policy Optimization (PPO) algorithm for stable and efficient learning and incorporates an action mask to filter invalid actions, thereby reducing training time. We evaluate RLS on 15 real-world Android apps and compare its performance against the original ACE and three state-of-the-art Android testing tools. Results show that RLS improves code coverage by an average of 2.1% over ACE’s Nearest unvisited event First Search (NFS) strategy and outperforms all three baseline tools in terms of code coverage. Paired t-test analyses further confirm that these improvements are statistically significant, demonstrating its effectiveness in enhancing automated Android GUI testing.

Authors

Institutions

Publication Details

Journal
Applied Sciences
Published
2026-01-21
DOI
https://doi.org/10.3390/app16021093
Primary Topic
Software Testing and Debugging Techniques
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Reinforcement Learning Approach for Automated Crawling and Testing of Android Apps

Chien-Hung Liu, Shu-Ling Chen, Kun-Cheng Chan
Applied Sciences
Software Testing and Debugging Techniques
article

A Reinforcement Learning Approach for Automated Crawling and Testing of Android Apps

Chien-Hung Liu, Shu-Ling Chen, Kun-Cheng Chan
article en

Abstract

With the growing global popularity of Android apps, ensuring their quality and reliability has become increasingly important, as low-quality apps can lead to poor user experiences and potential business losses. A common approach to testing Android apps involves automatically generating event sequences that interact with the app’s graphical user interface (GUI) to detect crashes. To support this, we developed ACE (Android Crawler), a tool that systematically generates events to test Android apps by automatically exploring their GUIs. However, ACE’s original heuristic-driven exploration can be inefficient in complex application states. To address this, we extend ACE with a deep reinforcement learning-based crawling strategy, called Reinforcement Learning Strategy (RLS), which tightly integrates with ACE’s GUI exploration process by learning to intelligently select GUI components and interaction actions. RLS leverages the Proximal Policy Optimization (PPO) algorithm for stable and efficient learning and incorporates an action mask to filter invalid actions, thereby reducing training time. We evaluate RLS on 15 real-world Android apps and compare its performance against the original ACE and three state-of-the-art Android testing tools. Results show that RLS improves code coverage by an average of 2.1% over ACE’s Nearest unvisited event First Search (NFS) strategy and outperforms all three baseline tools in terms of code coverage. Paired t-test analyses further confirm that these improvements are statistically significant, demonstrating its effectiveness in enhancing automated Android GUI testing.

Applied SciencesVol. 16(2)
National Taipei University of Technology (TW), Southern Taiwan University of Science and Technology (TW)
National Science and Technology Council
Openalex Percentile: Top 85%
Software Testing and Debugging Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

A Reinforcement Learning Approach for Automated Crawling and Testing of Android Apps — Chien-Hung Liu, Shu-Ling Chen, et al. · Applied Sciences (2026) | TGRS Research Map | TGRS