paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Fill in the Blank: Context-aware Automated Text Input Generation for Mobile GUI Testing

填空:面向移动 GUI 测试的上下文感知自动文本输入生成
ICSE 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE)2023匹配度 2/10 · 该论文属于移动应用GUI自动化测试,使用LLM生成语义文本输入,与用户关注的静态分析、浮点程序分析、贝叶斯程序分析以及LLM改进形式化验证等核心方向无直接关联;仅在“LLM作为工具应用于软件工程”这一点上有非常宽泛的交集。引用 175 inbox
Zhe Liu, Chunyang Chen, Junjie Wang, Xing Che, Yuekai Huang, Jun Hu, Qing Wang
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出基于LLM的QTypist,依据GUI上下文自动生成移动应用测试文本输入。

移动应用GUI测试中,许多界面需要合适的文本输入才能进入下一页,而有效输入具有多样性和语义要求,自动生成困难。本文提出基于大语言模型(LLM)的QTypist,利用GUI上下文智能生成语义文本输入;为适应移动测试场景,设计了基于提示的数据构建与调优方法,可自动抽取提示和答案用于模型微调。在Google Play的106个应用上评估,QTypist通过率为87%,比最佳基线高93%;集成到自动化GUI测试工具后,可多覆盖42%的Activity、52%的页面,并多发现122%的缺陷。

问题
移动GUI测试常需输入有效文本才能继续,现有自动化方法难以根据界面语义生成合适输入。
方法
提出QTypist,基于LLM并利用GUI上下文生成文本输入,同时用基于提示的数据构建与调优自动获取训练提示和答案。
评估
在106个Google Play应用上,QTypist通过率87%,较最佳基线提升93%;集成测试工具后覆盖更多Activity和页面,并发现更多缺陷。
原文摘要(Abstract)

Automated GUI testing is widely used to help ensure the quality of mobile apps. However, many GUIs require appropriate text inputs to proceed to the next page, which remains a prominent obstacle for testing coverage. Considering the diversity and semantic requirement of valid inputs (e.g., flight departure, movie name), it is challenging to automate the text input generation. Inspired by the fact that the pre-trained Large Language Model (LLM) has made outstanding progress in text generation, we propose an approach named QTypist based on LLM for intelligently generating semantic input text according to the GUI context. To boost the performance of LLM in the mobile testing scenario, we develop a prompt-based data construction and tuning method which automatically extracts the prompts and answers for model tuning. We evaluate QTypist on 106 apps from Google Play, and the result shows that the passing rate of QTypist is 87%, which is 93% higher than the best baseline. We also integrate QTypist with the automated GUI testing tools and it can cover 42% more app activities, 52% more pages, and subsequently help reveal 122% more bugs compared with the raw tool.

链接与引用

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

BibTeX
@inproceedings{LiuCWCHHW23,
  title = {Fill in the Blank: Context-aware Automated Text Input Generation for Mobile GUI Testing},
  author = {Zhe Liu and Chunyang Chen and Junjie Wang and Xing Che and Yuekai Huang and Jun Hu and Qing Wang},
  booktitle = {ICSE},
  year = {2023},
  doi = {10.1109/icse48619.2023.00119}
}