Instance Declaration

System Testing for C

The DECLARE_INSTANCE instruction lets you declare the set of the instances included in the test script.

Note Each instance behavior will be translated into different Virtual Testers executed within a process or a thread.

The DECLARE_INSTANCE instruction must be located before the top-level scenario.

The instance declaration can be done by one or several DECLARE_INSTANCE instructions. They must appear in the test script in such a way that no INSTANCE block containing global declarations uses an instance that has not been previously declared.

Example

HEADER "Multi-server / Multi-client example","1.0",""

DECLARE_INSTANCE server1, server2

...

DECLARE_INSTANCE client1, client2, client3

...

SCENARIO Principal

...

Related Topics

DECLARE_INSTANCE | Instance synchronization