Testing enterprise beans in the universal test client

The workbench provides you with a Web-based Universal Test Client where you can test your enterprise beans and Java™ classes.

Restriction

Prerequisites

To use the Universal Test Client:

  1. Create a WAS.

  2. Add the EJB project to the server.

  3. To ensure that the server is enabled to use the Universal Test Client:

    1. In the Servers view, double-click the WAS. Select the

      Overview tab and expand the Server section.

    2. Enable the

      Enable universal test client check box.

    3. Close the editor and save your changes.

  4. Start the server.

  5. You can open the Universal Test Client in the Web Browser in any of the following ways:

    • In the Project Explorer view, select your EJB Project you want to test and right-click on an enterprise bean resource or an independent or stand-alone Java class. Select

      Run As > Run on Server.

    • In the Servers view, right-click the server and select

      Universal Test Client | Run

  6. Use the Universal Test Client to perform one or more of the following tasks:

  7. You can start over a Universal Test Client session by going into the Servers view, right-click the server and select

    Universal Test Client | Restart.

  8. When you have finished using the Universal Test Client, close it.

 

Related concepts

Universal Test Client

 

Related tasks

Testing artifacts on a server

 

Related reference

Universal Test Client namespace limitations on WebSphere® Application Server

Universal Test Client pages