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 条
  • [1] 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 (03) : 57 - 70
  • [2] 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)
  • [3] Model-Based Development of Java']JavaScript Web Applications
    Wagner, Gerd
    CURRENT TRENDS IN WEB ENGINEERING, ICWE 2017, 2018, 10544 : 267 - 268
  • [4] Automated acceptance testing of JavaScript web applications
    Negara, N. (negara@ualberta.ca), 2012, IEEE Computer Society
  • [5] Model-based testing for Web applications
    Miao H.-K.
    Chen S.-B.
    Zeng H.-W.
    Jisuanji Xuebao/Chinese Journal of Computers, 2011, 34 (06): : 1012 - 1028
  • [6] A Framework for Automated Testing of Java']JavaScript Web Applications
    Artzi, Shay
    Dolby, Julian
    Jensen, Simon Holm
    Moller, Anders
    Tip, Frank
    2011 33RD INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE), 2011, : 571 - 580
  • [7] An automated model-based approach to repair test suites of evolving web applications
    Imtiaz, Javaria
    Iqbal, Muhammad Zohaib
    Khan, Muhammad Uzair
    JOURNAL OF SYSTEMS AND SOFTWARE, 2021, 171
  • [8] Server interface descriptions for automated testing of JavaScript web applications
    Jensen, Casper S.
    Møller, Anders
    Su, Zhendong
    2013 9th Joint Meeting of the European Software Engineering Conference and the ACM SIGSOFT Symposium on the Foundations of Software Engineering, ESEC/FSE 2013 - Proceedings, 2013, : 510 - 520
  • [9] Model-based load testing of web applications
    Wang, Xingen
    Zhou, Bo
    Li, Wei
    JOURNAL OF THE CHINESE INSTITUTE OF ENGINEERS, 2013, 36 (01) : 74 - 86
  • [10] Model-Based Vulnerability Testing for Web Applications
    Lebeau, Franck
    Legeard, Bruno
    Peureux, Fabien
    Vernotte, Alexandre
    IEEE SIXTH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW 2013), 2013, : 445 - 452