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

为Android应用程序自动生成高质量的缺陷报告

Automatically Enhancing the Quality of Android App Bug Reports

William & Mary(威廉与玛丽学院);University of Central Florida(中佛罗里达大学);George Mason University(乔治梅森大学)

Antu Saha, Atish Kumar Dipongkor, Sam Bennett, Kevin Moran, Andrian Marcus, Oscar Chaparro

AI总结:

本文提出通过提供具体应用相关信息帮助LLM自动生成清晰详细的缺陷报告,提出BugScribe方法,通过评估显示其生成的报告质量更高且更准确。

摘要:

大多数移动应用中的缺陷在设备屏幕上可被直观观察到。为了跟踪这些缺陷,用户、测试人员和开发人员必须手动提交缺陷报告,尤其是在没有崩溃的情况下。然而,这些报告经常模糊或不准确,常遗漏关键组件如观察行为(OB)、预期行为(EB)或重现步骤(S2Rs)。低质量报告阻碍开发人员理解并重现缺陷,延迟解决并导致错误或无法解决的修复。本文认为,将具体应用程序相关信息(如GUI交互或特定屏幕)作为关键上下文提供给LLM,有助于自动生成功能性、详细且准确的OB、EB和S2Rs。我们构建并评估了一种新的方法,BugScribe,以这种方式生成缺陷报告。为了支持评估,我们引入了一个统一的质量框架,定义了OB、EB和S2Rs的正确性和完整性维度。使用来自26个Android应用程序的48个缺陷报告,我们表明BugScribe生成的组件比原始报告更高质量且更准确,并优于最近的基于LLM的基线方法。我们设想BugScribe可以作为测试人员和开发人员的实用助手,通过增强不完整的缺陷报告,提供可靠且准确的OB、EB和S2Rs,从而流利缺陷解决并提高移动应用程序质量。

英文摘要:

Most defects in mobile applications are visually observable on the device screen. Since automated mechanisms for detecting and reporting such defects are often unavailable, users, testers, and developers must manually submit bug reports. However, these reports are frequently incomplete, ambiguous, or inaccurate, often lacking the information needed to understand, reproduce, and diagnose defects. We formulate automatic bug report enhancement as the problem of connecting user-written bug reports with application execution. We present BUGSCRIBE, an LLM-powered approach that links bug report information with app-specific UI execution information to infer and generate accurate, complete, and correct Observed Behavior (OB), Expected Behavior (EB), and Steps to Reproduce (S2Rs). To support BUGSCRIBE's design and evaluation, we develop a bug report quality model and use it to identify the most effective context for each component. We evaluate BUGSCRIBE on 48 bug reports from 26 Android applications with manually constructed ground truth. Our results show that BUGSCRIBE generates higher-quality bug report components than the original reports and three LLM-based baselines, improving S2R quality by 44.2%--84.7%, and OB/EB quality by up to 35.2%. We further show that BUGSCRIBE-generated reports help an LLM-based agent reproduce Android bugs, improving the reproduction rate by 28.1%--57.7% compared to the original reports and the baselines.

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

↑