Hi I have two questions:
- I have a scenario for which need to alter between different protocols: http and https. It looks like below:
scenarioWithPostalCode(“ATL Scenario”)
.exec(http("/summary") <===== Using http
.get(“http://domain.com/summary”))
.pause(1)
.exec(http("/sign-in") <===== Using https
.get(“https://sign-in”))
.pause(1)
Currently I am having to insert the protocol with domain and not use scenario.inject(…).protocols(httpConf). Is there a better way to support both http and https within the same domain?
- Second of all, for one kind of service, I am alternating between few urls using http.baseURLs(…,…,…) method. At run time, randomly a url is selected. Is there a way to access currently selected domain? HttpProtocolBuilder doesn’t seem to have any sufficient method.
Thanks