An automated model-based approach to repair test suites of evolving web applications

被引:10
|
作者
Imtiaz, Javaria [1 ]
Iqbal, Muhammad Zohaib [1 ,2 ]
Khan, Muhammad Uzair [1 ,2 ]
机构
[1] Natl Univ Comp & Emerging Sci, Dept Comp Sci, Quest Lab, Islamabad, Pakistan
[2] Natl Ctr Robot & Automat NCRA, UAV Dependabil Lab, Islamabad, Pakistan
关键词
Web testing; Automated test scripts; Regression testing; Model-based; Web test repair;
D O I
10.1016/j.jss.2020.110841
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Capture-Replay tools are widely used for the automated testing of web applications The scripts written for these Capture-Replay tools are strongly coupled with the web elements of web applications. These test scripts are sensitive to changes in web elements and require repairs as the web pages evolve. In this paper, we propose an automated model-based approach to repair the Capture-Replay test scripts that are broken due to such changes. Our approach repairs the test scripts that may be broken due to the breakages (e.g., broken locators, missing web elements) reported in the existing test breakage taxonomy. Our approach is based on a DOM-based strategy and is independent of the underlying Capture-Replay tool. We developed a tool to demonstrate the applicability of the approach. We perform an empirical study on seven subject applications. The results show that the approach successfully repairs the broken test scripts while maintaining the same DOM coverage and fault-finding capability. We also evaluate the usefulness of the repaired test scripts according to the opinion of professional testers. We conduct an experiment to compare our approach with the state-of-the-art DOM-based test repair approach, WATER. The comparison results show that our approach repairs more test breakages than WATER. (c) 2020 Elsevier Inc. All rights reserved.
引用
收藏
页数:26
相关论文
共 50 条
  • [1] A mutation test based approach to evaluating test suites for Web applications
    Lacanienta, Rogene
    Takada, Shingo
    Tanno, Haruto
    Zhang, Xiaojing
    Hoshino, Takashi
    KNOWLEDGE-BASED SOFTWARE ENGINEERING, 2012, 240 : 227 - +
  • [2] Model-based automated testing of JavaScript Web applications via longer test sequences
    GAO Pengfei
    XU Yongjie
    SONG Fu
    CHEN Taolue
    Frontiers of Computer Science, 2022, 16 (03)
  • [3] Model-based automated testing of JavaScript Web applications via longer test sequences
    Pengfei Gao
    Yongjie Xu
    Fu Song
    Taolue Chen
    Frontiers of Computer Science, 2022, 16
  • [4] Model-Based Filtering of Combinatorial Test Suites
    Triki, Taha
    Ledru, Yves
    du Bousquet, Lydie
    Dadeau, Frederic
    Botella, Julien
    FUNDAMENTAL APPROACHES TO SOFTWARE ENGINEERING, FASE 2012, 2012, 7212 : 439 - 454
  • [5] Model-Based Test Case Generation for Web Applications
    Nabuco, Miguel
    Paiva, Ana C. R.
    COMPUTATIONAL SCIENCE AND ITS APPLICATIONS, PART VI - ICCSA 2014, 2014, 8584 : 248 - 262
  • [6] Model-based automated testing of Java']JavaScript Web applications via longer test sequences
    Gao, Pengfei
    Xu, Yongjie
    Song, Fu
    Chen, Taolue
    FRONTIERS OF COMPUTER SCIENCE, 2022, 16 (03)
  • [7] Fast Model-Based Fault Localisation with Test Suites
    Birch, Geoff
    Fischer, Bernd
    Poppleton, Michael R.
    TESTS AND PROOFS, TAP 2015, 2015, 9154 : 38 - 57
  • [8] An automated model-based approach for unit-level performance test generation of mobile applications
    Usman, Muhammad
    Iqbal, Muhammad Zohaib
    Khan, Muhammad Uzair
    JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2020, 32 (01)
  • [9] A Model-based Approach to Address the Design of Web 2.0 Applications based on Web Services
    Paterno, Fabio
    Santoro, Carmen
    Spano, Lucio Davide
    INTERACTION DESIGN AND ARCHITECTURES, 2008, (5-6) : 17 - 22
  • [10] Vulnerability Model-based Web Applications Security Testing Approach
    He Cheng
    Liu Yanfei
    ADVANCES IN MECHATRONICS AND CONTROL ENGINEERING III, 2014, 678 : 468 - 472