Quantcast
Channel: LoadRunner Practitioners Forum topics
Viewing all articles
Browse latest Browse all 3978

Edit hostfile from TruClient-script?

$
0
0

Hi!

We have several different test-environments when developing an enterprise site.

When running performance tests I usually go to each Loadgenerator and edit the local Host-file so that it will connect to the right target test environment.

This is a very timeconsuming and ineffective way, so I'm looking for a better way to have the loadtest scripts take care of this.

A hostfil might look something like this when I've edited it for a testenvironment: 

192.168.0.50 www.xyz.com ex2.xyz.com
192.168.0.51 ex3.xyz.com
192.168.0.52 ex3.xyz.com

In StormRunner there's a solution to override the host-file with a file called hosts.add that you add to the scripts zip-file before uploading to Stormrunner.
http://stormhelp.saas.hpe.com/Latest/Content/Storm/AUTHostsNames&IPs.htm#hp-minitoc-item-1

Is there a way to do this in a Truclient script that should be running on a Performance Center Loadgenerator?
PC version 12.01

Thanks for any advice :-)
/Fredrik

 


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>