GetTaskNum Procedure

Returns the number of the current Task.

Syntax

[ lTask = ] GetTaskNum ( )

The GetTaskNum procedure syntax has the following parts:

 

Name

Type

Description

lTask

Long

Current Task number

Comments

The function returns a number greater than 0 when a Task is running and 0 when a Task is not running (for example, while ATEasy is executing OnInitProgram).

Example

The following example skips Task 3 if one of the Tests failed.

OnEndTask()

{

If GetUutStatus()< > PASS then

if GetTaskNum( ) = 2 then ! status is FAIL or ERR

Task 4 ! skip Task 3

Endif

Endif

}

See Also

GetTaskName, GetTestName, GetTestNum