Beyond Static GUI Agent: Evolving LLM-based GUI Testing via Dynamic Memory
Mengzhuo Chen, Zhe Liu, Chunyang Chen, Junjie Wang, Yangguang Xue, Boyu Wu, Yuekai Huang, Libin Wu, Qing Wang
Abstract
The development of Large Language Models (LLMs) enables LLM-based GUI testing to interact with graphical user interfaces by understanding GUI screenshots and generating actions, which are widely applied in industry and academia. However, current approaches test each app in isolation, lacking mechanisms for experience accumulation and reuse. This limitation often causes GUI testing approaches to miss deeper exploration and fail to trigger bug-prone functionalities. To address this, we propose MemoDroid, a three-layer memory mechanism that augments LLM-based GUI testing with the ability to evolve through repeated interaction. MemoDroid designs episodic memory to capture functional-level testing traces, reflective memory to summarize issue patterns and redundant behaviors, and strategic memory to synthesize cross-app exploration strategies. These memory layers are dynamically retrieved and injected into LLM prompts at runtime, enabling the agent to reuse successful behaviors, avoid ineffective actions, and prioritize bug-prone paths. We implement MemoDroid as a lightweight plugin, which can be integrated into existing LLM-based GUI testing approaches. We evaluate MemoDroid on real-world apps from 15 diverse app categories. Results show that MemoDroid enhances GUI testing performance across five baselines, with activity and code coverage increasing by 79% - 96% and 81% - 97%, and bug detection improving by 57% - 198%. Ablation studies confirm the contributions of each memory layer. Furthermore, MemoDroid detects 49 new bugs in 200 popular apps, with 35 confirmed fixes and 14 acknowledged by developers, showing its practical value in memory-driven GUI testing.
Create a lesson
Metadata
- Journal
- Proceedings of the 40th IEEE/ACM International Conference on Automated Software Engineering (ASE 2025), pp. 1603-1615
- Comments
- Accepted by ASE 2025
Related papers
MergeReady-Bench: Evaluating and Improving Coding Agents Beyond Test Passing
Shared title terminologycs.SEPriyatham Kattakinda, Wenxiao Wang, Soheil Feizi
The Placebo Improvement: Stress-Testing False Claims by Autonomous Research Agents
Shared title terminologycs.SEMarek Šuppa, Jaroslav Kopčan
AMoRE: An agentic framework for end-to-end metamorphic testing of web applications
Shared title terminologycs.SEAndrei Coman, José Luis Fernández Alemán, Begoña Moros Valle
OASIS: Static and Dynamic OpenAPI Specification Inference
Shared title terminologycs.SEHamza Bin Mazhar, Yuqing Wang, Jesse Nyyssölä et al.
Can Browser Agents Detect Accessibility Issues? An Interaction-Aware Benchmark for Web Accessibility Testing
Shared title terminologycs.SEKaiquan Chen, Hang Dong, Bo Qiao et al.
Evaluating More with Less: Black-Box Test Selection for AI Agents
Shared title terminologycs.SEAli Asgari, Mitchell Olsthoorn, Arie van Deursen et al.