Reputation: 1
I use gatling to do the performance test. The httpProxy like this:
http.proxy(Proxy(${proxyHost}, 9000)).baseUrl("https://").headers(headers)
If the ${proxyHost} can be access with http, then it's ok.
But if the ${proxyHost} should be access with https, then it doesn't work, the error is:
i.n.h.p.ProxyConnectException: http, none, ...
I wander if Gatling doesn't support https proxy?
I try to set environment variable in the server which execute gatling test cases like this:
export https_proxy = https://${proxyHost}:9000
But it seems don't work, the request didn't go through the proxy.
Could someone give me some help?
Upvotes: 0
Views: 290
Reputation: 6623
HTTP proxy host is a static field. You can’t use Gatling Expression Language there.
Upvotes: 0