How do I add a host to the hostname cache of a Virtual User?
To add a new host into the host file of a Virtual User use the WebAddToHNC function. This allows you to call a link from the host file of the virtual user to avoid making DNS lookups and also to increase the usability of scripts. This is also useful if an application has only just been commissioned and the DNS records linking the application URL to the IP address have not been updated yet.
WebPageUrl("http://mylink:19120/login/DEF", "My Web Page");
This can also be used to avoid having to use IP addresses in link name strings if WebSetStandardHost is not suitable.