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

基于抽象的GUI可视化测试

Visual Testing of GUIs by Abstraction

Daniel Kraus, Jeremias Rößler, Martin Sulzmann

摘要:

确保图形用户界面(GUI)的正确视觉外观非常重要,因为视觉错误可能会给企业造成重大损失。在自动化测试中,应用程序可能在功能上表现正确,但视觉错误可能会使GUI实际上对用户不可用。目前大多数的视觉测试方法都是基于像素的,并且往往具有图像差异的特征缺陷。例如,微小和不重要的视觉变化通常会导致误报,这会使用户混淆不必要的错误报告。我们的想法是引入一个抽象的GUI状态(AGS),在这里我们定义结构关系,以确定相关的GUI的变化,并忽略那些从用户的角度来看是不重要的。此外,我们探讨了几种策略来解决GUI元素识别问题的AGS。这使我们能够提供丰富的诊断信息,帮助用户更好地解释变化。基于golden master测试的原则,我们可以通过使用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.

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

↑