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
来源
Frontiers of Computer Science | 2022年 / 16卷
关键词
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.
引用
收藏
相关论文
共 26 条
[11]  
Selakovic M(undefined)undefined undefined undefined undefined-undefined
[12]  
Sen K(undefined)undefined undefined undefined undefined-undefined
[13]  
Staicu C(undefined)undefined undefined undefined undefined-undefined
[14]  
Li Y F(undefined)undefined undefined undefined undefined-undefined
[15]  
Das P K(undefined)undefined undefined undefined undefined-undefined
[16]  
Dowe D L(undefined)undefined undefined undefined undefined-undefined
[17]  
Arcuri A(undefined)undefined undefined undefined undefined-undefined
[18]  
Briand L C(undefined)undefined undefined undefined undefined-undefined
[19]  
Dias-Neto A C(undefined)undefined undefined undefined undefined-undefined
[20]  
Travassos G H(undefined)undefined undefined undefined undefined-undefined