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)


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.


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.


  1. 1.
    Wege, C., Chrysler, D.: Portal Server Technology. IEEE Internet Computing (2002)Google Scholar
  2. 2.
    JSR-000168 Portlet Specification, (Last Visited: February 11, 2005)
  3. 3.
    Portal Introduction-IBM, (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, (Last Visited: February 7, 2005)
  6. 6.
    Apache ANT, (Last Visited: February 7, 2005)
  7. 7.
    Cactus Apache Jakarta Project, (Last Visited: January 29, 2005)
  8. 8.
    Client Side Testing using HttpUnit, (Last Visited: February 7, 2005)
  9. 9.
    Client Side Testing of web-applications using jWebUnit, (Last Visited: February 7, 2005)
  10. 10.
    Mocks Objects, (Last Visited: January 25, 2005)
  11. 11.
    IBM Websphere Portal Zone, (Last Visited: February 7, 2005)
  12. 12.
    JSR-000154 Java Servlet 2.4 Specification, (Last Visited: February 11, 2005)
  13. 13.
    EJB Specification, (Last Visited: February 11, 2005)
  14. 14.
    JSR-000152 JavaServer Pages 2.0 Specification, (Last Visited: February 11, 2005)
  15. 15.
    The Apache Struts Web Application Framework, (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