arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.21253cs.SE
收藏

CovAgent: 通过代理AI和动态仪器化克服移动应用覆盖的30%诅咒

CovAgent: Overcoming the 30% Curse of Mobile Application Coverage with Agentic AI and Dynamic Instrumentation

Singapore Management University(新加坡管理大学);Technology Innovation Institute(技术创新研究所);Harbin Institute of Technology(哈尔滨工业大学);University of Verona(维罗纳大学)

Wei Minn, Biniam Fisseha Demissie, Yan Naing Tun, Jiakun Liu, Mariano Ceccato, Lwin Khin Shar, David Lo

AI总结:

CovAgent通过代理AI和动态仪器化技术,显著提升Android应用UI测试的覆盖效率,超越现有方法的30%覆盖限制。

摘要:

自动化GUI测试对于确保Android应用的质量和可靠性至关重要。然而,现有UI测试技术的有效性往往受到限制,尤其是在覆盖方面。最近的研究,包括最先进的研究,难以在真实世界的Android应用中实现超过30%的活动覆盖。这种有限的覆盖可以归因于多种因素的结合,例如无法生成复杂的用户输入、设备配置和外部资源相关的激活条件未得到满足、以及难以到达的代码路径,这些路径不容易通过GUI访问。为了克服这些限制,我们提出了CovAgent,一种新颖的代理AI驱动的方法,以增强Android应用UI测试。我们的模糊测试无关框架包含一个AI代理,该代理检查应用的反编译Smali代码和组件转换图,并推理解析应用代码逻辑中未满足的激活条件,这些条件阻止访问无法通过标准和广泛采用的GUI模糊器访问的活动。然后,另一个代理生成动态仪器化脚本,以满足成功转换到这些活动所需的激活条件。我们发现,将现有模糊测试方法与我们的框架结合,可以显著提高测试覆盖率,超过最先进的LLMDroid和其他基线,例如Fastbot和APE(例如,活动覆盖分别提高了101.1%、116.3%和179.7%)。CovAgent还在其他指标上优于所有基线,例如类、方法和行覆盖。我们还对CovAgent组件进行了调查,以揭示关于代理AI在自动化应用测试领域有效性的进一步见解,例如代理激活条件推断的准确性,以及代理活动启动的成功率。

英文摘要:

Automated GUI testing is crucial for ensuring the quality and reliability of Android apps. However, the efficacy of existing UI testing techniques is often limited, especially in terms of coverage. Recent studies, including the state-of-the-art, struggle to achieve more than 30% activity coverage in real-world apps. This limited coverage can be attributed to a combination of factors such as failing to generate complex user inputs, unsatisfied activation conditions regarding device configurations and external resources, and hard-to-reach code paths that are not easily accessible through the GUI. To overcome these limitations, we propose CovAgent, a novel agentic AI-powered approach to enhance Android app UI testing. Our fuzzer-agnostic framework comprises an AI agent that inspects the app's decompiled Smali code and component transition graph, and reasons about unsatisfied activation conditions within the app code logic that prevent access to the activities that are unreachable by standard and widely adopted GUI fuzzers. Then, another agent generates dynamic instrumentation scripts that satisfy activation conditions required for successful transitions to those activities. We found that augmenting existing fuzzing approaches with our framework achieves a significant improvement in test coverage over the state-of-the-art, LLMDroid, and other baselines such as Fastbot and APE (e.g., 101.1%, 116.3% and 179.7% higher activity coverage, respectively). CovAgent also outperforms all the baselines in other metrics such as class, method, and line coverage. We also conduct investigations into components within CovAgent to reveal further insights regarding the efficacy of Agentic AI in the field of automated app testing such as the agentic activation condition inference accuracy, and agentic activity-launching success rate.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑