Ranking approaches for similarity-based web element location☆

被引:0
|
作者
Coppola, Riccardo [1 ]
Feldt, Robert [2 ]
Nass, Michel [3 ]
Alegroth, Emil [3 ]
机构
[1] Politecn Torino, Turin, Italy
[2] Chalmers Univ Technol, Gothenburg, Sweden
[3] Blekinge Inst Technol, Karlskrona, Sweden
关键词
GUI testing; Test automation; Test case robustness; Web element locators; XPath locators;
D O I
10.1016/j.jss.2024.112286
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Context: GUI-based tests for web applications are frequently broken by fragility, i.e. regression tests fail due to changing properties of the web elements. The most influential factor for fragility are the locators used in the scripts, i.e. the means of identifying the elements of the GUI. Objective: We extend a state-of-the-art Multi-Locator solution that considers 14 locators from the DOM model of a web application, and identifies overlapping nodes in the DOM tree (VON-Similo). We augment the approach with standard Machine Learning and Learning to Rank (LTR) approaches to aid the location of web elements. Method: We document an experiment with a ground truth of 1163 web element pairs, taken from different releases of 40 web applications, to compare the robustness of the algorithms to locator weight change, and the performance of LTR approaches in terms of MeanRank and PctAtN. Results: Using LTR algorithms, we obtain a maximum probability of finding the correct target at the first position of 88.4% (lowest 82.57%), and among the first three positions of 94.79% (lowest 91.86%). The best mean rank of the correct candidate is 1.57. Conclusion: The similarity-based approach proved to be highly dependable in the context of web application testing, where a low percentage of matching errors can still be accepted.
引用
收藏
页数:15
相关论文
共 50 条
  • [1] Similarity-based Web Element Localization for Robust Test Automation
    Nass, Michel
    Alegroth, Emil
    Feldt, Robert
    Leotta, Maurizio
    Ricca, Filippo
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2023, 32 (03)
  • [2] CLARA: citation and similarity-based author ranking
    Bedru, Hayat D.
    Zhang, Chen
    Xie, Feng
    Yu, Shuo
    Hussain, Iftikhar
    SCIENTOMETRICS, 2023, 128 (02) : 1091 - 1117
  • [3] CLARA: citation and similarity-based author ranking
    Hayat D. Bedru
    Chen Zhang
    Feng Xie
    Shuo Yu
    Iftikhar Hussain
    Scientometrics, 2023, 128 : 1091 - 1117
  • [4] A similarity-based approach to ranking multicriteria alternatives
    Deng, Hepu
    ADVANCED INTELLIGENT COMPUTING THEORIES AND APPLICATIONS, PROCEEDINGS: WITH ASPECTS OF ARTIFICIAL INTELLIGENCE, 2007, 4682 : 253 - 262
  • [5] Ranking Documents using Similarity-based PageRanks
    Hatakenaka, Shota
    Miura, Takao
    2011 IEEE PACIFIC RIM CONFERENCE ON COMMUNICATIONS, COMPUTERS AND SIGNAL PROCESSING (PACRIM), 2011, : 19 - 24
  • [6] Similarity-based Web service matchmaking
    Wu, J
    Wu, ZH
    2005 IEEE INTERNATIONAL CONFERENCE ON SERVICES COMPUTING, VOL 1, PROCEEDINGS, 2005, : 287 - 294
  • [7] Similarity-based Web Browser Optimization
    Wang, Haoyu
    Liu, Mengxin
    Guo, Yao
    Chen, Xiangqun
    WWW'14: PROCEEDINGS OF THE 23RD INTERNATIONAL CONFERENCE ON WORLD WIDE WEB, 2014, : 575 - 584
  • [8] Similarity-based approaches to virtual screening
    Willett, P
    BIOCHEMICAL SOCIETY TRANSACTIONS, 2003, 31 : 603 - 606
  • [9] Similarity-based ranking and query processing in multimedia databases
    Candan, KS
    Li, WS
    Priya, ML
    DATA & KNOWLEDGE ENGINEERING, 2000, 35 (03) : 259 - 298
  • [10] Semrank: A Semantic Similarity-Based Tweets Ranking Approach
    Singh, Jagrati
    Singh, Anil Kumar
    INTERNATIONAL JOURNAL OF COGNITIVE INFORMATICS AND NATURAL INTELLIGENCE, 2021, 15 (03) : 74 - 96