AI 中文总结
本文提出ReBug智能体系统,通过分阶段驱动真实浏览器复现Web GUI错误,在667条真实报告上的评估显示其性能优于基线,可有效支持基于报告的浏览器错误复现。
AI 中文摘要
从自然语言错误报告中复现Web GUI错误对软件维护至关重要,但由于报告往往缺少依赖项、输入文件等必要前提条件,该任务仍存在难度。现有的错误复现技术主要针对代码单元或移动应用,缺乏针对Web GUI的端到端视觉执行与验证。本文提出ReBug,一种上下文感知的智能体系统,可通过驱动真实浏览器,从Web GUI错误报告中重构、执行并验证浏览器级别的复现流程。ReBug将复现过程分为两个阶段:在准备阶段,它从报告和可用构件中重构缺失的前提条件,并生成高级复现计划;在执行阶段,它在浏览器中执行工具介导的交互,维护页面状态和操作历史的结构化摘要,并根据报告推导的预期值验证最终状态。我们在四个开源Web应用的667条真实错误报告上对ReBug进行评估,在受控的当前部署环境中,ReBug的表现优于所有基线方法,平均复现成功率(RSR)达49.96%,平均任务完成率为74.96%,平均操作执行成功率为86.54%。我们的结果表明,显式上下文重构和感知状态的浏览器执行可有效支持基于报告的浏览器复现,而历史回放显示,成功的复现流程通常能在恢复的带bug版本上暴露原始的错误行为。
英文摘要
Reproducing web GUI bugs from natural-language bug reports is critical for software maintenance, but remains difficult because reports often lack prerequisites such as dependencies and input files. Existing bug reproduction techniques mainly target code units or mobile applications and lack end-to-end visual execution and validation for web GUIs. We present ReBug, a context-aware agent system that reconstructs, executes, and validates browser-level reproduction procedures from web GUI bug reports by driving a real browser. ReBug separates reproduction into two stages. In the preparation stage, ReBug reconstructs missing prerequisites from the report and available artifacts, and it produces a high-level reproduction plan. In the execution stage, it performs tool-mediated interactions in the browser, maintains structured summaries of page state and action history, and validates the final state against expectations derived from the report. We evaluate ReBug on 667 real-world bug reports from four open-source web applications. On controlled current deployments, ReBug outperforms both baselines, achieving an average RSR of 49.96%, a mean task completion rate of 74.96%, and a mean action execution success rate of 86.54%. Our results show that explicit context reconstruction and state-aware browser execution effectively support report-derived browser reproduction, while historical replay shows that successful procedures often expose the original bug-present behavior on restored buggy versions.
Comments13 pages, 1 figure