background image
<< Vuser script types | Recording Vuser Scripts >>
<< Vuser script types | Recording Vuser Scripts >>

Vuser Script Sections

Creating Vuser Scripts
Chapter 3, page 28
Working with VuGen · Recording with VuGen
In
Vuser Script Sections
Each Vuser script that you create using VuGen contains three sections:
vuser_init
,
Actions
, and
vuser_end
. Before and during recording, you can select the section of
the script into which VuGen will insert the recorded functions. The following table
shows when to record into each section, and when each section is executed.
Note that the
vuser_init
and
vuser_end
sections are not repeated when you run
multiple iterations of a Vuser script--only the
Actions
is repeated. For more
information on the iteration settings, see Chapter 6,
Configuring Run-Time
Settings
.
Script Section
Used when recording...
Is played back when...
vuser_init
a login to a server
the Vuser is initialized (loaded)
Actions
client activity
the Vuser is in "Running" status
vuser_end
a log off procedure
the Vuser finishes or is stopped