arXiv:2611.05873cs.SENov 2026

Manuscript Offprint

arXiv:2611.05873

Can LLM Agents Learn to Test? Maintaining Scoped Experience as Testing Evidence for Mobile GUI Testing

Zimu Liu, Xiaoxi Guo, Xiaolu Tang, Liang Yu

Zimu Liu, Xiaoxi Guo, Xiaolu Tang, Liang Yu

Ant Group

{liuzimu.lzm, xiaoxi.gxx, lance.txtl, yuriy.yl}@antgroup.com

Abstract—Repeated mobile GUI tests can reuse routes, locators, and recovery strategies from earlier executions. However, a route that worked in one workflow or app version may be irrelevant or misleading in another. We study how an LLM-based tester can retain useful experience while withholding entries contradicted by current observations. We present a maintenance contract for ADAPTITEST in which reusable experience has an explicit applicability scope, trace provenance, and a lifecycle for confirmation, revalidation, and withdrawal. The contract reserves persistence for a Reflector role and treats recalled experience as advice. The archived implementation does not establish end-to-end enforcement of every specified mechanism. The design changes retrieved context, not model weights. The evaluation uses read-only Android workflows and archived internal comparisons. A six-task, three-repeat ready subset reports 18/18 completed runs with memory versus 3/18 without it, but a grounded single-agent control also solves the earlier hard-task slice. A separate cross-session probe is excluded from efficacy conclusions because of confounded route schedules and unvalidated state labels. We examine 13 selected real-update hazard records across nine subjects, distinguishing stale-locator observations from policy-based withholding and offline retrieval diagnostics. The latter do not measure live-device failures or actions saved. These events are UI changes, not confirmed regression bugs. The evidence supports a bounded design and case study; it does not establish general efficacy, superiority over independent GUI-agent systems, or unrestricted exploration.

I. INTRODUCTION

The same mobile test objective rarely appears only once. A regression check that reaches a settings page, verifies a search result, or exercises a template workflow may be rerun after a UI refresh, on a different device state, or during the next release cycle. Each run forces the tester to find the right entry point, choose an observation channel, recover from popups, and decide whether a previously valid route still reaches the intended state. LLM-based GUI agents make this repetition more visible because their interaction traces contain reusable operational facts: which shortcut reaches a target page, which screen requires OCR rather than the accessibility hierarchy, which recovery action works after a modal dialog, and which locator has become unsafe after an update. Discarding this experience forces each session to rediscover the same facts; replaying it uncritically can turn yesterday's GUI observation into today's wrong test instruction.

Recent GUI-agent research already recognizes the value of memory. Mobile and desktop agents learn from demonstra-

tions, retrieve internal experience, maintain task memories, and evolve shortcuts or executable routines [1], [2], [3], [4], [5], [6], [7], [8], [9]; mobile GUI testing has likewise moved from random/model-based exploration toward LLM-guided and memory-augmented tools [10], [11], [12], [13], [14], [15]. The testing challenge is therefore not simply adding long-term memory. It is making remembered GUI experience usable as testing evidence: scoped to where it was observed, linked to traces that can be audited, ranked conservatively when reused, and withdrawn when app evolution contradicts it.

This paper studies whether an LLM-based mobile GUI tester can accumulate, reuse, and maintain such structured experience across repeated sessions. We use “learn” in the operational testing sense: retrieval-augmented experience accumulation that changes future test behavior, not model-weight updates. The goal is not to make memory always authoritative; it is to make memory useful when current evidence supports it and silent when the same evidence becomes stale.

We present a testing-evidence maintenance contract for ADAPTITEST, motivated by a mobile GUI testing pipeline and its archived experiments. The specification combines tri-channel perception, three memory layers, explicit validity scopes, Laplace-smoothed confidence, and a four-state lifecycle (Confirmed, Tentative, Suspect, Stale). It requires that only the Reflector persist or transition entries. This is a design requirement, not a verified invariant of every archived runner; Section III-G distinguishes the specification from the packaged implementation.

Our primary contribution is a testing-oriented validity contract for reusable experience: an entry records where it applies, why it is trusted, and when it must stop influencing actions. Memory layers, ranking, lifecycle, and writer restriction support this contract; they are not independent claims of algorithmic novelty. We contribute a design specification, an audit of its partial implementation, and a bounded empirical study. Table III maps observations to evidence and limitations. For traceability, we distinguish three aspects: C1 (empirical characterization). We report archived task comparisons and real-update stale-locator cases, distinguishing execution observations, scripted route comparisons, and offline policy diagnostics. The repeated-frontier slice is retained only as a protocol audit; its efficacy conclusions are withdrawn. These slices do not establish general efficacy or broad superior-ity over published GUI-testing systems. C2 (testing-evidence representation). Building on persistent-memory GUI agents, we specify scoped episodic, semantic, and procedural entries with confidence, trace links, and a four-state retrieval lifecycle (§III, Table II). The ranking weights and promotion threshold are design choices; their exact implementation and use in the archived experiments are not established by the packaged memory manager. C3 (writer-isolation requirement). The contract requires proposed persistent changes to pass through a dedicated writer and enumerated lifecycle transitions. We state this as an implementation requirement, not a proved access-control property or an experimentally isolated contribution of the archived pipeline.

References (42)