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

人工智能用于软件测试自动化中的上下文感知视觉变化检测

Artificial intelligence for context-aware visual change detection in software test automation

AI Research Lab, Tricentis(Tricentis 人工智能研究实验室)

Milad Moradi, Ke Yan, David Colwell, Rhona Asgari

AI总结:

本文提出一种基于图与YOLOv5的上下文感知视觉变化检测方法,用于软件测试自动化,能有效检测UI变化并优于传统基线。

摘要:

自动化软件测试是软件开发过程中不可或缺的一部分,它简化了工作流程并确保了产品的可靠性。视觉测试,特别是用于用户界面(UI)和用户体验(UX)验证的视觉测试,在维护软件质量方面发挥着至关重要的作用。然而,传统的技术,如像素级比较和基于区域的视觉变化检测,往往无法捕捉UI元素之间的上下文相似性、细微变化和空间关系。在本文中,我们提出了一种新颖的基于图的方法,用于软件测试自动化中的上下文感知视觉变化检测。我们的方法利用机器学习模型(YOLOv5)从软件截图中检测UI控件,并构建一个图来建模它们的上下文和空间关系。然后,利用该图结构来识别不同软件版本中UI元素之间的对应关系,并检测有意义的变化。所提出的方法结合了递归相似度计算,该计算结合了结构、视觉和文本线索,提供了对UI变化的稳健且全面的建模。我们在一个精心策划的真实世界软件截图数据集上评估了我们的方法,并证明它能够可靠地检测简单和复杂的UI变化。我们的方法显著优于像素级和基于区域的基线方法,尤其是在需要上下文理解的场景中。我们还讨论了当前与数据集多样性、基线复杂性和模型泛化相关的局限性,并概述了计划中的未来改进。总体而言,我们的工作推进了视觉变化检测的最新技术水平,并为增强不断演化的软件界面的可靠性和可维护性提供了实用解决方案。

英文摘要:

Automated software testing is integral to the software development process, streamlining workflows and ensuring product reliability. Visual testing, particularly for user interface (UI) and user experience (UX) validation, plays a vital role in maintaining software quality. However, conventional techniques such as pixel-wise comparison and region-based visual change detection often fail to capture contextual similarities, subtle variations, and spatial relationships between UI elements. In this paper, we propose a novel graph-based approach for context-aware visual change detection in software test automation. Our method leverages a machine learning model (YOLOv5) to detect UI controls from software screenshots and constructs a graph that models their contextual and spatial relationships. This graph structure is then used to identify correspondences between UI elements across software versions and to detect meaningful changes. The proposed method incorporates a recursive similarity computation that combines structural, visual, and textual cues, offering a robust and holistic model of UI changes. We evaluate our approach on a curated dataset of real-world software screenshots and demonstrate that it reliably detects both simple and complex UI changes. Our method significantly outperforms pixel-wise and region-based baselines, especially in scenarios requiring contextual understanding. We also discuss current limitations related to dataset diversity, baseline complexity, and model generalization, and outline planned future improvements. Overall, our work advances the state of the art in visual change detection and provides a practical solution for enhancing the reliability and maintainability of evolving software interfaces.

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

↑