Test Property (AProgram)

Version 8

Returns the current program test object.

Syntax

[ tst= ] Object.Test  

The Test property syntax has the following parts:

 

Name

Type

Description

Object

AProgram

AProgram object

tst

ATest

The program current test object.

Comments

The Task property is used to determine the current task of the specified program. The property is changed using the Run, Task and the Test statements or when ATEasy finishes to execute a task and start the next one. Use the Test variable instead if you need to check the current task of the current program.

Example

The following statement abort all programs if the first UUT failed after the third task:

for i=0 to App.UutCount-1

if App.UutProgram(i).Test

print "UUT=";i;" , Test=;App.UutProgram(i).Test.Name

endif

next

Applies to

AApp

See Also

App.UutProgram, Program.Task, Test Variable, Program.Tests