The current program AProgram object.
AProgram Public Const
By default, the Program variable is initialized to Nothing. ATEasy sets the Program variable before the OnInit and OnInitProgram events for that program are called. This can be after a Run statement is used or if the application project set the StartProgram property. When ATEasy sets the Program variable, the program status, test results, and other data that can be set to the program during run are reset to their default values.
The Program variable can be used anywhere in the application procedures and tests. In a driver or a system you can use the Program properties and methods. However, using the current program user-defined procedures and variables is not allowed for these modules.
The Program variable may be used to obtain the values of properties set by the program property pages.
When running multiple UUTs the Program variable holds the current UUT log. Each execution thread have its own Program variable.
The following example prints the current program and status:
if Program.Status>=Fail
sStatus="Failed"
else
sStatus="Passed"
endif
print "Program=";Program.Name;" "; sStatus
AProgram, AProgram.OnInit Event, ASystem.OnInitProgram Event, Driver, Form, Run Statement, System, Task, Test App.UutProgram