The IBM Visual Age for Java is a completely self contained
environment. As such, all sample scripts must be run from that
environment.
To run the sample scripts, launch Visual Age for Java and complete the
following steps.
Start the WebSphere Test Environment Services
- From the Visual Age for Java (VAJ) workbench, select Workspace' Tools'WebSphere Test Environment.
- Select the Servlet Engine and click on Start Servlet Engine. After a few minutes the red icon beside Servlet Engine will turn to blue and there will be a message stating "Servlet Engine is started" in the bottom left of the window. If you flip to the Console window, you will be able to view the details of the start up process.
- Select the Persistent Name Server and click on Start Name Server. After a few minutes the red icon beside Persistent Name Server will turn to blue and there will be a message stating "Persistent Name Server is started" in the bottom left of the window. If you flip to the Console window, you will be able to view the details of the start up process.
- From the VAJ workbench, select the EJB Tab. Select EJB->Open
To->Server Configuration. Right click on the EJB Server(server1) and select Start Server. After a few minutes a running man icon will appear next to the server name to indicate that the EJB server is running.
Switch to [CDShop v2.0] edition
- From the VAJ workbench Projects Tab, select the CDShop project.
- Right click [CDShop v1.0] and select Select Replace With ' Another Edition…
- From the Select Replacement for CDShop dialog, Select [CDShop v2.0].
Run the Unit Test
- Highlight the unittests.com.rational.cdshop.ejb package and hit CTRL-E to run the test.
- Accept the default log information.
- If the test log shows all passes, then your setup is working. If not, see the Troubleshooting
section in the VAJ Config document..
Run the Scenario Test
- Highlight the scenariotests.com.rational.cdshop.ejb package and hit CTRL-E to run the test.
- Accept the default log information.
- If the test log shows all passes, then your setup is working. If not, see the Troubleshooting
section in the VAJ Config document..
Switch back to [CDShop v1.0] edition
-
From the VAJ workbench Projects Tab, select the CDShop project.
- Right click [CDShop v2.0] and select Select Replace With ' Another Edition…
- From the Select Replacement for CDShop dialog, Select [CDShop v1.0].
|