Returns the number of the current Task.
[ lTask = ] GetTaskNum ( )
The GetTaskNum procedure syntax has the following parts:
Name |
Type |
Description |
lTask |
Long |
Current Task number |
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).
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
}