Beyond Static GUI Agent: Evolving LLM-based GUI Testing via Dynamic Memory
arXiv:2611.41444 · doi:10.1109/ASE63991.2025.00135
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.
arXiv commentAccepted by ASE 2025
References in corpus (21)
- Learning Transferable Visual Models From Natural Language Supervision
- Cognitive Architectures for Language Agents
- MemGPT: Towards LLMs as Operating Systems
- AXNav: Replaying Accessibility Tests from Natural Language
- Guided Bug Crush: Assist Manual GUI Testing of Android Apps via Hint Moves
- VET: Identifying and Avoiding UI Exploration Tarpits
- Unblind Text Inputs: Predicting Hint-text of Text Input in Mobile Apps via LLM
- Ghost in the Minecraft: Generally Capable Agents for Open-World Environments via Large Language Models with Text-based Knowledge and Memory
- UXAgent: An LLM Agent-Based Usability Testing Framework for Web Design
- Chatting with GPT-3 for Zero-Shot Human-Like Mobile Automated GUI Testing
- ChatHaruhi: Reviving Anime Character in Reality via Large Language Model
- DroidBot-GPT: GPT-powered UI Automation for Android
- MemoChat: Tuning LLMs to Use Memos for Consistent Long-Range Open-Domain Conversation
- CharacterGLM: Customizing Chinese Conversational AI Characters with Large Language Models
- GameGPT: Multi-agent Collaborative Framework for Game Development
- Synapse: Trajectory-as-Exemplar Prompting with Memory for Computer Control
- AUITestAgent: Automatic Requirements Oriented GUI Function Testing
- Lyfe Agents: Generative agents for low-cost real-time social interactions
- Embodied-RAG: General Non-parametric Embodied Memory for Retrieval and Generation
- LARP: Language-Agent Role Play for Open-World Games
- AppAgent v2: Advanced Agent for Flexible Mobile Interactions