val httpProtocol = http
.baseURL("https://applicationurl.com")
// .inferHtmlResources(BlackList(""".*\.js""", """.*\.css""", """.*\.gif""", """.*\.jpeg""", """.*\.jpg""", """.*\.ico""", """.*\.woff""", """.*\.(t|o)tf""", """.*\.png"""), WhiteList())
.acceptHeader("*/*")
.acceptEncodingHeader("gzip, deflate")
.acceptLanguageHeader("en-US,en;q=0.8")
.connection("keep-alive")
.contentTypeHeader("application/x-www-form-urlencoded; charset=UTF-8")
.doNotTrackHeader("1")
.userAgentHeader("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36")
.disableCaching
.localAddress(????)
--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
val address = "192.3.4.5"
val address2 = "192.3.4.9"
setUp(scn.inject(rampUsers(1) over (0 seconds)).protocols(httpProtocol.localAddress(address)),
scn.inject(rampUsers(1) over (0 seconds)).protocols(httpProtocol.localAddress(address2))
)
def randomLocalAddress = if (ThreadLocalRandom.current.nextBoolean) address1 else address2
val localAddressFeeder = Iterator.continually(Map("localAddress" -> randomLocalAddress))
feed(localAddressFeeder)
val httpProtocol1 = http
.baseURL("https://abc.com")
.localAddress("${localAddress}")