Automatic fault localization for client‐side JavaScript
- 14 April 2015
- journal article
- research article
- Published by Wiley in Software Testing, Verification and Reliability
- Vol. 26 (1) , 69-88
Abstract
Summary: JAVASCRIPTis a scripting language that plays a prominent role in web applications today. It is dynamic, loosely typed and asynchronous and is extensively used to interact with the Document Object Model (DOM) at runtime. All these characteristics makeJAVASCRIPTcode error‐prone; unfortunately,JAVASCRIPTfault localization remains a tedious and mainly manual task. Despite these challenges, the problem has received very limited research attention. This paper proposes an automated technique to localizeJAVASCRIPTfaults based on dynamic analysis, tracing and backward slicing ofJAVASCRIPTcode. This technique is capable of handling features ofJAVASCRIPTcode that have traditionally been difficult to analyse, includingeval, anonymous functions and minified code. The approach is implemented in an open source tool calledAUTOFLOX, and evaluation results indicate that it is capable of (1) automatically localizing DOM‐relatedJAVASCRIPTfaults with high accuracy (over 96%) and no false‐positives and (2) isolatingJAVASCRIPTfaults in production websites and actual bugs from real‐world web applications. Copyright © 2015 John Wiley & Sons, Ltd.Keywords
Funding Information
- National Sciences and Engineering Research Council of Canada
This publication has 35 references indexed in Scilit:
- JSEFT: Automated Javascript Unit Test Generation2015
- Injecting mechanical faults to localize developer faults for evolving software2013
- Injecting mechanical faults to localize developer faults for evolving softwareACM SIGPLAN Notices, 2013
- Interactive record/replay for web application debugging2013
- Jalangi: a selective record-replay and dynamic analysis framework for JavaScript2013
- JSART: JavaScript Assertion-Based Regression Testing2012
- Modeling the HTML DOM and browser API in static analysis of JavaScript web applications2011
- The Eval That Men Do2011
- Locating causes of program failures2005
- Expertise in debugging computer programs: A process analysisInternational Journal of Man-Machine Studies, 1985