Visual vs. DOM-Based Web Locators: An Empirical Study

被引:0
|
作者
Leotta, Maurizio [1 ]
Clerissi, Diego [1 ]
Ricca, Filippo [1 ]
Tonella, Paolo [2 ]
机构
[1] Univ Genoa, DIBRIS, I-16126 Genoa, Italy
[2] Fondazione Bruno Kessler, Trento, Italy
来源
WEB ENGINEERING, ICWE 2014 | 2014年 / 8541卷
关键词
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Automation in Web testing has been successfully supported by DOM-based tools that allow testers to program the interactions of their test cases with the Web application under test. More recently a new generation of visual tools has been proposed where a test case interacts with the Web application by recognising the images of the widgets that can be actioned upon and by asserting the expected visual appearance of the result. In this paper, we first discuss the inherent robustness of the locators created by following the visual and DOM-based approaches and we then compare empirically a visual and a DOM-based tool, taking into account both the cost for initial test suite development from scratch and the cost for test suite maintenance during code evolution. Since visual tools are known to be computationally demanding, we also measure the test suite execution time. Results indicate that DOM-based locators are generally more robust than visual ones and that DOM-based test cases can be developed from scratch and evolved at lower cost. Moreover, DOM-based test cases require a lower execution time. However, depending on the specific features of the Web application under test and its expected evolution, in some cases visual locators might be the best choice (e.g., when the visual appearance is more stable than the structure).
引用
收藏
页码:322 / 340
页数:19
相关论文
共 50 条
  • [1] PESTO: A Tool for Migrating DOM-based to Visual Web Tests
    Stocco, Andrea
    Leotta, Maurizio
    Ricca, Filippo
    Tonella, Paolo
    [J]. 2014 14TH IEEE INTERNATIONAL WORKING CONFERENCE ON SOURCE CODE ANALYSIS AND MANIPULATION (SCAM 2014), 2014, : 65 - 70
  • [2] Automated Generation of Visual Web Tests from DOM-based Web Tests
    Leotta, Maurizio
    Stocco, Andrea
    Ricca, Filippo
    Tonella, Paolo
    [J]. 30TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING, VOLS I AND II, 2015, : 775 - 782
  • [3] PESTO: Automated migration of DOM-based Web tests towards the visual approach
    Leotta, Maurizio
    Stocco, Andrea
    Ricca, Filippo
    Tonella, Paolo
    [J]. SOFTWARE TESTING VERIFICATION & RELIABILITY, 2018, 28 (04):
  • [4] DOM-based multi-factor web information extraction study
    Zhang, Shun
    Chen, Xingshu
    Tan, Jun
    [J]. MATERIALS, MECHATRONICS AND AUTOMATION, PTS 1-3, 2011, 467-469 : 1267 - 1272
  • [5] Automated visual classification of DOM-based presentation failure reports for responsive web pages
    Althomali, Ibrahim
    Kapfhammer, Gregory M.
    McMinn, Phil
    [J]. SOFTWARE TESTING VERIFICATION & RELIABILITY, 2021, 31 (04):
  • [6] Detection of DOM-Based XSS Attack on Web Application
    Ninawe, Shubhangi
    Wajgi, Rakhi
    [J]. INTELLIGENT COMMUNICATION TECHNOLOGIES AND VIRTUAL MOBILE NETWORKS, ICICV 2019, 2020, 33 : 633 - 641
  • [7] DOM-based Web Pages to Determine the Structure of the Similarity Algorithm
    Kang, Chunying
    [J]. 2009 THIRD INTERNATIONAL SYMPOSIUM ON INTELLIGENT INFORMATION TECHNOLOGY APPLICATION, VOL 2, PROCEEDINGS, 2009, : 245 - 248
  • [8] An Improving Approach for DOM-Based Web Test Suite Repair
    Chen, Wei
    Cao, Hanyang
    Blanc, Xavier
    [J]. WEB ENGINEERING, ICWE 2021, 2021, 12706 : 372 - 387
  • [9] DOM-Based Print-Link Detection for Web Article Extraction
    Liu, Sam
    Lim, Suk-Hwan
    Liu, Jerry
    [J]. IMAGING AND PRINTING IN A WEB 2.0 WORLD II, 2011, 7879
  • [10] DOMISA: DOM-based information space adsorption for Web information hierarchy mining
    Kao, HY
    Ho, JM
    Chen, MS
    [J]. PROCEEDINGS OF THE FOURTH SIAM INTERNATIONAL CONFERENCE ON DATA MINING, 2004, : 312 - 320