background image
<< The output_message function | the get_host_name function >>
<< The output_message function | the get_host_name function >>

Obtaining Information about Vusers and Hosts

GUI Vuser Scripts Developing GUI Vuser Scripts
Creating Vuser Scripts
Chapter 26, page 453
Obtaining Information about Vusers and Hosts
During scenario execution, you can obtain the identity of:
the Vusers performing a task at a particular moment in the scenario
the host executing a script
the machine running the Controller
For example, you could program statements into a Vuser script to return the ID of
each active Vuser currently using an application, and print this information to a file.
The following functions obtain information about Vusers and hosts:
lr_whoami
returns the name of a Vuser and the Vuser group
it belongs to.
get_host_name
returns the name of the machine executing the
script.
get_master_host_name
returns the name of the machine running the
Controller.