arrow
Return

CamDroid: Context-Aware Model-Based Automated GUI Testing for Android Apps

delete2025-02-01
delete0
PRE
AI
H
Hongyi Wang
Y
Yang Li *
杨静 cover
杨静 (H. J. Yang)
D
Daqiang Hu
L
Liao, Zhi
DOI:10.26599/TST.2024.9010038delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Recent years have witnessed the widespread adoption of mobile applications (apps for short). For quality-of-service and commercial competitiveness, sufficient Graphical User Interface (GUI) testing is required to verify the robustness of the apps. Given that testing with manual efforts is time-consuming and error-prone, automated GUI testing has been widely studied. However, existing approaches mostly focus on GUI exploration while lacking attention to complex interactions with apps, especially generating appropriate text inputs like real users. In this paper, we introduce CamDroid, a lightweight context-aware automated GUI testing tool, which can efficiently explore app activities through (1) a model-based UI-guided testing strategy informed by the context of previous event-activity transitions and (2) a data-driven text input generation approach regarding the GUI context. We evaluate CamDroid on 20 widely-used apps. The results show that CamDroid outperforms non-trivial baselines in activity coverage, crash detection, and test efficiency.
Keywords:
Reinforcement learning
Quality of service
Manuals
Computer crashes
Robustness
Mobile applications
Internet
Android app
automated Graphical User Interface (GUI) testing
state transition model
text input generation

Journal

T
Tsinghua Science and Technology
IF:
3.5
Papers:
987
Citations:
2.5K

Organization

T
tsinghua university
Scholars:
11.8W
Papers: 10.0W
Citations: 137