ATL_NUMINSTANCE

System Testing Test Script Language.

Description

ATL_NUMINSTANCE is a macro that returns the index number of an executed instance, according to the order defined in the DECLARE_INSTANCE instruction.

Note The number returned by ATL_NUMINSTANCE is the index number +1. For example, the first instance returns 2, the fourth instance returns 5.

Example

HEADER "Client", "1.0", "3.0"

DECLARE_INSTANCE client, server

SCENARIO Main

...

PRINT instanceNum, ATL_NUMINSTANCE

...

END SCENARIO

Related Topics

DECLARE_INSTANCE