background image
<< Client/Server template | Glossary >>
PerformClientActivity
<< Client/Server template | Glossary >>
User's Guide
537
D U
SEFUL
M
ULTITESTCASE
C
ODE
T
EMPLATES
Client/Server template
·
Replace the call to PerformClientActivity with a function that you have
written to perform client operations and tests.
·
Replace the call to DoServerAdministration with a function that you
have written to perform server administrative processing and/or cleanup.
use "myframe.inc"
multitestcase MyClientServerTest (STRING sServer,
LIST of STRING lsClients)
STRING sClient
// Connect to server machine:
SetUpMachine (sServer, MyServerApp)
// Connect to all client machines in parallel:
for each sClient in lsClients
spawn
SetUpMachine (sClient, MyClientApp)
rendezvous
// Set app state of each machine, invoking if necessary:
SetMultiAppStates()
// Run functions in parallel on each client:
for each sClient in lsClients
spawn
// Make client do some work:
[sClient] PerformClientActivity()
rendezvous
// Perform end-of-session processing on server
// application:
[sServer] DoServerAdministration()