An infrastructure approach to improving effectiveness of Android UI testing tools
Wenyu Wang, Wing Lam, Tao Xie
摘要
Due to the importance of Android app quality assurance, many Android UI testing tools have been developed by researchers over the years. However, recent studies show that these tools typically achieve low code coverage on popular industrial apps. In fact, given a reasonable amount of run time, most state-of-the-art tools cannot even outperform a simple tool, Monkey, on popular industrial apps with large codebases and sophisticated functionalities. Our motivating study finds that these tools perform two types of operations, UI Hierarchy Capturing (capturing information about the contents on the screen) and UI Event Execution (executing UI events, such as clicks), often inefficiently using UIAutomator, a component of the Android framework. In total, these two types of operations use on average 70% of the given test time. Based on this finding, to improve the effectiveness of Android testing tools, we propose Toller, a tool consisting of infrastructure enhancements to the Android operating system. Toller injects itself into the same virtual machine as the app under test, giving Toller direct access to the app's runtime memory. Toller is thus able to directly (1) access UI data structures, and thus capture contents on the screen without the overhead of invoking the Android framework services or remote procedure calls (RPCs), and (2) invoke UI event handlers without needing to execute the UI events. Compared with the often-used UIAutomator, Toller reduces average time usage of UI Hierarchy Capturing and UI Event Execution operations by up to 97% and 95%, respectively. We integrate Toller with existing state-of-the-art/practice Android UI testing tools and achieve the range of 11.8% to 70.1% relative code coverage improvement on average. We also find that Toller-enhanced tools are able to trigger 1.4x to 3.6x distinct crashes compared with their original versions without Toller enhancement. These improvements are so substantial that they also change the relative competitiveness of the tools under empirical comparison. Our findings highlight the practicality of Toller as well as raising the community awareness of infrastructure support's significance beyond the community's existing heavy focus on algorithms.
问问这篇 Paper
智能体会读完全文。
Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。
引用它的顶会 Paper12
- Fill in the Blank: Context-aware Automated Text Input Generation for Mobile GUI TestingZhe Liu, Chunyang Chen, Junjie Wang, Xing Che 等ICSE 2023 · 被引用 107 次
- Make LLM a Testing Expert: Bringing Human-like Interaction to Mobile GUI Testing via Functionality-aware DecisionsZhe Liu, Chunyang Chen, Junjie Wang, Mengzhuo Chen 等ICSE 2024 · 被引用 81 次
- Vet: identifying and avoiding UI exploration tarpitsWenyu Wang, Wei Yang, Tianyin Xu, Tao XieFSE 2021 · 被引用 35 次
- Detecting non-crashing functional bugs in Android apps via deep-state differential analysisJue Wang, Yanyan Jiang, Ting Su, Shaohua Li 等FSE 2022 · 被引用 26 次
- Efficiency Matters: Speeding Up Automated Testing with GUI Rendering InferenceSidong Feng, Mulong Xie, Chunyang ChenICSE 2023 · 被引用 23 次
它引用的顶会 Paper1
相关 Paper
- TaOPT: Tool-Agnostic Optimization of Parallelized Automated Mobile UI TestingDezhi Ran, Zihe Song, Wenyu Wang, Wei Yang 等ASPLOS 2025 · 被引用 2 次
- Badge: Prioritizing UI Events with Hierarchical Multi-Armed Bandits for Automated UI TestingDezhi Ran, Hao Wang, Wenyu Wang, Tao XieICSE 2023 · 被引用 9 次
- Automata-Based Trace Analysis for Aiding Diagnosing GUI Testing Tools for AndroidEnze Ma, Shan Huang, Weigang He, Ting Su 等FSE 2023 · 被引用 3 次
- Time-travel testing of Android appsZhen Dong, Marcel Böhme, Lucia Cojocaru, Abhik RoychoudhuryICSE 2020 · 被引用 104 次
- LLMDroid: Enhancing Automated Mobile App GUI Testing Coverage with Large Language Model GuidanceChenxu Wang, Tianming Liu, Yanjie Zhao, Minghui Yang 等FSE 2025 · 被引用 6 次
