JSART: javascript assertion-based regression testing

作者: Shabnam Mirshokraie , Ali Mesbah

DOI: 10.1007/978-3-642-31753-8_18

关键词: Invariant (computer science)Programming languageJavaScriptCorrectnessOverhead (computing)Web applicationUnobtrusive JavaScriptRegression testingDocument Object ModelComputer science

摘要: Web 2.0 applications rely heavily on JavaScript and client-side runtime manipulation of the DOM tree. One way to provide assurance about correctness such highly evolving dynamic is through regression testing. However, loosely typed, dynamic, notoriously challenging analyze test. We propose an automated technique for testing, which based on-the-fly source code instrumentation analysis infer invariant assertions. These obtained assertions are injected back into uncover faults in subsequent revisions web application under Our approach implemented a tool called Jsart. present our case study conducted nine open evaluate proposed approach. The results show that able effectively generate stable detect with high degree accuracy minimal performance overhead.

参考文章(29)
Ali Mesbah, Arie van Deursen, Stefan Lenselink, Crawling Ajax-Based Web Applications through Dynamic Analysis of User Interface State Changes ACM Transactions on The Web. ,vol. 6, pp. 3- ,(2012) , 10.1145/2109205.2109208
Sam Ratcliff, David R. White, John A. Clark, Searching for invariants using genetic programming and mutation testing Proceedings of the 13th annual conference on Genetic and evolutionary computation - GECCO '11. pp. 1907- 1914 ,(2011) , 10.1145/2001576.2001832
Karthik Pattabiraman, Benjamin Zorn, DoDOM: Leveraging DOM Invariants for Web 2.0 Application Robustness Testing international symposium on software reliability engineering. pp. 191- 200 ,(2010) , 10.1109/ISSRE.2010.17
B. Meyer, Applying 'design by contract' IEEE Computer. ,vol. 25, pp. 40- 51 ,(1992) , 10.1109/2.161279
Cor-Paul Bezemer, Ali Mesbah, Arie van Deursen, Automated security testing of web widget interactions foundations of software engineering. pp. 81- 90 ,(2009) , 10.1145/1595696.1595711
Lori A. Clarke, David S. Rosenblum, A historical perspective on runtime assertion checking in software development ACM SIGSOFT Software Engineering Notes. ,vol. 31, pp. 25- 37 ,(2006) , 10.1145/1127878.1127900
Lei Xu, Baowen Xu, Zhenqiang Chen, Jixiang Jiang, Huowang Chen, Regression testing for Web applications based on slicing computer software and applications conference. pp. 652- 656 ,(2003) , 10.1109/CMPSAC.2003.1245411
Mark Harman, Nadia Alshahwan, Automated Session Data Repair for Web Application Regression Testing international conference on software testing, verification, and validation. pp. 298- 307 ,(2008) , 10.1109/ICST.2008.56
Michael D. Ernst, Jeff H. Perkins, Philip J. Guo, Stephen McCamant, Carlos Pacheco, Matthew S. Tschantz, Chen Xiao, The Daikon system for dynamic detection of likely invariants Science of Computer Programming. ,vol. 69, pp. 35- 45 ,(2007) , 10.1016/J.SCICO.2007.01.015