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 portlets are published to a test environment server, a
Rational Portlets page is created. Each portlet is placed on its own page under the Rational Portlets page. Each portlet page has the same name as the associated portlet project.
To test a portlet project on a local server:
- In the Project Explorer view, right-click a portlet project and select
Run | Run on Server. The
Server Selection dialog box appears.
- 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.
- 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
Testing and debugging portlets