论文标题

通过抽象对GUI的视觉测试

Visual Testing of GUIs by Abstraction

论文作者

Kraus, Daniel, Rößler, Jeremias, Sulzmann, Martin

论文摘要

确保正确的图形用户界面(GUI)的视觉外观很重要,因为视觉错误可能会对企业造成巨大损失。应用程序在自动测试中可能在功能上表现正确,但是视觉错误可以使用户有效地无法使用GUI。当今的大多数视觉测试方法都是基于像素的,并且往往具有图像差异的特征。例如,次要和不重要的视觉变化通常会导致误报,这会使用户与不必要的错误报告混淆。我们的想法是引入一个抽象的GUI状态(AGS),我们在其中定义结构关系以确定相关的GUI变化,而忽略从用户的角度来看那些不重要的。此外,我们还探索了几种策略,以解决GUI元素识别问题。这使我们能够提供丰富的诊断信息,以帮助用户更好地解释更改。基于黄金主测试的原理,我们可以使用AGS支持完全自动化的视觉测试方法。我们已经实施了视觉测试网页的方法,并且我们的实验表明我们能够可靠地检测GUI更改。

Ensuring the correct visual appearance of graphical user interfaces (GUIs) is important because visual bugs can cause substantial losses for businesses. An application might behave functionally correct in an automated test, but visual bugs can make the GUI effectively unusable for the user. Most of today's approaches for visual testing are pixel-based and tend to have flaws that are characteristic for image differencing. For instance, minor and unimportant visual changes often cause false positives, which confuse the user with unnecessary error reports. Our idea is to introduce an abstract GUI state (AGS), where we define structural relations to identify relevant GUI changes and ignore those that are unimportant from the user's point of view. In addition, we explore several strategies to address the GUI element identification problem in terms of AGS. This allows us to provide rich diagnostic information that help the user to better interpret changes. Based on the principles of golden master testing, we can support a fully-automated approach to visual testing by using the AGS. We have implemented our approach to visually test web pages and our experiments show that we are able to reliably detect GUI changes.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源