Status Property (ATask)

Modified Version 8 (148a)

Returns or sets the max status of all the Tasks and Tests of this Task.

Syntax

[ enTestStatus = ] Object.Status

The Status property syntax has the following parts:

 

Name

Type

Description

Object

ATask

ATask object

enTestStatus

enumATestStatus

An integer specifying the worst status of all the Tasks and Tests of this Task.

Where

enumATestStatus:

 

Name

Value

Description

atestStatusNone

0

None

atestStatusPass

1

Pass

atestStatusFail

2

Fail

atestStatusError

3

Error

Comments

If the task status was not set by assigning a value, the highest value of the task tests is returned.  For example, if a task have two tests one Fail (2) and one Pass (1) the task status will be Fail (2). Assigning a value to the task Status overrides the task status.

Setting the task status capability was added in v8 (148a). Prior to this the task status could only be read.

Example

The following example aborts the test program if the "PowerSupply" test had a status of Fail or Error:

if Program.Tests("PowerSupply").Status >= Fail then Abort

Applies to

ATask

See Also

Status Property (AProgram), Status Property (ATest), TestStatus Variable