We recently had a customer that wanted to test a website that would be load balanced, but the server wasn’t installed yet. To get around this we randomly chose an IP address and then remapped it to the host. Insert this code at the top of your RBU Script and itwill randomly select one of the IPs each time it is run, but
still act as if it were going through the standard mysite.com host.

var ips = ['169.125.57.119','169.230.103.88','169.125.17.0','169.125.17.68',

'79.125.17.80','169.125.38.66','169.125.43.112'];

var ip = ips[Math.floor(Math.random()*ips.length)];

browserMob.log(“Using ip ” + ip);

var selenium = browserMob.openBrowser();

© 2012 The BrowserMob Blog Suffusion theme by Sayontan Sinha