[ http://webtest-community.canoo.com/jira/browse/WT-246?page=all ]
Marc Guillemot closed WT-246:
-----------------------------
Fix Version: future versions
Resolution: Fixed
Assign To: Marc Guillemot
Fixed in build 1497.
WebTest reads the proxy settings configured with setproxy but the nonproxyhosts
are not considered
--------------------------------------------------------------------------------------------------
Key: WT-246
URL: http://webtest-community.canoo.com/jira/browse/WT-246
Project: WebTest
Type: Bug
Versions: 1.6, 2.0, 2.1
Reporter: John Lockhart
Assignee: Marc Guillemot
Fix For: future versions
When using the Ant command:
<setproxy proxyhost="127.0.0.1" proxyport="5865" nonproxyhosts="aklia781"/>
in a WebTest the nonproxyhosts bit doesn't seem to work.
Marc says "I think that you've hit a current limitation of WebTest. WebTest just
reads the proxy settings configured with setproxy but doesn't rely on this
mechanism. As far as I remember, the nonproxyhosts are not considered currently
(perhaps htmlunit couldn't handle it at the time we've introduced this
functionality in WebTest)."
and recommended as a workaround the groovy step:
<groovy description="finer proxy configuration">
step.context.webClient.addHostsToProxyBypass("aklia781")
</groovy>
I tried this workaround and it resolves the issue, but looks like a fix to
WebTest is required.