Add hosts to a cloud based load generator
When you create a LoadRunner script, the details of the application under test (AUT) are recorded in the script. If the reference to the AUT is a host name, the load generator in the cloud cannot recognize the host. An IP address is required.
To overcome this obstacle, you can add a list of relevant hosts and their IP addresses to the load generator in the cloud.
Update a cloud based load generator's hosts file
You create a text file, hosts.add, that contains the host names and corresponding IP addresses of your AUTs. This file is added to your script's .zip file.
At runtime, when the script is uploaded to the load generator, the load generator's hosts file is updated with the hosts contained in the hosts.add file.
How do I create the hosts.add file?
Open an empty text file in a text editor and enter the IP addresses and corresponding host names in the format <ip address> <hostname>. For example:
Use the following guidelines:
Host names may include the following characters only:
- IP addresses must be valid IPv4 or IPv6 addresses.
- ONLY host names and IP addresses may be included in this file. Do not include headings or comments or any other text as this will prevent the script from uploading.
- Save the file as hosts.add, and close the file.
Add the hosts.add file to your script's .zip file.
Note: If several scripts are being uploaded, add the hosts.add file to each script's .zip file.
Notes and limitations
Scripts containing an invalid hosts.add file will not be uploaded successfully. Make sure that the hosts.add file is set up according to the guidelines described above.