background image
<< all C++ users | you modify the test.cfg file >>
<< all C++ users | you modify the test.cfg file >>

LoadRunner controls the Vuser

Appendixes · Programming Scripts on UNIX Platforms
Creating Vuser Scripts
Chapter C, page 473
You program Vuser actions directly into the empty script, before the lr_message
function of each section.
The
vuser_init
section is executed first, during initialization. In this section, include
the connection information and the logon procedure. The
vuser_init
section is only
performed once each time you run the script.
The
Actions
section is executed after the initialization. In this section, include the
actual operations performed by the Vuser. You can set up the Vuser to repeat the
Actions section (in the
test
.cfg file).
The
vuser_end
section is executed last, after the all of the Vuser's actions. In this
section, include the clean-up and logoff procedures. The
vuser_end
section is only
performed once each time you run the script.
Note: LoadRunner controls the Vuser by sending SIGHUP, SIGUSR1, and
SIGUSR2 UNIX signals. Do not use these signals in your Vuser programs.