background image
<< Obtaining Information about Vusers and Hosts | Appendixes >>
<< Obtaining Information about Vusers and Hosts | Appendixes >>

the get_host_name function

Creating Vuser Scripts
Chapter 26, page 454
GUI Vuser Scripts · Developing GUI Vuser Scripts
In
In the following example, the get_host_name function returns the name of the
host currently running the script. The print statement saves the information to a
file.
For more information about these functions, refer to the
TSL Online Reference
(available from the WinRunner Help menu) or the
Creating GUI Virtual User
Scripts (UNIX)
guide.
my_host_name = get_host_name();
print( "my local host name is:" & my_host_name ) > vuser_file;