Search arXiv⌕ Search

arXiv subjects

Libin Wu

Publications and source records attributed to Libin Wu.

2 recordsLinked to original sources

Think Outside the Box: Automating Inter-App Functionality Testing via Memory Implanting and Reasoning

Inter-app functionality requires multiple apps to collaborate to complete a task. Frequent app updates and open-ended interactions make inter-app GUI testing difficult for approaches based on predefined models or historical training data. LLM-based testers also struggle to map instructions to GUI elements and may take irreversible actions along context-dependent paths. We propose InterDroid, an automated GUI testing approach that implants structured knowledge of prior inter-app interactions into an LLM's memory. InterDroid retrieves relevant interactions by combining visual and textual GUI information. Inspired by memory implantation in cognitive psychology, it uses global memory to present prior inter-app paths as conversations and local memory to track state transitions during testing. A monitor tracks progress and detects deviations. InterDroid integrates with existing GUI testing tools, activates when execution switches to another app, and returns control after inter-app testing. We evaluate InterDroid on 100 inter-app functionalities across 63 apps against state-of-the-art GUI testing baselines. Compared with the best baseline, InterDroid improves page coverage by up to 133%, action coverage by 124%, and exact match accuracy by 268%. It also detects 43 previously unknown crash bugs in apps from Google Play, of which 31 were fixed and 12 were confirmed by developers.

cs.SE↗

Beyond Static GUI Agent: Evolving LLM-based GUI Testing via Dynamic Memory

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.

cs.SE↗