Breaking Waiting: Accelerating Android GUI Testing via Widget Readiness Analysis
Xinrui Li, Xin Yin, Chao Ni, Xiaohua Xin, Carolyn Sun, Jue Wang, Xiaohu Yang
Key points
From the paper's conclusion- TurboDroid combines: (1) static analysis to identify dependencies between methods and UI elements, (2) runtime monitoring to detect widget readiness based on these dependencies, and (3) a specialized event dispatching mechanism for partially rendered GUIs.
Abstract
Automated GUI testing for Android applications faces a challenge: determining when to execute test actions during interface rendering. Common approaches either use fixed delays between events or wait for complete GUI rendering, resulting in a trade-off between test reliability and efficiency. Fixed short waits cause flaky tests when elements are not ready, while conservative approaches waste testing time waiting for irrelevant widgets. To address this limitation, we present TurboDroid, a technique that detects widget-level readiness through method dependency analysis. TurboDroid identifies methods that affect widget rendering through static analysis, then monitors their execution alongside dynamic dependencies during testing. This enables a widget-specific “test-when-ready” approach that executes actions as soon as the target widget is determined to be ready. TurboDroid combines: (1) static analysis to identify dependencies between methods and UI elements, (2) runtime monitoring to detect widget readiness based on these dependencies, and (3) a specialized event dispatching mechanism for partially rendered GUIs. Experiments on real-world Android applications show that TurboDroid outperforms the evaluated state-of-the-art baselines. TurboDroid accelerates bug reproduction by 17.4% and detects 26 more crashes (83 vs. 57), while achieving higher activity coverage, greater code coverage, and broader GUI state exploration, with all improvements being statistically significant.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Characterizing and Repairing Obsolete Android GUI Tests under UI EvolutionProceedings of the ACM on Software Engineering · 2026
- GraphDroid: Asynchronous LLM-Based Mobile App GUI Testing via History-Aware Exploration and Hybrid Intent FulfillmentarXiv · 2026
- FuncDroid: Towards Inter-functional Flows for Comprehensive Mobile App GUI TestingProceedings of the ACM on Software Engineering · 2026
- VLM-Fuzz: Vision language model assisted recursive depth-first search exploration for effective GUI testing of android appsEmpirical Software Engineering · 2026
- How GUI Agents Fail: GraceBench for Execution Stability DiagnosisarXiv · 2026
- Coati: Host-Grounded Execution for Installable Mobile GUI AgentsarXiv · 2026