The Automated Test Harness tool is intended to help create scripts that you can run to automate the testing of your Visual FoxPro applications. The tool uses Microsoft Active Accessibility (MSAA) technology to record and play back mouse and keyboard events.
The tool files are installed in the Microsoft Visual FoxPro 8.0\Tools\Test\ folder.
For additional information about the tool, see the readme file (aatesthelp.htm) in the \Tools\Test folder.
To run the Automated Test Harness
Run the Automated Test Harness from \Tools\Test\AATEST.APP or from the Visual FoxPro command prompt, enter:
DO (HOME() + “tools\test\aatest”)
To record the script, click Record in the toolbar or from the Record menu. A list of available applications appears.
Select a Visual FoxPro application, and, when prompted, enter a name for your text script.
The selected Visual FoxPro application or window appears, and the tool is ready to record the events.
Record the events. Run your application as you typically would using the keyboard and mouse. Make sure you have run through all of the user interface elements, including forms, menus, windows, and dialog boxes.
When finished, click Stop in the toolbar. You also can pause and resume recording as needed.
To view the events log, which has been selected or currently recorded, click “Edit the script.”
To play back scripts, select the script you want to run, and click Play. If the program detects an error, you see a prompt in the testing application.
To see the test log, select the Test Log tab.
This post was submitted by Jay.