I am trying to create a script to get the machine (host) name where is the winrunner script is running. I know I need to use the getvar function, but I forgot what the parameter name to get the host name, does any one remember the parameter name?
first off - if you think it is in there, why haven't you just pressed F1 and read all the available parameters for that function. I'd be easy enough than waiting for someone to do the searching for you.
second, having looked at it all for you, getvar doesn't contain an entry for finding the host, so unless this was an undocumneted value you are referencing, this function isn't going to work.
If you install the cso functions for WinRunner, you will have access to a function get_comp_name() that will give you what you need. You can download the CSO functions from over on Mercury's site.
Insanity: doing the same thing over and over again and expecting different results