To test or debug a portal project within the workbench, you must
first define a local portal test environment server.
Additional options for local test environments can be viewed and
changed by double-clicking on the server in the Servers view. This opens the
server configuration editor. You can change any of the settings that were
defined previously. In addition, the Portal tab has additional settings which
are listed below:
- Select to use administration portlets
in the test environment. Administration portlets are portlets provided by WebSphere Portal
to provide administrative functions, such as portlet installation and configuration.
Enable this option only when necessary. It slows down the startup of the test
environment. Even when you have enabled the administration portlets, there
are limitations. You cannot install portlets using the administration portlets.
In addition, most changes that you make are reset to the default values the
next time you start the test environment. To debug portlets in a particular
layout, use the test and debug options of a portal project, not the administration
portlets in the test environment.
- Select to allow different portlet projects to
use different pages in the portal during testing. By default, multiple pages
are enabled. Each portlet project that is associated with a single server
will be deployed to a different page. If you want to deploy them all into
a single page on the server, you can disable multiple pages when deploying
portlet projects.
- Select
to redirect log entries to the console. Otherwise, the log entries are written
to the <product_installation_root>/runtimes/portal_vXX/log directory,
where XX is the version of the WebSphere Portal Test Environment.
- Select to test portlets in the not-logged-in state.
- Enter JAR file or folder names in the section to make the JAR files or the files in the folder available
to the server.
Save the changes to your server configuration by pressing Ctrl
+ S.
Note: An EAR project named wps is
created when you run a portlet in the test environment (Run on
Server or Debug on Server). If you plan
to test or debug your portlet project locally, do not modify the wps project
once it is created. When creating a project, do not name it wps.