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 条
  • [21] LTF: A Model-based Load Testing Framework for Web Applications
    Zhou, Junzan
    Zhou, Bo
    Li, Shanping
    2014 14TH INTERNATIONAL CONFERENCE ON QUALITY SOFTWARE (QSIC 2014), 2014, : 154 - 163
  • [22] Model-based testing of thin-client web applications
    Koopman, Pieter
    Plasmeijer, Rinus
    Achten, Peter
    FORMAL APPROACHES TO SOFTWARE TESTING AND RUNTIME VERIFICATION, 2006, 4262 : 115 - +
  • [23] Advances in Testing Java']JavaScript-Based Web Applications
    Mesbah, Ali
    ADVANCES IN COMPUTERS, VOL 97, 2015, 97 : 201 - 235
  • [24] Model-based Automated Testing of Mobile Applications: An Industrial Case Study
    Karlsson, Stefan
    Causevic, Adnan
    Sundmark, Daniel
    Larsson, Marten
    2021 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW 2021), 2021, : 130 - 137
  • [25] Model-Based Automated Accessibility Testing
    Brajnik, Giorgio
    Pighin, Chiara
    Fabbro, Sara
    ASSETS'15: PROCEEDINGS OF THE 17TH INTERNATIONAL ACM SIGACCESS CONFERENCE ON COMPUTERS & ACCESSIBILITY, 2015, : 319 - 320
  • [26] Model-based testing, test case prioritization and testing of virtual reality applications
    Le Traon, Yves
    Xie, Tao
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2023, 33 (08):
  • [27] Model-Based On-the-Fly Testing of Web Applications and Multilingual Websites
    Dulz, Winfried
    SOFTWARE TECHNOLOGIES, ICSOFT 2018, 2019, 1077 : 55 - 78
  • [28] Model-based testing service on the web
    Jaaskelainen, Antti
    Katara, Mika
    Kervinen, Antti
    Heiskanen, Henri
    Maumumaa, Mika
    Paakkonen, Tuula
    TESTING OF SOFTWARE AND COMMUNICATING SYSTEMS, PROCEEDINGS, 2008, 5047 : 38 - +
  • [29] Model-Based Test Oracle Generation for Automated Unit Testing of Agent Systems
    Padgham, Lin
    Zhang, Zhiyong
    Thangarajah, John
    Miller, Tim
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2013, 39 (09) : 1230 - 1244
  • [30] Model-based testing of thin-client web applications and navigation input
    Koopman, Pieter
    Achten, Peter
    Plasmeijer, Rinus
    PRACTICAL ASPECTS OF DECLARATIVE LANGUAGES, PROCEEDINGS, 2008, 4902 : 299 - 315