Model Composition and Generating Tests for Web Applications

Nowadays, with the prevalence of Web applications, more and more services and information are available over the Internet while their correctness, security and reliability are often crucial to the success of business and organizations. Web testing is one of the methods to ensure the Web security. However, due to the special characters of Web applications, traditional testing methods are not suitable for Web testing in many as-pects. A typical Web application consists of two tiers: the client, the server. Most existing works consider Web applications testing from an external or a user's view, not taken the interactions and the behaviors of the server side into account. In this paper, special care on the interactions and the behaviors of server side is paid, and an approach to model composition and testing Web applications is proposed. FSMs are used to model Web applications from the user's side, and the server's side, respectively. Then, synchronous product was employed as a tool to construct a composition of FSMs. Finally, based on the composition of FSM, test generation is given out which satisfies the correspond-ing coverage criteria.

[1]  Jim Conallen,et al.  Building Web applications with UML , 1999 .

[2]  Siu-Ming Yiu,et al.  Modeling Web navigation by statechart , 2000, Proceedings 24th Annual International Computer Software and Applications Conference. COMPSAC2000.

[3]  Paolo Tonella,et al.  Analysis and testing of Web applications , 2001, Proceedings of the 23rd International Conference on Software Engineering. ICSE 2001.

[4]  Pierre Wolper,et al.  Memory-efficient algorithms for the verification of temporal properties , 1990, Formal Methods Syst. Des..

[5]  Ferhat Khendek,et al.  Test Selection Based on Finite State Models , 1991, IEEE Trans. Software Eng..

[6]  Tsun S. Chow,et al.  Testing Software Design Modeled by Finite-State Machines , 1978, IEEE Transactions on Software Engineering.

[7]  Pierre Wolper,et al.  Memory-efficient algorithms for the verification of temporal properties , 1990, Formal Methods Syst. Des..

[8]  Shaoying Liu,et al.  Generating test data from state‐based specifications , 2003, Softw. Test. Verification Reliab..

[9]  Maria Cristina Ferreira de Oliveira,et al.  A statechart-based model for hypermedia applications , 2001, TOIS.

[10]  A. Jefferson Offutt,et al.  Testing Web applications by modeling with FSMs , 2005, Software & Systems Modeling.

[11]  Joumana Dargham,et al.  FSM Behavioral Modeling Approach for Hypermedia Web Applications: FBM-HWA Approach , 2006, Advanced Int'l Conference on Telecommunications and Int'l Conference on Internet and Web Applications and Services (AICT-ICIW'06).

[12]  Jeff Tian,et al.  Measuring and Modeling Usage and Reliability for Statistical Web Testing , 2001, IEEE Trans. Software Eng..

[13]  Maria Cristina Ferreira de Oliveira,et al.  A navigation-oriented hypertext model based on statecharts , 1997, HYPERTEXT '97.