arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.04251cs.SEcs.LG
收藏

结合语言与应用界面分析实现缺陷复现步骤的自动化评估

Combining Language and App UI Analysis for the Automated Assessment of Bug Reproduction Steps

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

Junayed Mahmud, Antu Saha, Oscar Chaparro, Kevin Moran, Andrian Marcus

AI总结:

本文提出AstroBR技术,利用大语言模型从缺陷报告中提取复现步骤并映射到动态分析得到的GUI交互模型,在S2R标注和缺失步骤建议上分别比基线提升25.2%和71.4%的F1分数。

摘要:

缺陷报告对于开发者确认软件问题、调查其原因以及验证修复至关重要。遗憾的是,报告往往遗漏重要信息或表述不清,这可能导致延迟、增加问题解决的工作量,甚至使问题无法解决。报告中最常出现问题的一个组成部分是缺陷复现步骤(S2Rs),这些步骤对于重现所描述的程序故障并推理修复方案必不可少。鉴于所报告的S2Rs普遍存在缺陷,已有研究提出了帮助报告者编写或评估S2Rs质量的技术。然而,对S2Rs的自动化理解具有挑战性,需要将细微的自然语言短语与特定的、语义相关的程序信息关联起来。由于语言变异问题以及从程序分析中获取信息的局限性,现有技术往往难以建立这种从语言到程序的连接。为了更有效地解决S2R质量标注问题,我们提出了一种名为AstroBR的新技术,该技术利用大语言模型(LLMs)的语言理解能力,从缺陷报告中识别并提取S2Rs,并将其映射到通过动态分析得到的程序状态模型中的GUI交互。我们将AstroBR与相关的最新方法进行了比较,发现AstroBR在标注S2Rs方面比基线方法提高了25.2%(以F1分数衡量)。此外,AstroBR在建议缺失的S2Rs方面比基线方法更准确(以F1分数衡量提高了71.4%)。

英文摘要:

Bug reports are essential for developers to confirm software problems, investigate their causes, and validate fixes. Unfortunately, reports often miss important information or are written unclearly, which can cause delays, increased issue resolution effort, or even the inability to solve issues. One of the most common components of reports that are problematic is the steps to reproduce the bug(s) (S2Rs), which are essential to replicate the described program failures and reason about fixes. Given the proclivity for deficiencies in reported S2Rs, prior work has proposed techniques that assist reporters in writing or assessing the quality of S2Rs. However, automated understanding of S2Rs is challenging, and requires linking nuanced natural language phrases with specific, semantically related program information. Prior techniques often struggle to form such language to program connections - due to issues in language variability and limitations of information gleaned from program analyses. To more effectively tackle the problem of S2R quality annotation, we propose a new technique called AstroBR, which leverages the language understanding capabilities of LLMs to identify and extract the S2Rs from bug reports and map them to GUI interactions in a program state model derived via dynamic analysis. We compared AstroBR to a related state-of-the-art approach and we found that AstroBR annotates S2Rs 25.2% better (in terms of F1 score) than the baseline. Additionally, AstroBR suggests more accurate missing S2Rs than the baseline (by 71.4% in terms of F1 score).

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

↑