When developing ATEasy applications, you need to determine how end users will view test results. If your users will be running the ATEasy application from within the ATEasy development environment, they can view test data using the log window. For information, see Using the Log Window in the ATEasy Development Environment.
If you are designing an application that will be distributed to end users as an exe file, you can present log data to users by routing that data to the ALog control on a form that you can create in your application.
To route log output to an ALog control, follow these steps:
Create a form in your application.
Add the ALog control to the form (click (Alog) on the Controls Toolbar, then click and drag in the form area). For information on adding controls to ATEasy forms, see Form Control Overview.)
When the form is loaded, assign the ALog control to the Log internal variable. For example, if the ALog control is named logTestExec, assign it to the Log internal variable as follows:
Form.OnLoad()
{
Log = logTestExec
}
When the program is run, the default log output and the output of the Print statement will be routed to the ALog control on the form.
The ALog control is based on the Microsoft Internet Explorer web browser, and has numerous methods, properties, and events that you can use to customize log output. For information on using the ALog control, see ALog Control.