Viewing the test results

Run a test using yourPython-coded action, and ensure that it properly interacts with the target application.

Before proceeding, ensure that you have:

You will run a test which executes the check row count action, which you have implemented in the TestArchitect harness as aPython 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.

  1. If you have not already done so, start the Car Rental application by selecting Start > All Programs > TestArchitect > Samples > Car Rental Application.

    The login window appears.

  2. Log in to the application, and navigate to the View Orders window.

  3. With your test module displayed in the TestArchitect editor, click Execute on the toolbar.

    The Execute Test dialog box appears.

  4. Before clicking Execute, click Automation Tools.

    The Automation Tools dialog box appears.

  5. Select TestArchitect Python Harness from Playback Tool option.

  6. Click next to the Script(s) field to browse to the fileta_main.py.

    注意: 
    The default location for the python executable(s) is c:\Python\python.exe. If you install Python in a different location, you’ll need to set the location, then move to the next step.

    ヒント: 
    To save time, install Python to the default location C:\Python\.

    Additionally, from TestArchitect 8.5 onward, in the python_harness.bat file located in the folder C:\Program Files\LogiGear\TestArchitect\harness samples\python, the default value will be Python 3. If a user wants to use Python 2, they will need to modify the path in this file like below:

  7. Click OK to return to the Execute Test dialog box.

  8. 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).

  9. Click Execute to run the test.

Upon completion of the test, the results are displayed:

Related tasks

Running a test and viewing the results


Copyright © 2024 LogiGear Corporation. All rights reserved. LogiGearはLogiGear Corporationの登録商標であり、Action Based TestingおよびTestArchitectはLogiGear Corporationの商標です。ここに記載されているその他の商標は、各所有者の財産です。

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1 (650) 572-1400