Functional Tests Portlet
Name | Functional Tests Portlet |
|---|---|
Version | 1.0.0 |
Author(s) | @Eric Dalquist |
Homepage |
|
Issue Tracking |
|
License |
|
Release Docs |
|
Java API Docs |
|
Download Source |
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:
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.
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
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.
Portlet Preferences
Allows the user to add and remove arbitrary portlet preferences and values
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.