Returns an index (0 based) of the current Test in its parent object.
[ 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. |
The test index is zero based index.
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