background image
<< comment markers | Sending Messages to Output >>
<< comment markers | Sending Messages to Output >>

Obtaining Vuser Information

Working with VuGen · Enhancing Vuser Scripts
Creating Vuser Scripts
Chapter 4, page 47
Obtaining Vuser Information
You can add the following functions to your Vuser scripts to retrieve Vuser
information:
lr_whoami
Returns the Vuser ID, Group, and scenario ID for
a Vuser.
lr_get_host_name
Returns the name of the host for this Vuser.
lr_get_master_host_name
Returns the name of the LoadRunner Controller
host.
lr_get_attrib_string
Returns a string containing command line
argument values or run-time information such as
the Vuser ID or the host name (as an alternate to
the above functions).
For more information about each of these functions, refer to the
LoadRunner
Online Function Reference
(available from the VuGen Help menu).
Online
Function
Reference