I have a script that prompts a user for input data via a MsgBox
. I'd like to run the script remotely from ALM test lab and modify it so that these prompts don't come up when I'm running remotely but do when I'm running directly from UFT.
How can I distinguish whether the script is being run from an ALM test lab or directly from UFT? There is an environment variable called ControllerHostName
that I thought would be set to the remote host but, when I run remotely, this variable is left blank. LocalHostName
only indicates the host on which the script is running but not the host from which ALM is being run.