Detecting Inconsistencies in JavaScript MVC Applications
Authors:
- Karthik PattabiramanKPKarthik Pattabiraman
- Ali MesbahAMAli Mesbah
- 1 May 2015
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- Vol. 1 (02705257) , 325-335
Abstract
Higher demands for more reliable and maintainable JavaScript-based web applications have led to the recent development of MVC (Model-View-Controller) frameworks. One of the main advantages of using these frameworks is that they abstract out DOM API method calls, which are one of the leading causes of web application faults, due to their often complicated interaction patterns. However, MVC frameworks are susceptible to inconsistencies between the identifiers and types of variables and functions used throughout the application. In response to this problem, we introduce a formal consistency model for web applications made using MVC frameworks. We propose an approach -- called Aurebesh -- that automatically detects inconsistencies in such applications. We evaluate Aurebesh by conducting a fault injection experiment and by running it on real applications. Our results show that Aurebesh is accurate, with an overall recall of 96.1% and a precision of 100%. It is also useful in detecting bugs, allowing us to find 15 real-world bugs in applications built on Angular JS, a popular MVC framework.Keywords
This publication has 15 references indexed in Scilit:
- Verily: a web framework for creating more reasonable web applications2014
- Vejovis: suggesting fixes for JavaScript faults2014
- An evaluation of reactive programming and promises for structuring collaborative web applications2013
- Building a Meme Media Platform with a JavaScript MVC Framework and HTML52013
- AutoFLox: An Automatic Fault Localizer for Client-Side JavaScript2012
- JavaScript Errors in the Wild: An Empirical Study2011
- Bounded verification of Ruby on Rails data models2011
- Eliminating navigation errors in web applications via model checking and runtime enforcement of navigation state machines2010
- An analysis of the dynamic behavior of JavaScript programs2010
- The Update Version Development of "Wiki Message Linking" System - Integrated Ajax with MVC Model2009