Testing portlets on local servers

You can test one or more portlet projects locally using a WebSphere® Portal Test Environment.

In this scenario, the server runs against the resources that are in the workspace. Therefore, you can add, change, or remove a resource from the portlet project and the server will pick up these changes without being restarted or republished.

When you test a portlet on the local test environment server, the default theme and skin are used. To use a customized theme or skin, refer to Customizing portal sites

When portlets are published to a test environment server, a Test Environment page is created. Each portlet is placed on its own page under the Test Environment page. Each portlet page has the same name as the associated portlet project.

To test a portal project on a local server:

  1. In the Project Explorer view, right-click a portlet project and select Run > Run on Server. The Server Selection dialog box appears.
  2. To use an existing server definition, select Choose an existing server and choose a WebSphere Portal Test Environment server from the list.

    To define a new local test server, see Defining local servers for testing portlets.

  3. Click Finish. After the server starts and the portlet is deployed, the Web browser that you defined opens to the URL of the portal application on the local server.
Related tasks
Enabling transcoding
Referring to other projects
Defining local servers for testing portlets
Defining Web browsers and device emulators
Associating servers with projects
Testing portlets on remote servers
Configuring the WebSphere Portal 5.1 Test Environment

(C) Copyright IBM Corporation 2002, 2005. All Rights Reserved.