arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.03121cs.SE
收藏

RippleGUItester: 基于变更的探索性测试

RippleGUItester: Change-Aware Exploratory Testing

Technical University of Munich(慕尼黑工业大学);CISPA Helmholtz Center for Information Security(CISPA 赫尔姆霍兹信息安全中心)

Yanqi Su, Michael Pradel, Chunyang Chen

AI总结:

RippleGUItester通过基于大语言模型的变更影响分析,结合多模态bug检测,发现由代码变更引入的bug,提升测试效率和准确性。

摘要:

软件系统通过频繁的代码变更持续演进,但这些变更往往在广泛的测试和代码审查后仍会引入意外的bug。现有的测试方法大多局限于预定义的执行路径或依赖于无指导的探索,导致许多由变更引起的缺陷未被检测到。为了解决这一挑战,我们提出了RippleGUItester,一种基于变更的测试系统,将代码变更视为涟漪效应的中心,并通过GUI探索其更广泛、用户可见的影响。给定一个代码变更,RippleGUItester通过基于大语言模型的变更影响分析生成并丰富现实的测试场景,这些场景在系统变更前和变更后的版本上执行,并通过差异分析来识别行为差异。关键的是,RippleGUItester采用多模态bug检测,比较视觉GUI的变化,并在自然语言变更意图的上下文中解释这些变化,以区分意外bug和预期的行为更新。我们对四个广泛使用的软件系统中的数百个真实世界代码变更进行了评估:Firefox、Zettlr、JabRef和Godot。我们的结果表明,所提出的方法能够发现由代码变更引入的bug,这些bug被现有的测试套件、CI流水线和代码审查所遗漏。总共,我们识别出26个此前未知的bug,这些bug仍然存在于评估系统的最新版本中。在报告后,16个bug已被修复,2个已被确认,6个仍在讨论中,2个被标记为预期。我们设想RippleGUItester可以在代码变更合并前或 shortly after 被应用,从而实现更早的回归检测。

英文摘要:

Software systems evolve continuously through frequent code changes, yet such changes often introduce unintended bugs despite extensive testing and code review. Existing testing approaches are largely constrained to predefined execution paths or rely on unguided exploration, leaving many change-induced issues undetected. To address this challenge, we present RippleGUItester, a change-driven testing system that treats a code change as the epicenter of a ripple effect and explores its broader, user-visible impacts via the GUI. Given a code change, RippleGUItester performs LLM-based change-impact analysis to generate and enrich realistic test scenarios, executes these scenarios on both pre-change and post-change versions of the system, and applies differential analysis to identify behavioral differences. Crucially, RippleGUItester employs multimodal bug detection, comparing visual GUI changes and interpreting them in the context of natural-language change intents to distinguish unintended bugs from intended behavioral updates. We evaluate our approach on hundreds of real-world code changes across four widely used software systems: Firefox, Zettlr, JabRef, and Godot. Our results show that the proposed approach uncovers bugs introduced by code changes that were missed by existing test suites, CI pipelines, and code review. In total, we identify 26 previously unknown bugs that still exist in the latest versions of the evaluated systems. After reporting, 16 bugs have been fixed, 2 have been confirmed, 6 are still under discussion, and 2 were marked as intended. We envision RippleGUItester being applied before or shortly after a code change is merged, enabling earlier detection of regressions.

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

↑