1 / 6

DynaRIA : a Tool for Ajax Web Application Comprehension

18th IEEE International Conference on Program Comprehension Braga, Portugal 30 June - 2 July, 2010. DynaRIA : a Tool for Ajax Web Application Comprehension. Dipartimento di Informatica e Sistemistica University of Naples “Federico II”, Italy Domenico Amalfitano Anna Rita Fasolino

tamar
Download Presentation

DynaRIA : a Tool for Ajax Web Application Comprehension

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 18th IEEE International Conference on Program Comprehension Braga, Portugal 30 June - 2 July, 2010 DynaRIA: a Tool for Ajax Web Application Comprehension DipartimentodiInformatica e Sistemistica University of Naples “Federico II”, Italy DomenicoAmalfitano Anna Rita Fasolino Armando Polcaro PorfirioTramontana

  2. ICPC 2010, Braga, Portugal; 30 june - 2 july, 2010 Background • Ajax is a set of Web Technologies (XHTML, JavaScript , XML, and XMLHttpRequest) usedfor implementing a new generation of Web applications (Rich Internet Applications). • Key aspects of Ajax applications: • The UI is composed by widgets that are updated, deleted or added independently at run time. • The UI is dynamically built on the basis of the events that are fired by the user. • Events are managed by an Ajax Engine (AE). • The Ajax Engine (AE) composed of JavaScript modules • manipulates the UI components, • communicates with the server (exchanges few amounts of data, by asynchronous or synchronous requests) • Most popular examples are: Google Maps, Flickr, Gmail, etc.

  3. ICPC 2010, Braga, Portugal; 30 june - 2 july, 2010 Challenges for AJAX application comprehension • Heterogeneous nature (JS, DOM, XML, ...) • Several parsers are needed • Dynamically configured code (JS code is loaded or built at run-time) • code static analysis is not sufficient • Based on large variety of frameworks • make their behaviour opaque and complicate the analysis of generated code • DynaRIA is a tool designed for the comprehensionof Ajax applications based on dynamic analysis of user sessions. • It produces several types of abstractions and visualizations about the run-time behaviour of the application.

  4. ICPC 2010, Braga, Portugal; 30 june - 2 july, 2010 The approach of DynaRIA –user session analysis • User sessions are traced and recorded through the Web browser offered by DynaRIA. • Each user session trace collets the following data: • User events fired on widgets of the UI. • JavaScript functions activated by user event handlers. • Executed lines of code of JS functions. • Changes (such as add, delete, or change) to UI widgets by DOM analysis. • Message exchanges between client and server. • Exceptions and errors occurred at run time (such as JavaScript errors, Network warnings, etc.). • Collected information about user sessions are shown in several Session Monitor Views provided by the tool.

  5. ICPC 2010, Braga, Portugal; 30 june - 2 july, 2010 The approach of DynaRIA – UML sequence diagram abstraction • DynaRIA abstracts UML sequence diagrams at various levels of detail and abstraction from each user session or from its parts. • UML sequence diagrams are viewed and managed by another tool, dynaRIA Sequence Diagram Viewer. Excerpt of an high level UML sequence diagram Excerpt of a low level UML sequence diagram

  6. ICPC 2010, Braga, Portugal; 30 june - 2 july, 2010 The approach of DynaRIA – testing and debugging activity support • DynaRIA provides functionalities of Capture & Replay. • During usersession replay, the tool: • traces the JS code execution and keeps track of performed network traffic, • detects run-time JS exceptions (such as JS syntax errors, array out of bound errors, etc.) and network warning occurred at run-time. • The tool computes several JS code coverage metrics with respect to a replayed set of user sessions.

More Related