Similarity-based Web Element Localization for Robust Test Automation
ACM Transactions on Software Engineering and Methodology · 31.07.2023 · 32 (3) · 1-30
DOI: 10.1145/3571855 ↗Kurz gefasst
Fachartikel in der Zeitschrift ACM Transactions on Software Engineering and Methodology, online erschienen am 26.04.2023. Verfasst von Michel Nass und 4 weiteren Autor:innen. Die Arbeit wurde bisher 47-mal zitiert (Crossref) und nennt 59 Literaturangaben. Gefördert von: KKS Foundation, Blekinge Institute of Technology, Swedish Scientific Council.
Abstract (Originalsprache)
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. However, one crucial challenge is how to reliably identify and locate the correct target web elements when the website evolves between releases or otherwise fail and report an issue. This article 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. This experimental study compares Similo to a baseline approach for web element localization. To get an extensive empirical basis, we target 48 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; it failed to locate the correct target web element in 91 out of 801 considered cases (i.e., 11%) compared to 214 failed cases (i.e., 27%) for the baseline approach. The time efficiency of Similo was also considered, where the average time to locate a web element was determined to be 4 milliseconds. However, since the cost of web interactions (e.g., a click) is typically on the order of hundreds of milliseconds, the additional computational demands of Similo can be considered negligible. 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.
Förderung
- KKS Foundation
- Blekinge Institute of Technology
- Swedish Scientific Council
- Basing Software Testing on Information Theory
Zitieren
APA
Nass, M., Alégroth, E., Feldt, R., Leotta, M., & Ricca, F. (2023). Similarity-based Web Element Localization for Robust Test Automation. ACM Transactions on Software Engineering and Methodology, 32(3), 1-30. https://doi.org/10.1145/3571855
Vancouver
Nass M, Alégroth E, Feldt R, Leotta M, Ricca F. Similarity-based Web Element Localization for Robust Test Automation. ACM Transactions on Software Engineering and Methodology. 2023;32(3):1-30. doi:10.1145/3571855
BibTeX
@article{Nass2023,
author = {Nass, Michel and Alégroth, Emil and Feldt, Robert and Leotta, Maurizio and Ricca, Filippo},
title = {Similarity-based Web Element Localization for Robust Test Automation},
journal = {ACM Transactions on Software Engineering and Methodology},
year = {2023},
volume = {32},
number = {3},
pages = {1--30},
doi = {10.1145/3571855}
}
EUVIMED