arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.29623cs.SE
收藏

通过预评估视觉效果增强基于LLM的Android应用Bug重现

Enhancing LLM-Based Bug Reproduction for Android Apps via Pre-Assessment of Visual Effects

Xiamen University(厦门大学)

Xiangyang Xiao, Huaxun Huang, Rongxin Wu

AI总结:

本文提出LTGDroid,通过执行所有可能的UI操作并记录视觉效果,指导LLM选择重现bug的UI操作,提升Android应用bug重现的成功率。

摘要:

在Android应用开发和维护中,快速准确重现用户报告的bug对确保应用质量和提升用户满意度至关重要。然而,这一过程往往耗时且复杂。因此,需要一种自动化方法,能够在给定完整bug报告的情况下探索被测应用(AUT)并识别正确的UI操作序列以重现bug。大型语言模型(LLMs)在理解文本和视觉语义方面表现出色,使其成为规划UI操作的有希望工具。然而,我们的研究表明,即使使用最先进的基于LLM的方法,这些方法仍难以遵循详细的bug重现指示并根据新信息重新规划,因为它们无法准确预测和解释UI组件的视觉效果。为了解决这些限制,我们提出了LTGDroid。我们的见解是,在探索过程中执行所有可能的UI操作,记录其对应的视觉效果,并利用这些视觉提示指导LLM选择可能重现bug的UI操作。我们评估了使用GPT-4.1实例化的LTGDroid,基于75个来自45个流行Android应用的bug报告基准测试。结果表明,LTGDroid实现了87.51%的重现成功率,比最先进的基线方法提高了49.16%和556.30%,而平均需要20.45分钟和约0.27美元成功重现bug。LTGDroid的实现已在https://github.com/N3onFlux/LTGDroid上公开发布。

英文摘要:

In the development and maintenance of Android apps, the quick and accurate reproduction of user-reported bugs is crucial to ensure application quality and improve user satisfaction. However, this process is often time-consuming and complex. Therefore, there is a need for an automated approach that can explore the Application Under Test (AUT) and identify the correct sequence of User Interface (UI) actions required to reproduce a bug, given only a complete bug report. Large Language Models (LLMs) have shown remarkable capabilities in understanding textual and visual semantics, making them a promising tool for planning UI actions. Nevertheless, our study shows that even when using state-of-the-art LLM-based approaches, these methods still struggle to follow detailed bug reproduction instructions and replan based on new information, due to their inability to accurately predict and interpret the visual effects of UI components. To address these limitations, we propose LTGDroid. Our insight is to execute all possible UI actions on the current UI page during exploration, record their corresponding visual effects, and leverage these visual cues to guide the LLM in selecting UI actions that are likely to reproduce the bug. We evaluated LTGDroid, instantiated with GPT-4.1, on a benchmark consisting of 75 bug reports from 45 popular Android apps. The results show that LTGDroid achieves a reproduction success rate of 87.51%, improving over the state-of-the-art baselines by 49.16% and 556.30%, while requiring an average of 20.45 minutes and approximately $0.27 to successfully reproduce a bug. The LTGDroid implementation is publicly available at https://github.com/N3onFlux/LTGDroid.

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

↑