Erratum:利用灵活的树匹配来修复Web自动化中损坏的定位器
Erratum: Leveraging Flexible Tree Matching to Repair Broken Locators in Web Automation Scripts
摘要:
Web应用程序不断发展,以集成新功能并修复报告的错误。即使是细微的更改有时也会导致文档对象模型(DOM)的重大修改,DOM是浏览器用于呈现Web应用程序中包含的所有元素的基础模型。与Web应用程序(例如Web测试脚本,爬虫或机器人流程自动化)交互的Web服务器依赖于这种不断发展的DOM,这意味着它们通常特别脆弱。更准确地说,在自动化脚本中观察到的破坏的主要原因是元素定位符,它是自动化脚本用于在DOM中导航的标识符。当DOM发展时,这些标识符往往会中断,从而导致相关脚本无法再定位预期的目标元素。出于这个原因,一些贡献探索了自动修复页面上损坏的定位器的想法。这些作品试图通过扫描新DOM中的所有元素来修复给定的损坏定位器,以找到最相似的一个。不幸的是,当网页的复杂性增加时,这种方法无法扩展,导致计算时间长或不正确的元素修复。因此,本文通过引入一种新的定位器修复解决方案来对此问题采取不同的观点,该解决方案利用树匹配算法来重新定位损坏的定位器。这个解决方案,名为Erratum,实现了一个整体的方法来减少元素搜索空间,这大大简化了定位器修复任务,并大大提高了修复精度。我们比较了一个大规模的基准组成的现实和合成的突变,目前部署在生产中的流行的Web应用程序的Erratum的鲁棒性。我们的实证结果表明,Erratum的准确性优于WATER,一种最先进的解决方案,达到67%。
英文摘要:
Web applications are constantly evolving to integrate new features and fix reported bugs. Even an imperceptible change can sometimes entail significant modifications of the Document Object Model (DOM), which is the underlying model used by browsers to render all the elements included in a web application. Scripts that interact with web applications (e.g. web test scripts, crawlers, or robotic process automation) rely on this continuously evolving DOM which means they are often particularly fragile. More precisely, the major cause of breakages observed in automation scripts are element locators, which are identifiers used by automation scripts to navigate across the DOM. When the DOM evolves, these identifiers tend to break, thus causing the related scripts to no longer locate the intended target elements. For this reason, several contributions explored the idea of automatically repairing broken locators on a page. These works attempt to repair a given broken locator by scanning all elements in the new DOM to find the most similar one. Unfortunately, this approach fails to scale when the complexity of web pages grows, leading either to long computation times or incorrect element repairs. This article, therefore, adopts a different perspective on this problem by introducing a new locator repair solution that leverages tree matching algorithms to relocate broken locators. This solution, named Erratum, implements a holistic approach to reduce the element search space, which greatly eases the locator repair task and drastically improves repair accuracy. We compare the robustness of Erratum on a large-scale benchmark composed of realistic and synthetic mutations applied to popular web applications currently deployed in production. Our empirical results demonstrate that Erratum outperforms the accuracy of WATER, a state-of-the-art solution, by 67%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。