Dashboard > Portlets > Home > JA-SIG Hosted Portlets > Functional Tests Portlet
Portlets Log In   View a printable version of the current page.
Functional Tests Portlet

Added by Eric Dalquist , last edited by Eric Dalquist on Mar 27, 2008  (view change)
Labels: 
(None)

Name Functional Tests Portlet
Version 1.0.0
Author(s) Eric Dalquist
Homepage  
Issue Tracking  
License  
Release Docs  
Java API Docs  
Download Source https://www.ja-sig.org/svn/portlets/FunctionalTestsPortlet

Description/Features

Provides tests for portlet functionality in uPortal beyond those in the Pluto Test Suite Portlet.

Installation

Check the code out from svn and run mvn install to build and package the .war file. Deploy the .war according to your portal's instructions.

Usage

The portlet currently provides tests for the following JSR-168 behavior:

  1. Dynamic Title
    • Sets a title with the current date and type prefixed with the type of call (Render or Action). The body of the portlet also displays the expected title for human verification.
  2. Exception Throwing
    • Throws an exception and tracks if the exception should be continue to be thrown in one of three ways. Each way allows for testing the portal's functionality with 'reseting' a portlet.
      • Render parameter
      • Portlet scoped session attribute
      • Application scoped session attribute
  3. PortletRequest.isUserInRole
    • Calls isUserInRole using a variety of pre-defined roles and role mappings. The portlet will need to be customized for the portal being tested.
  4. Portlet Preferences
    • Allows the user to add and remove arbitrary portlet preferences and values
  5. State Mode Test
    • Displays a grid of all available portlet modes and window states with links to switch to them using URLs rendered in a variety of ways.
    • This should provide the ability to test all possible manner of portlet mode and state switching
    • Displays the current mode/state and the mode/state of the action if one was requested.
Powered by a free Atlassian Confluence Open Source Project License granted to Java Architectures Special Interest Group. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7.3, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators