Skip to content

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

Mengzhuo Chen, Zhe Liu, Chunyang Chen, Junjie Wang, Yangguang Xue, Boyu Wu, Libin Wu, Qing Wang

cs.SE

Abstract

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.

Create a lesson

Metadata

Journal
Proceedings of the 2026 IEEE/ACM 48th International Conference on Software Engineering (ICSE 2026), pp. 3272-3284
Comments
Accepted by ICSE 2026