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

基于相似性的Web元素定位方法

Similarity-based web element localization for robust test automation

Michel Nass, Emil Alégroth, Robert Feldt, Maurizio Leotta, Filippo Ricca

摘要:

非鲁棒(脆弱)的测试执行是一个常见的报告在基于GUI的测试自动化的挑战,尽管有很多研究和几个建议的解决方案。测试脚本需要对测试应用程序中的(微小)更改具有弹性,但同时在检测需要调查的潜在问题时失败。测试脚本脆弱性是一个多方面的问题,但一个关键的挑战是当网站在发布之间演变或失败并报告问题时,可靠地识别和定位正确的目标Web元素。本文提出并评估了一种新的方法,称为基于相似性的网页元素本地化(Similo),它利用多个网页元素定位器参数的信息来识别目标元素使用加权相似性得分。该实验研究将Similo与Web元素本地化的基线方法进行了比较。为了获得广泛的经验基础,我们在评估中针对互联网上最受欢迎的40个网站。鲁棒性是通过计算在最近的网站版本中找到的Web元素的数量来考虑的,与旧版本中存在的Web元素的数量相比。实验结果表明,Similo优于代表当前最先进技术的基线;在598个考虑的案例中,有72个案例未能找到正确的目标Web元素,而基线方法有146个失败案例。这项研究提出的证据表明,量化的Web元素的多个属性之间的相似性时,试图找到他们,在我们提出的Similo方法,是有益的。在可接受的效率下,Similo提供了显著更高的有效性(即,鲁棒性)比基线web元素本地化方法。

英文摘要:

Non-robust (fragile) test execution is a commonly reported challenge in GUI-based test automation, despite much research and several proposed solutions. A test script needs to be resilient to (minor) changes in the tested application but, at the same time, fail when detecting potential issues that require investigation. Test script fragility is a multi-faceted problem, but one crucial challenge is reliably identifying and locating the correct target web elements when the website evolves between releases or otherwise fails and reports an issue. This paper proposes and evaluates a novel approach called similarity-based web element localization (Similo), which leverages information from multiple web element locator parameters to identify a target element using a weighted similarity score. The experimental study compares Similo to a baseline approach for web element localization. To get an extensive empirical basis, we target 40 of the most popular websites on the Internet in our evaluation. Robustness is considered by counting the number of web elements found in a recent website version compared to how many of these existed in an older version. Results of the experiment show that Similo outperforms the baseline representing the current state-of-the-art; it failed to locate the correct target web element in 72 out of 598 considered cases compared to 146 failed cases for the baseline approach. This study presents evidence that quantifying the similarity between multiple attributes of web elements when trying to locate them, as in our proposed Similo approach, is beneficial. With acceptable efficiency, Similo gives significantly higher effectiveness (i.e., robustness) than the baseline web element localization approach.

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

↑