Fails Property (AProgram)

Returns the number of times that a program test status was changed to Failed or Error.

Syntax

 [ lFails = ] Object.Fails

The Fails property syntax has the following parts:

 

Name

Type

Description

Object

AProgram

AProgram object

lFails

Long

An integer specifying the number of times that a program test status was changed to Failed or Error. The default value is 0.

Example

The following fragment from the program OnInitTask event aborts the application if too many failures have occurred:

if Program.Fails > 20

print "Too many failures by the start of task "; Task.Id

Abort

endif

Applies to

AProgram

See Also

Status