Lesson 1 – Multi-Site Test
520
Controlling the Setup/
Query-Focus State of
Site Automatically
To execute a specified set up block within parallel execution block serially,
enclose the Setup APIs within the first invocation block by the following two
Multi-site APIs:
For simple reference, the part enclosed by these APIs is called the each site
loop block.
The each site loop block must be in the first invocation block. The each site
loop block will be executed serially for each site by repetition
Program Flow of Each Site Loop Block
SmarTest controls the states of focus on active sites for achieving multi-site
testing with maximum performance as follows:
ON_FIRST_INVOCATION_BEGIN䋨䋩;
FOR_EACH_SITE_BEGIN();
// Setup
FOR_EACH_SITE_END();
// Test Execution
ON_FIRST_INVOCATION_END();
Skipped
irst Invocation
lock
Site 1 Site 2 Site 3
1st Invocation
Skipped
2nd and later
Invocation
ON_FIRST_INVOCATION_BEGIN();
ON_FIRST_INVOCATION_END();
FOR_EACH_SITE_END();
FOR_EACH_SITE_BEGIN();
Set up tester hardware
Execute test
•In the First Invocation Block (ON_FIRST_INVOCATION_x)
All active sites are setup-focused and a site with the smallest site number
is query-focused.
•In the Each Site Loop Block (
FOR_EACH_SITE_x)
Each active site under test is setup-focused and query-focused in each loop.
•On outside of the "First Invocation Block”
The current active site under test is setup-focused and query-focused
.