Skip to main content

Extracting Database Interactions and Generating Test for Web Applications

  • Chapter
Computer and Information Science 2009

Part of the book series: Studies in Computational Intelligence ((SCI,volume 208))

  • 593 Accesses

Abstract

Traditional testing techniques are not adequate for Web-based applications. Nowadays, Web applications depend more and more on the back-end database to provide much more functionalities. Additionally, database interactions make a great impact on the navigation of Web applications. In this paper, we propose an event-based dependence graph models (EDGMs) to model and extracting database interactions in Web applications. A FSM was used as a tool to model the presentation (.aspx) of Web page. And Control Flow Graph (CFG) and Database Interaction Flow Graph (DIFG) are employed to extracted and model its corresponding logical process (.cs) of each corresponding page. From the EDGMs, a FSM test-tree (FSM-TT) was constructed. Based on FSM-TT, the test sequences were generated. At last, by elaborating the test sequences with the FSMs of Web pages, we got the more detailed test sequences which can be easily instantiated and test executed.

Supported by National High-Technology Research and Development Program (863 Program) of China under grant No. 2007AA01Z144, National Natural Science Foundation of China (NSFC) under grant No. 60673115 and 60433010, National Grand Basic Research Program (973 Program) of China under grant No. 2007CB310800, the Research Program of Shanghai Education Committee under grant No. 07ZZ06 and Shanghai Leading Academic Discipline Project, Project Number: J50103.

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 129.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 169.99
Price excludes VAT (USA)
  • Durable hardcover 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. Ngo, M.N., Tan, H.B.: Applying static analysis for automated extraction of database interactions in web applications. Inf. Softw. Technol. 50(3), 160–175 (2008)

    Article  Google Scholar 

  2. Ngo, M.N., Tan, H.B., Trinh, D.: Automated Extraction of Database Interactions in Web Applications. In: Proceedings of the 14th IEEE international Conference on Program Comprehension, pp. 117–126. IEEE Computer Society, Washington (2006)

    Google Scholar 

  3. Esposito, D.: Programming Microsoft ASP.NET 2.0 Core Reference. Microsoft Press (2005)

    Google Scholar 

  4. Lanubile, F., Visaggio, G.: Extracting Reusable Functions by Flow Graph-Based Program Slicing. IEEE Transactions on Software Engineering 23(4), 246–259 (1997)

    Article  Google Scholar 

  5. Andrews, A., Offutt, J., Alexander, R.: Testing Web Applications by Modeling with FSMs. Software and Systems Modeling (2004)

    Google Scholar 

  6. Dargham, J., AI-Nasrawi, S.: FSM Behavioral Modeling Approach for Hypermedia Web Applications: FBM-HWA Approach. In: Proceedings of the Advanced International Conference on Telecommunications (AICT/ICIW 2006), French, pp. 199–204 (2006)

    Google Scholar 

  7. Lucca, G.A.D., Penta, M.D.: Considering Browser Interaction in Web Application Testing. In: Proceedings of the 5th IEEE International Workshop on Web Site Evolution, New York, USA, pp. 74–81. IEEE Press, Los Alamitos (2003)

    Google Scholar 

  8. Miao, H., et al.: Modeling Web Browser Interactions Using FSM. In: Proceedings of the 2nd IEEE Asia-Pacific Service Computing Conference, pp. 211–217 (2007)

    Google Scholar 

  9. Song, B., Miao, H., Chen, S.: Modeling Web Browser Interactions and Generating Tests. In: Proceding of the fourth International Conference on Computational Interlligence and Security (CIS 2008), vol. 2, pp. 399–404 (2008)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2009 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Song, B., Miao, H., Zhu, B. (2009). Extracting Database Interactions and Generating Test for Web Applications. In: Lee, R., Hu, G., Miao, H. (eds) Computer and Information Science 2009. Studies in Computational Intelligence, vol 208. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-01209-9_19

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-01209-9_19

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-01208-2

  • Online ISBN: 978-3-642-01209-9

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics