Returns the number of the current Test.
[ lTestNum = ] GetTestNum ( )
The GetTestNum procedure syntax has the following parts:
Name |
Type |
Description |
lTestNum |
Long |
Current Test number |
The function returns a number greater than 0 when a Test is running and 0 when a Test is not running (for example, while ATEasy is executing OnInitTask).
The following example uses GetTestNum to customize the Log output.
OnEndTest()
{
Print GetTestNum();".";GetTestName();
Print "-";asStatus[TestStatus]
}