Advertisement

WIT: A Framework for In-container Testing of Web-Portal Applications

  • Wenliang Xiong
  • Harpreet Bajwa
  • Frank Maurer
Part of the Lecture Notes in Computer Science book series (LNCS, volume 3579)

Abstract

In this paper we describe a novel approach thatallows for in-container testing of web portal applications. Concretely, our approach helps in locating and debugging (a) Deployment environment related problems, (b) Security: role based testing of resource access and (c) Problems arising from the interaction between the container and the application code in the form of request and response objects and other application environment objects. Our approach allows developers to writeautomated in-container test cases for web portal applications.Using Aspect technology, the test code is injected into theapplication code allowing the tests to run in the same environment as theportal application.WIT, our testing framework, provides the developers the ability to control theportal server environment by setting up an initial environment state before the execution of theapplication code.After the application code is executed, the environment statecan be validated and cleaned up to prevent any traces or side effects. A test failure isreported if the results of executing the original code are incorrect.In this paper, we present the overall testing approach, design & implementation of WIT as well as a usage scenario.

Keywords

Usage Scenario Business Logic Application Code Test Code Deployment Time 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

References

  1. 1.
    Wege, C., Chrysler, D.: Portal Server Technology. IEEE Internet Computing (2002)Google Scholar
  2. 2.
    JSR-000168 Portlet Specification, http://www.jcp.org/aboutJava/communityprocess/review/jsr168/ (Last Visited: February 11, 2005)
  3. 3.
    Portal Introduction-IBM, http://www-106.ibm.com/developerworks/ibm/library/i-portletintro (Last Visited: February 7, 2005)
  4. 4.
    Kiczales, G., Lamping, J., Mendhekar, A., Maeda, C., Lopes, C.V., Loingtier, J.-M., Irwin, J.: Aspect Oriented Programming. In: Aksit, M., Matsuoka, S. (eds.) ECOOP 1997. LNCS, vol. 1241, pp. 220–242. Springer, Heidelberg (1997)CrossRefGoogle Scholar
  5. 5.
    AspectJ Eclipse Project, http://eclipse.org/aspectj/ (Last Visited: February 7, 2005)
  6. 6.
    Apache ANT, http://ant.apache.org/ (Last Visited: February 7, 2005)
  7. 7.
    Cactus Apache Jakarta Project, http://jakarta.apache.org/cactus/ (Last Visited: January 29, 2005)
  8. 8.
    Client Side Testing using HttpUnit, http://httpunit.sourceforge.net/ (Last Visited: February 7, 2005)
  9. 9.
    Client Side Testing of web-applications using jWebUnit, http://jwebunit.sourceforge.net/ (Last Visited: February 7, 2005)
  10. 10.
    Mocks Objects, http://c2.com/cgi/wiki?MockObject (Last Visited: January 25, 2005)
  11. 11.
    IBM Websphere Portal Zone, http://www7b.software.ibm.com/wsdd/zones/portal/ (Last Visited: February 7, 2005)
  12. 12.
    JSR-000154 Java Servlet 2.4 Specification, http://www.jcp.org/aboutJava/communityprocess/final/jsr154/ (Last Visited: February 11, 2005)
  13. 13.
    EJB Specification, http://java.sun.com/products/ejb/docs.html (Last Visited: February 11, 2005)
  14. 14.
    JSR-000152 JavaServer Pages 2.0 Specification, http://www.jcp.org/aboutJava/communityprocess/final/jsr152/ (Last Visited: February 11, 2005)
  15. 15.
    The Apache Struts Web Application Framework, http://struts.apache.org/ (Last Visited: February 11, 2005)
  16. 16.
    Bajwa, H., Xiong, W., Maurer, F.: Evaluating Current Testing Processes of Web-Portal Applications. In: Lowe, D.G., Gaedke, M. (eds.) ICWE 2005. LNCS, vol. 3579, pp. 603–605. Springer, Heidelberg (2005)CrossRefGoogle Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2005

Authors and Affiliations

  • Wenliang Xiong
    • 1
  • Harpreet Bajwa
    • 1
  • Frank Maurer
    • 1
  1. 1.Department of Computer ScienceUniversity of CalgaryCalgaryCanada

Personalised recommendations