Frontiers in Computer Education pp 885-892 | Cite as
AGT4W: Automatic Generating Tests for Web Applications
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.
Keywords
FSM Software Modeling Test Generation Navigation ModelPreview
Unable to display preview. Download preview PDF.
References
- 1.Booch, G., Rumbaugh, J., Jacobson, I.: Unified Modeling Language User Guide, 2nd edn. Addison-Wesley (2005)Google Scholar
- 2.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)Google Scholar
- 3.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)Google Scholar
- 4.Oliveira, M., Turine, M., Masiero, P.: A State-chart-based Model for Hypermedia Applications. ACM Trans. Inf. Syst. 19(1), 28–52 (2001)CrossRefGoogle Scholar
- 5.Chow, T.: Testing Software Design Modeled by Finite-State Machines. IEEE Trans. Softw. Eng. 4(3), 178–187 (1978)CrossRefGoogle Scholar
- 6.Andrews, A., Offutt, J., Alexander, R.: Testing Web Applications by Modeling with FSMs. Software Syst. Model 4(3), 326–345 (2005)CrossRefGoogle Scholar
- 7.Grose, T., Doney, G., Brodsky, S.: Mastering XMI Java Programming with XMI, XML, and UML. John Wiley & Sons, Inc. (2002)Google Scholar
- 8.XML Metadata Interchange (XMI), v2.1.1 specification, http://www.omg.org/spec/XMI/
- 9.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)CrossRefGoogle Scholar
- 10.Hong, H., Leey, I., Sokolskyz, O.: Automatic Test Generation from Statecharts Using Model Checking. Technical Reports MS-CIS-01-07 (2001)Google Scholar
- 11.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)Google Scholar