GetTestNum Procedure

Returns the number of the current Test.

Syntax

[ lTestNum = ] GetTestNum ( )

The GetTestNum procedure syntax has the following parts:

 

Name

Type

Description

lTestNum

Long

Current Test number

Comments

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).

Example

The following example uses GetTestNum to customize the Log output.

OnEndTest()

{

Print GetTestNum();".";GetTestName();

Print "-";asStatus[TestStatus]

}

See Also

GetTaskName, GetTaskNum, GetTestName