background image
<< Executing Test Scripts | Executing Test Scripts from Visual Cafe >>
<< Executing Test Scripts | Executing Test Scripts from Visual Cafe >>

Executing Test Scripts from VAJ

68
Chapter 3 - Testing Enterprise JavaBeans
Executing Test Scripts from VAJ
To execute the test script from VAJ:
1
Import the test script into VAJ. (For details, see Importing Test Assets into Your IDE
on page 58.
)
2
Start the EJB servers to deploy the Rational Bank Account sample EJBs.
For details about starting the EJB servers, see Deploying the Sample Application in the
VAJ Test Environment
on page 42.
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
.