Run a test using your Python-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
- Created the Python
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.
- On macOS 10.11 or later versions, you should have
installed your own Python interpreter, rather than rely on Apple's pre-installed
version (learn more). Assuming that this is the case, ensure that you modify
the Python path in the run_mac.sh file (in
You will run a test which executes the check row count action,
which you have implemented in the TestArchitect harness as a
Python script. 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 Python Harness from
Playback Tool option.
Click next to the Script(s)
field to browse to the file ta_main.py.
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: