Abstract
Web applications can only be accessed through dedicated client systems called Web browsers. The behaviors of Web browser’s interactions influence the functionalities and navigation of Web applications. In the past, on stage of Web application design and modeling, Web browsers’ interactions are not taken into account. Therefore, in the later implementation phase, it only relies on the developer’s experience. This gives a challenge to the follow-up testing. In this paper, starting from a conventional page navigation graph of a Web application, we propose an approach to transform page navigation graph into FSM-BI (FSM with Web browser’s interactions), and further, design and implement a prototype tool, called AGT4W (Automatic Generating Tests for Web Applications). Based on the FSM-BI, the automated generation of test cases was implemented. Additionally, the detailed process and implementation methods were give out. Firstly, we use ArgoUML to model a traditional Web page navigation graph and import it as a XMI file. Secondly, we transform the XMI file into FSM-BI, so we got a FSM model. Thirdly, based on FSM model, we transform FSM model into FSM Test-Tree. Finally, automatic generation of test cases was carried out.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Booch, G., Rumbaugh, J., Jacobson, I.: Unified Modeling Language User Guide, 2nd edn. Addison-Wesley (2005)
Turine, M., Oliveira, M., Masiero, P.: A Navigation-oriented Hypertext Model Based on Statecharts. In: 8th ACM Conference on Hypertext, Southampton, UK, pp. 102–111 (1997)
Leung, K., Hui, L., Yiu, S., Tang, R.: Modeling Web Navigation by Statechart. In: 24th International Computer Software and Applications Conference, pp. 41–47. IEEE Computer Society, USA (2000)
Oliveira, M., Turine, M., Masiero, P.: A State-chart-based Model for Hypermedia Applications. ACM Trans. Inf. Syst. 19(1), 28–52 (2001)
Chow, T.: Testing Software Design Modeled by Finite-State Machines. IEEE Trans. Softw. Eng. 4(3), 178–187 (1978)
Andrews, A., Offutt, J., Alexander, R.: Testing Web Applications by Modeling with FSMs. Software Syst. Model 4(3), 326–345 (2005)
Grose, T., Doney, G., Brodsky, S.: Mastering XMI Java Programming with XMI, XML, and UML. John Wiley & Sons, Inc. (2002)
XML Metadata Interchange (XMI), v2.1.1 specification, http://www.omg.org/spec/XMI/
Song, B., Miao, H., Chen, S.: Modeling Web Browser Interactions and Generating Tests. In: 4th International Conference on Computational Intelligence and Security, pp. 399–404. IEEE Press, New York (2008)
Hong, H., Leey, I., Sokolskyz, O.: Automatic Test Generation from Statecharts Using Model Checking. Technical Reports MS-CIS-01-07 (2001)
Offutt, J., Wu, Y., Du, X., Huang, H.: Bypass Testing of Web Applications. In: 15th IEEE International Symposium on Software Reliability Engineering, Saint-Malo, France, pp. 187–197 (2004)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2012 Springer-Verlag GmbH Berlin Heidelberg
About this chapter
Cite this chapter
Chen, S., Miao, H., Song, B. (2012). AGT4W: Automatic Generating Tests for Web Applications. In: Sambath, S., Zhu, E. (eds) Frontiers in Computer Education. Advances in Intelligent and Soft Computing, vol 133. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-27552-4_116
Download citation
DOI: https://doi.org/10.1007/978-3-642-27552-4_116
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-27551-7
Online ISBN: 978-3-642-27552-4
eBook Packages: EngineeringEngineering (R0)