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

被引:4
作者
Gao, Pengfei [1 ]
Xu, Yongjie [1 ]
Song, Fu [1 ]
Chen, Taolue [2 ]
机构
[1] ShanghaiTech Univ, Sch Informat Sci & Technol, Shanghai 201210, Peoples R China
[2] Univ Surrey, Dept Comp Sci, Guildford GU2 7XH, Surrey, England
基金
中国国家自然科学基金;
关键词
model-based testing; automated testing; !text type='Java']Java[!/text]Script Web applications;
D O I
10.1007/s11704-020-0356-7
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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.
引用
收藏
页数:14
相关论文
共 31 条
[1]  
Alshahwan N., 2011, 2011 26th IEEE/ACM International Conference on Automated Software Engineering, P3, DOI 10.1109/ASE.2011.6100082
[2]   A Survey of Dynamic Analysis and Test Generation for Java']JavaScript [J].
Andreasen, Esben ;
Gong, Liang ;
Moller, Anders ;
Pradel, Michael ;
Selakovic, Marija ;
Sen, Koushik ;
Staicu, Cristian-Alexandru .
ACM COMPUTING SURVEYS, 2017, 50 (05)
[3]  
Andrews A. A., 2005, SOFTW SYST MODEL, V4, P326, DOI DOI 10.1007/S10270-004-0077-7
[4]  
Andrews James H., 2008, 2008 23rd IEEE/ACM International Conference on Automated Software Engineering, P19, DOI 10.1109/ASE.2008.12
[5]  
[Anonymous], 1996, Partial-Order Methods for the Verification of Concurrent Systems, DOI DOI 10.1007/3-540-60761-7
[6]  
Arcuri Andrea, 2010, Proceedings of the Third IEEE International Conference on Software Testing, Verification and Validation (ICST 2010), P469, DOI 10.1109/ICST.2010.16
[7]   A Hitchhiker's guide to statistical tests for assessing randomized algorithms in software engineering [J].
Arcuri, Andrea ;
Briand, Lionel .
SOFTWARE TESTING VERIFICATION & RELIABILITY, 2014, 24 (03) :219-250
[8]  
Artzi S, 2011, 2011 33RD INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE), P571, DOI 10.1145/1985793.1985871
[9]   Evaluating the Effect of Test Case Length on GUI Test Suite Performance [J].
Carino, Santo ;
Andrews, James H. .
10TH INTERNATIONAL WORKSHOP ON AUTOMATION OF SOFTWARE TEST AST 2015, 2015, :13-17
[10]  
Cheng L, 2017, IEEE INT CONF AUTOM, P849, DOI 10.1109/ASE.2017.8115696