paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Make LLM a Testing Expert: Bringing Human-like Interaction to Mobile GUI Testing via Functionality-aware Decisions

让 LLM 成为测试专家:通过功能感知决策将类人交互引入移动 GUI 测试
ICSE Proceedings of the IEEE/ACM 46th International Conference on Software Engineering2024匹配度 2/10 · 该论文将 LLM 用于移动 GUI 动态测试(生成与迭代测试脚本),属于 LLM+软件测试方向,而非用户核心关注的静态分析、形式化验证、浮点程序分析或贝叶斯程序分析;仅与“LLM 作为工具用于软件工程”这一大方向有微弱交集,未触及 Agentic 程序分析或机器学习系统的静态分析问题。引用 104 inbox
Zhe Liu, Chunyang Chen, Junjie Wang, Mengzhuo Chen, Boyu Wu, Xing Che, Dandan Wang, Qing Wang
crossref: 2026-09-12

AI 速览

一句话:将移动 GUI 测试建模为问答任务,用 LLM 结合功能感知记忆提示生成并迭代测试脚本,显著提升覆盖率与缺陷检测。

移动应用自动化 GUI 测试对保障应用质量至关重要,但现有基于学习的方法覆盖率低、泛化不足且严重依赖训练数据。本文受 ChatGPT 等大语言模型在自然语言理解与问答上的成功启发,将移动 GUI 测试建模为问答任务,提出 GPTDroid:把 GUI 页面信息传给 LLM 生成测试脚本,执行后把应用反馈继续返回给 LLM,迭代该过程。框架还引入功能感知的记忆提示机制,使 LLM 保留整个测试过程的知识,并基于功能做长期推理以指导探索。在 Google Play 的 93 个应用上评估,其活动覆盖率比最佳基线高 32%,发现缺陷多 31% 且速度更快;并在 Google Play 上发现 53 个新缺陷,其中 35 个已被确认修复。

问题
现有基于学习的自动化 GUI 测试方法存在测试覆盖率低、泛化能力不足以及过度依赖训练数据等问题。
方法
把移动 GUI 测试形式化为问答任务,提出 GPTDroid:向 LLM 传入 GUI 页面信息以生成测试脚本并执行,再将应用反馈回传形成迭代;同时引入功能感知的记忆提示机制支持长期、基于功能的推理探索。
评估
在 Google Play 的 93 个应用上与基线对比,活动覆盖率提升 32%,缺陷检测数量多 31% 且速度更快;另发现 53 个新缺陷,其中 35 个已确认并修复。
原文摘要(Abstract)

Automated Graphical User Interface (GUI) testing plays a crucial role in ensuring app quality, especially as mobile applications have become an integral part of our daily lives. Despite the growing popularity of learning-based techniques in automated GUI testing due to their ability to generate human-like interactions, they still suffer from several limitations, such as low testing coverage, inadequate generalization capabilities, and heavy reliance on training data. Inspired by the success of Large Language Models (LLMs) like ChatGPT in natural language understanding and question answering, we formulate the mobile GUI testing problem as a Q&A task. We propose GPTDroid, asking LLM to chat with the mobile apps by passing the GUI page information to LLM to elicit testing scripts, and executing them to keep passing the app feedback to LLM, iterating the whole process. Within this framework, we have also introduced a functionality-aware memory prompting mechanism that equips the LLM with the ability to retain testing knowledge of the whole process and conduct long-term, functionality-based reasoning to guide exploration. We evaluate it on 93 apps from Google Play and demonstrate that it outperforms the best baseline by 32% in activity coverage, and detects 31% more bugs at a faster rate. Moreover, GPTDroid identifies 53 new bugs on Google Play, of which 35 have been confirmed and fixed.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot11304,
  title = {Make LLM a Testing Expert: Bringing Human-like Interaction to Mobile GUI Testing via Functionality-aware Decisions},
  author = {Zhe Liu and Chunyang Chen and Junjie Wang and Mengzhuo Chen and Boyu Wu and Xing Che and Dandan Wang and Qing Wang},
  booktitle = {ICSE},
  year = {2024},
  doi = {10.1145/3597503.3639180}
}