Run a test using your Java-coded action, and ensure that it properly interacts
with the target application.
Before proceeding, ensure that you have:
- Created a test
case in TestArchitect which calls check row count,
an action for counting selected rows of a table in an application,
- Created the Java
action_CheckRowCount() to implement the check row
count action, and written the essential
code to ensure that the execution of check row
count results in control being directed to that method.
You will run a test which executes the check row count action,
which you have implemented in the TestArchitect harness as a
Java method. Your action,
as invoked, examines the View Orders table of the Car Rental
application (below), counts the number of rows in which the contents of the
Car Type column is "Ford Mustang Coupe", and
compares that number to the expected count of 2.
If you have not already done so, start
the Car Rental application by selecting .
The login window appears.
Log in to the application, and navigate to the View
With your test module displayed in the TestArchitect editor, click
on the toolbar.
The Execute Test dialog box appears.
Before clicking Execute, click Automation
The Automation Tools dialog box appears.
Select TestArchitect Java Harness from
Playback Tool option.
Click next to the Script(s)
field to browse to the file java_harness.jar which, if you followed the instructions to create it (that is,
used Eclipse), should be in your Eclipse workspace directory.
Click OK to return to the Execute
Test dialog box.
In the Test Modules panel, expand the tree. If you
so wish, ensure that the only test case selected for execution is the
one hosting the check row count action (TC
02 in the example).
Click Execute to run the test.
Upon completion of the test, the results are displayed: