Journal article
Automatic fault localization for client-side JavaScript
Software testing, verification & reliability, Vol.26(1), pp.69-88
01/2016
DOI: 10.1002/stvr.1576
Abstract
JAVASCRIPT is 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 make JAVASCRIPT code error-prone; unfortunately, JAVASCRIPT fault 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 localize JAVASCRIPT faults based on dynamic analysis, tracing and backward slicing of JAVASCRIPT code. This technique is capable of handling features of JAVASCRIPT code that have traditionally been difficult to analyse, including eval, anonymous functions and minified code. The approach is implemented in an open source tool called AUTOFLOX, and evaluation results indicate that it is capable of (1) automatically localizing DOM-related JAVASCRIPT faults with high accuracy (over 96%) and no false-positives and (2) isolating JAVASCRIPT faults in production websites and actual bugs from real-world web applications.
Details
- Title: Subtitle
- Automatic fault localization for client-side JavaScript
- Creators
- Frolin S Ocariza Jr - University of British ColumbiaGuanpeng Li - University of British ColumbiaKarthik Pattabiraman - University of British ColumbiaAli Mesbah - University of British Columbia
- Resource Type
- Journal article
- Publication Details
- Software testing, verification & reliability, Vol.26(1), pp.69-88
- Publisher
- Blackwell Publishing Ltd
- DOI
- 10.1002/stvr.1576
- ISSN
- 0960-0833
- eISSN
- 1099-1689
- Number of pages
- 20
- Grant note
- DOI: 10.13039/501100000038, name: National Sciences and Engineering Research Council of Canada
- Language
- English
- Date published
- 01/2016
- Academic Unit
- Computer Science
- Record Identifier
- 9984259409102771
Metrics
6 Record Views