• DocumentCode
    2086979
  • Title

    AutoFLox: An Automatic Fault Localizer for Client-Side JavaScript

  • Author

    Ocariza, Frolin S., Jr. ; Pattabiraman, Karthik ; Mesbah, Ali

  • Author_Institution
    Univ. of British Columbia, Vancouver, BC, Canada
  • fYear
    2012
  • fDate
    17-21 April 2012
  • Firstpage
    31
  • Lastpage
    40
  • Abstract
    Java Script is a scripting language that plays a prominent role in modern web applications today. It is dynamic, loosely typed, and asynchronous. In addition, it is extensively used to interact with the DOM at runtime. All these characteristics make Java Script code error-prone and challenging to debug. Java Script fault localization is currently a tedious and mainly manual task. Despite these challenges, the problem has received very limited attention from the research community. We propose an automated technique to localize Java Script faults based on dynamic analysis of the web application, tracing, and backward slicing of Java Script code. Our fault localization approach is implemented in an open source tool called Auto Lox. The results of our empirical evaluation indicate that (1) DOM-related errors are prominent in web applications, i.e., they form at least 79% of reported Java Script bugs, (2) our approach is capable of automatically localizing DOM-related Java Script errors with a high degree of accuracy (over 90%) and no false-positives, and (3) our approach is capable of isolating Java Script errors in a production web application, viz., Tumbler.
  • Keywords
    Java; Web services; authoring languages; client-server systems; fault location; program debugging; program slicing; public domain software; software fault tolerance; AUTOFLOX; DOM; automatic fault localization; client-side JavaScript; code error prone; debugging; document object model; dynamic analysis; modern Web application; open source tool; scripting language; HTML; Instruments; Manuals; Null value; Runtime; Semantics; Document Object Model (DOM); Java Script; dynamic slicing; fault localization;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Testing, Verification and Validation (ICST), 2012 IEEE Fifth International Conference on
  • Conference_Location
    Montreal, QC
  • Print_ISBN
    978-1-4577-1906-6
  • Type

    conf

  • DOI
    10.1109/ICST.2012.83
  • Filename
    6200094