Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Name

Functional Tests Portlet

Version

1.0.0

Author(s)

~edalquist

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.
  • No labels