Executing Test Scripts from VAJ
68
Chapter 3 - Testing Enterprise JavaBeans
Executing Test Scripts from VAJ
To execute the test script from VAJ:
1
2
Start the EJB servers to deploy the Rational Bank Account sample EJBs.
3
Right-click the generated test script
ExecuteTransactiongetBalance
in the
VAJ Project window and click
Run > Check Classpath
.
4
Click
Compute Now
to add the path of the generated test script to the ClassPath.
5
If you plan to use the WebSphere Test Environment, click the
Edit
button to the
right of the Project path and make sure the IBM WebSphere Test Environment
package is checked. Click
OK
.
6
Click
OK
to accept the generated class path.
7
Right-click on the generated test script
ExecuteTransactiongetBalance
in
the VAJ Project window and click
Run > Run main
.
8
If necessary, log in to a project and click
OK
.
The Specify Log Information dialog box appears:
9
Accept the defaults in the Specify Log Information dialog box and click
OK
.
Click
Help
for more information about the Specify Log Information dialog box.
10
View the test results in the Rational Test Log window.
The log should contain entries from the stub, indicating the parameters received
and the values returned.
For more information about the Test Log window, click
Help
.