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 条
[1]  
Mesbah A(2012)Crawling ajaxbased web applications through dynamic analysis of user interface state changes ACM Transactions on the Web 6 1-30
[2]  
Van Deursen A(2015)Guided mutation testing for JavaScript Web Applications IEEE Transactions on Software Engineering 41 429-444
[3]  
Lenselink S(2017)A survey of dynamic analysis and test generation for JavaScript ACM Computing Surveys 50 66:1-66:36
[4]  
Mirshokraie S(2014)Two decades of Web application testing — A survey of recent advances Information Systems 43 20-54
[5]  
Mesbah A(2014)A hitchhiker’s guide to statistical tests for assessing randomized algorithms in software engineering Software Testing, Verification and Reliability 24 219-250
[6]  
Pattabiraman K(2010)A picture from the model-based testing area: Concepts, techniques, and challenges Advances in Computers 80 45-120
[7]  
Andreasen E(2012)A taxonomy of model-based testing approaches Software Testing, Verification & Reliability 22 297-312
[8]  
Gong L(2005)Testing Web applications by modeling with fsms Software and System Modeling 4 326-345
[9]  
Møller A(undefined)undefined undefined undefined undefined-undefined
[10]  
Pradel M(undefined)undefined undefined undefined undefined-undefined