Index Property (ATest)

Returns an index (0 based) of the current Test in its parent object.

Syntax

[ lIndex = ] Object.Index

The Index property syntax has the following parts:

 

Name

Type

Description

Object

ATest

ATest object

lIndex

Long

An integer specifying the index of the current Test in the list of Tasks and Tests of its parent Task.

Comments

The test index is zero based index.

Example

The following example uses the Test statement with the index of the second test after this one to skip the following test, for example, after an error that makes it meaningless to run the next test:

Test Test.Index+2

Applies to

ATest

See Also

Id, Task