“Understanding JavaScript Event-based Interactions”, Saba Alimadadi, Sheldon Sequeira, Ali Mesbah, and Karthik Pattabiraman.
In Proceedings of the ACM/IEEE International Conference on Software Engineering (ICSE), 367–377, 2014
[ACM SIGSOFT Distinguished Paper Award]
[PDF]  [Technical Report] [Tool] [Slides]

Abstract

Web applications have become one of the fastest growing types of software systems today. Despite their popularity, understanding the behaviour of modern web applications is still a challenging endeavour for developers during development and maintenance tasks. The challenges mainly stem from the dynamic, event-driven, and asynchronous nature of the JavaScript language. We propose a generic technique for capturing low-level event-based interactions in a web application and mapping those to a higher-level behavioural model. This model is then transformed into an interactive visualization, representing episodes of triggered causal and temporal events, related JavaScript code executions, and their impact on the dynamic DOM state. Our approach, implemented in a tool called Clematis, allows developers to easily understand the complex dynamic behaviour of their application at three different semantic levels of granularity. The results of our industrial controlled experiment show that Clematis is capable of improving the task accuracy by 61%, while reducing the task completion time by 47%.

BibTeX

@inproceedings{saba:clematis,
  author = {Alimadadi, Saba and Sequeira, Sheldon and Mesbah, Ali and Pattabiraman, Karthik},
  title = {Understanding JavaScript Event-based Interactions},
  booktitle = {Proceedings of the ACM/IEEE International Conference on Software Engineering (ICSE)},
  publisher = {ACM},
  pages = {367--377},
  url = {http://salt.ece.ubc.ca/publications/docs/clematis-icse14.pdf},
  report = {http://salt.ece.ubc.ca/publications/docs/UBC-SALT-2014-001.pdf},
  year = {2014},
  slides = {40727246},
  tool = {https://github.com/saltlab/clematis},
  award = {[ACM SIGSOFT Distinguished Paper Award]}
}