Skip to main content

AGT4W: Automatic Generating Tests for Web Applications

  • Chapter
Frontiers in Computer Education

Part of the book series: Advances in Intelligent and Soft Computing ((AINSC,volume 133))

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 259.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 329.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

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)

    Article  Google Scholar 

  5. Chow, T.: Testing Software Design Modeled by Finite-State Machines. IEEE Trans. Softw. Eng. 4(3), 178–187 (1978)

    Article  Google Scholar 

  6. Andrews, A., Offutt, J., Alexander, R.: Testing Web Applications by Modeling with FSMs. Software Syst. Model 4(3), 326–345 (2005)

    Article  Google 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)

    Chapter  Google 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 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Shengbo Chen .

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics