Ajax supports the development of rich-client Web applications, by providing primitives for the execution of asynchronous requests and for the dynamic update of the page structure and content. Often, Ajax Web applications consist of a single page whose elements are updated in response to callbacks activated asynchronously by the user or by a server message. These features give rise to new kinds of faults that are hardly revealed by existing Web testing approaches. In this paper, we propose a novel state-based testing approach, specifically designed to exercise Ajax Web applications. The Document Object Model (DOM) of the page manipulated by the Ajax code is abstracted into a state model. Callback executions triggered by asynchronous messages received from the Web server are associated with state transitions. Test cases are derived from the state model based on the notion of semantically interacting events. We evaluate the approach on a case study in terms of fault revealing capability. We also measure the amount of manual interventions involved in constructing and refining the model required by this approach. © 2008 IEEE.

State-based testing of Ajax Web applications / Marchetto, A.; Tonella, P.; Ricca, F.. - (2008), pp. 121-130. (Intervento presentato al convegno 1st International Conference on Software Testing, Verification and Validation, ICST 2008 tenutosi a Lillehammer, nor nel 2008) [10.1109/ICST.2008.22].

State-based testing of Ajax Web applications

Marchetto A.;
2008-01-01

Abstract

Ajax supports the development of rich-client Web applications, by providing primitives for the execution of asynchronous requests and for the dynamic update of the page structure and content. Often, Ajax Web applications consist of a single page whose elements are updated in response to callbacks activated asynchronously by the user or by a server message. These features give rise to new kinds of faults that are hardly revealed by existing Web testing approaches. In this paper, we propose a novel state-based testing approach, specifically designed to exercise Ajax Web applications. The Document Object Model (DOM) of the page manipulated by the Ajax code is abstracted into a state model. Callback executions triggered by asynchronous messages received from the Web server are associated with state transitions. Test cases are derived from the state model based on the notion of semantically interacting events. We evaluate the approach on a case study in terms of fault revealing capability. We also measure the amount of manual interventions involved in constructing and refining the model required by this approach. © 2008 IEEE.
2008
Proceedings of the 1st International Conference on Software Testing, Verification and Validation, ICST 2008
USA
IEEE
978-0-7695-3127-4
Marchetto, A.; Tonella, P.; Ricca, F.
State-based testing of Ajax Web applications / Marchetto, A.; Tonella, P.; Ricca, F.. - (2008), pp. 121-130. (Intervento presentato al convegno 1st International Conference on Software Testing, Verification and Validation, ICST 2008 tenutosi a Lillehammer, nor nel 2008) [10.1109/ICST.2008.22].
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11572/331448
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 185
  • ???jsp.display-item.citation.isi??? ND
social impact