Test Variable

The current test ATest object.

Type

ATest Public Const

Comments

The Test variable can be used anywhere in the application procedures and tests to obtain the current Test.

By default, the Test variable is initialized to Nothing. ATEasy sets the Test variable to the current test before executing a program test. This is done before ATEasy calls the OnInitTest module event or when calling the task/test statements. After the test is complete and OnEndTest module event is called or the test is exited, ATEasy will set the variable to Nothing.

The Test variable may be used to get or set the values of properties set by the test property pages.

When running multiple UUTs the Test variable holds the current UUT log. Each execution thread have its own Test variable.

Example

The following example disables log output if the test type is Other:

Procedure OnEndTest(): Void Public

{

if Test.Type=atestTypeOther

SetLogOff() ! disable log output

else

SetLogOn() ! enable again

endif

}

See Also

AProgram.OnEndTest, AProgram.OnInitTest, ATask, ATest, Program, Task, Task Statement, Test Statement