arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2404.08948cs.SE
收藏

大型语言模型用于移动GUI文本输入生成:一项实证研究

Large Language Models for Mobile GUI Text Input Generation: An Empirical Study

Macau University of Science and Technology(澳门科技大学);Institute of Software Chinese Academy of Sciences(中国科学院软件研究所);Technical University of Munich(慕尼黑工业大学);University of Nottingham Ningbo China(诺丁汉大学宁波校区);MUST Science and Technology Research Institute(澳门科技大学珠海研究院)

Chenhui Cui, Tao Li, Junjie Wang, Chunyang Chen, Dave Towey, Rubing Huang

AI总结:

本研究评估九种LLM在115个真实应用中的GUI文本输入生成,比较三种UI上下文提示设置,发现提取文本和XML达到71%的页面通过率,视觉输入成本更高;反馈增强协议提升缺陷检测率至64.5%。

摘要:

移动应用已成为必需品,使得质量保证日益重要。GUI测试广泛用于自动探索,但文本输入组件仍是一个主要障碍,因为许多UI页面需要语义上合适的文本输入才能继续。大型语言模型在生成上下文感知文本方面显示出潜力,但不同UI表示、反馈机制和人工干预的有效性仍不清楚。本文通过一项大规模实证研究填补这些空白。我们评估了九个最先进的LLM在115个真实世界应用上的表现,比较了三种UI上下文提示设置:提取的文本上下文、UI层次XML和基于截图的视觉输入。结果显示,提取的上下文和XML实现了相当的页面通过率,分别为71.4%和71.0%,而基于视觉的输入达到65.1%,但产生了显著更高的令牌成本。在涉及37个真实世界文本输入错误的缺陷检测实验中,生成无效输入的LLM在所有评估模型中检测到约51%的问题。一种反馈增强协议,将执行结果纳入后续尝试,将平均PPTR提高到69.2-73.8%,并将缺陷检测率提高到51.0-64.5%。人工测试者进一步优化输入,带来额外收益。我们将该过程集成到DroidBot中,增强了其UI探索能力。我们得出了关于上下文选择、成本效益、反馈策略和人机协作的可操作见解,推进了Android测试的知识和实践。

英文摘要:

Mobile apps have become essential, making quality assurance increasingly important. GUI testing is widely used for automated exploration, yet text-input components remain a major obstacle, as many UI pages require semantically appropriate text inputs before proceeding. Large Language Models have shown promise in generating context-aware text, but the effectiveness of different UI representations, feedback mechanisms, and human intervention remains unclear. This paper presents a large-scale empirical study addressing these gaps. We evaluate nine state-of-the-art LLMs across 115 real-world apps, comparing three UI-context prompting settings: extracted textual context, UI-hierarchy XML, and screenshot-based vision input. Results show extracted context and XML achieve comparable page-pass-through rates of 71.4% and 71.0%, while vision-based input reaches 65.1% but incurs substantially higher token costs. In bug-detection experiments with 37 real-world text-input bugs, LLMs generating invalid inputs detect about 51% of issues across all evaluated models. A feedback-enhanced protocol, incorporating execution outcomes into subsequent attempts, improves average PPTRs to 69.2-73.8% and raises bug-detection rates to 51.0-64.5%. Human testers further refine inputs, yielding additional gains. We integrate the process into DroidBot, augmenting its UI-exploration capabilities. We derive actionable insights on context selection, cost-effectiveness, feedback strategies, and human-LLM collaboration, advancing both knowledge and practice in Android testing.

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

↑