Model-based automated testing of JavaScript Web applications via longer test sequences

被引:0
|
作者
Pengfei Gao
Yongjie Xu
Fu Song
Taolue Chen
机构
[1] ShanghaiTech University,School of Information Science and Technology
[2] University of Surrey,Department of Computer Science
来源
关键词
model-based testing; automated testing; JavaScript Web applications;
D O I
暂无
中图分类号
学科分类号
摘要
JavaScript has become one of the most widely used languages for Web development. Its dynamic and event-driven features make it challenging to ensure the correctness of Web applications written in JavaScript. A variety of dynamic analysis techniques have been proposed which are, however, limited in either coverage or scalability. In this paper, we propose a simple, yet effective, model-based automated testing approach to achieve a high code-coverage within the time budget via testing with longer event sequences. We implement our approach as an open-source tool LJS, and perform extensive experiments on 21 publicly available benchmarks. On average, LJS is able to achieve 86.5% line coverage in 10 minutes. Compared with JSDEP, a state-of-the-art breadth-first search based automated testing tool enriched with partial order reduction, the coverage of LJS is 11%–19% higher than that of JSDEP on real-world large Web applications. Our empirical findings support that proper longer test sequences can achieve a higher code coverage in JavaScript Web application testing.
引用
收藏
相关论文
共 50 条
  • [41] Automated Functional Testing based on the Navigation of Web Applications
    Garcia, Boni
    Duenas, Juan C.
    ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2011, (61): : 49 - 65
  • [42] Automating Test Case Generation for Android Applications using Model-based Testing
    Khan, Usman Habib
    Khan, Muhammad Naeem Ahmed
    Mirza, Aamir Mehmood
    Akram, Muhammad
    Fakhar, Shariqa
    Hussain, Shumaila
    Magsi, Irfan Ahmed
    Wagan, Raja Asif
    EMITTER-INTERNATIONAL JOURNAL OF ENGINEERING TECHNOLOGY, 2022, 10 (01) : 63 - 82
  • [43] Enriching model-based Web applications presentation
    Carlos Preciado, Juan
    Linaje, Marino
    Sanchez-Figueroa, Fernando
    JOURNAL OF WEB ENGINEERING, 2008, 7 (03): : 239 - 256
  • [44] Testing the Usability and Accessibility of Smart TV Applications Using an Automated Model-Based Approach
    Bures, Miroslav
    Macik, Miroslav
    Ahmed, Bestoun S.
    Rechtberger, Vaclav
    Slavik, Pavel
    IEEE TRANSACTIONS ON CONSUMER ELECTRONICS, 2020, 66 (02) : 134 - 143
  • [45] Test Oracle Strategies for Model-Based Testing
    Li, Nan
    Offutt, Jeff
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2017, 43 (04) : 372 - 395
  • [46] AbsCon: A Test Concretizer for Model-based Testing
    Vanhecke, Jeremy
    Devroey, Xavier
    Perrouin, Gilles
    2019 IEEE 12TH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW 2019), 2019, : 15 - 22
  • [47] Model-Based Penetration Test Framework for Web Applications Using TTCN-3
    Xiong, Pulei
    Stepien, Bernard
    Peyton, Liam
    E-TECHNOLOGIES-INNOVATION IN AN OPEN WORLD, 2009, 26 : 141 - 154
  • [48] An Object-Oriented Web Test Model for testing Web applications
    Kung, DC
    Liu, CH
    Hsia, P
    FIRST ASIA-PACIFIC CONFERENCE ON QUALITY SOFTWARE, PROCEEDINGS, 2000, : 111 - 120
  • [49] An Object-oriented Web test model for testing Web applications
    Kung, DC
    Liu, CH
    Hsia, P
    24TH ANNUAL INTERNATIONAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE (COSPSAC 2000), 2000, 24 : 537 - 542
  • [50] AutoFun: An Automated Model-based Functional Testing Tool
    Domingues, Anderson
    Rodrigues, Elder M.
    Bernardino, Maicon
    I BRAZILIAN SYMPOSIUM ON SYSTEMATIC AND AUTOMATED SOFTWARE TESTING (SAST 2016), 2016,