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 条
  • [31] Model-based testing in practice: An experience report from the web applications domain
    Garousi, Vahid
    Keles, Alper Bugra
    Balaman, Yunus
    Guler, Zeynep Ozdemir
    Arcuri, Andrea
    JOURNAL OF SYSTEMS AND SOFTWARE, 2021, 180
  • [32] A model based testing technique to test web applications using Statecharts
    Reza, Hassan
    Ogaard, Kirk
    Malge, Amarnath
    PROCEEDINGS OF THE FIFTH INTERNATIONAL CONFERENCE ON INFORMATION TECHNOLOGY: NEW GENERATIONS, 2008, : 183 - 188
  • [33] Guided Mutation Testing for Java']JavaScript Web Applications
    Mirshokraie, Shabnam
    Mesbah, Ali
    Pattabiraman, Karthik
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2015, 41 (05) : 429 - 444
  • [34] Model-Based Testing of Networked Applications
    Li, Yishuai
    Pierce, Benjamin C.
    Zdancewic, Steve
    ISSTA '21: PROCEEDINGS OF THE 30TH ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, 2021, : 529 - 539
  • [35] Testing Web Services with Model-Based Mutation
    Siavashi, Faezeh
    Iqbal, Junaid
    Truscan, Dragos
    Vain, Juri
    SOFTWARE TECHNOLOGIES, 2017, 743 : 45 - 67
  • [36] Model-Based Testing of Web Service with EFSM
    Sun, Fuzhen
    Liao, Lejian
    Zhang, Longbo
    PRACTICAL APPLICATIONS OF INTELLIGENT SYSTEMS, ISKE 2013, 2014, 279 : 91 - +
  • [37] SMartyTesting: A Model-Based Testing Approach for Deriving Software Product Line Test Sequences
    Petry, Kleber
    Oliveira, Edson, Jr.
    Costa, Leandro
    Zanin, Aline
    Zorzo, Avelino F.
    ICEIS: PROCEEDINGS OF THE 23RD INTERNATIONAL CONFERENCE ON ENTERPRISE INFORMATION SYSTEMS - VOL 2, 2021, : 165 - 172
  • [38] Automated testing for web applications
    Selvakumar, M.
    Dr. Dobb's Journal, 1999, 24 (05):
  • [39] Automating the Evaluation of Usability Remotely for Web Applications via a Model-Based Approach
    Harrati, Nouzha
    Bouchrika, Imed
    Tari, Abdelkamel
    Ladjailia, Ammar
    2015 FIRST INTERNATIONAL CONFERENCE ON NEW TECHNOLOGIES OF INFORMATION AND COMMUNICATION (NTIC), 2015,
  • [40] Automated Software Testing for PHP Web Based Applications
    Caprita, Dan
    Mazilescu, Vasile
    SSE '09: PROCEEDINGS OF THE 11TH WSEAS INTERNATIONAL CONFERENCE ON SUSTAINABILITY IN SCIENCE ENGINEERING, 2009, : 285 - +