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

Browserbite:通过图像处理进行跨浏览器测试

Browserbite: Cross-Browser Testing via Image Processing

Tõnis Saar, Marlon Dumas, Marti Kaljuve, Nataliia Semenenko

摘要:

跨浏览器兼容性测试关注的是识别网页在不同浏览器或其配置之间呈现方式的可感知差异。现有的自动化跨浏览器兼容性测试方法通常基于文档对象模型(DOM)分析,或者在某些情况下,DOM分析与屏幕截图捕获和图像处理的组合。然而,DOM分析可能会错过不是在DOM构造期间出现的不兼容性,而是在呈现期间出现的不兼容性。相反,DOM分析会产生假警报,因为不同的DOM可能会导致相同或足够相似的渲染。提出了一种基于图像处理的跨浏览器测试方法。该方法依赖于图像分割从网页中提取区域和计算机视觉技术从每个区域中提取一组特征。基于特性特征,将从基线浏览器上拍摄的屏幕截图中提取的区域与从测试中的浏览器中提取的区域进行比较。使用机器学习分类器来确定两个匹配区域之间的差异是否应被分类为不相容性。一个涉及140页的评估表明,所提出的方法实现了F-分数超过0.9,优于一个国家的最先进的跨浏览器测试工具的基础上DOM分析。

英文摘要:

Cross-browser compatibility testing is concerned with identifying perceptible differences in the way a Web page is rendered across different browsers or configurations thereof. Existing automated cross-browser compatibility testing methods are generally based on Document Object Model (DOM) analysis, or in some cases, a combination of DOM analysis with screenshot capture and image processing. DOM analysis however may miss incompatibilities that arise not during DOM construction, but rather during rendering. Conversely, DOM analysis produces false alarms because different DOMs may lead to identical or sufficiently similar renderings. This paper presents a novel method for cross-browser testing based purely on image processing. The method relies on image segmentation to extract regions from a Web page and computer vision techniques to extract a set of characteristic features from each region. Regions extracted from a screenshot taken on a baseline browser are compared against regions extracted from the browser under test based on characteristic features. A machine learning classifier is used to determine if differences between two matched regions should be classified as an incompatibility. An evaluation involving 140 pages shows that the proposed method achieves an F-score exceeding 0.9, outperforming a state-of-the-art cross-browser testing tool based on DOM analysis.

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

↑