Hi,

In my project I have used <setproxy> tag and it worked perfectly fine.
Please find below the code snippet which I used to set proxy settings in the
project:-

<webtest name="use connection">
<dataDriven container="../testdata/config.xls" table="config"
filterclass="All">
        <ifStep test="${remote}">
          <setproxy proxyhost="${proxyhost}" proxyport="${port}"
            proxyuser="${user}" proxypassword="${password}"
            nonproxyhosts="${nonproxyhost}" />
        </ifStep>
        <ifStep unless="${remote}">
          <setproxy proxyhost="${proxyhost1}" proxyport="${port1}"
            nonproxyhosts="xxx.xxx.xxx.xxx" />
        </ifStep>
</dataDriven>
</webtest>

I hope this works..

Hitesh

On Tue, May 26, 2009 at 1:04 AM, Jonathan Rosenberg <[email protected]>wrote:

> Is there a trick to getting webtest to use a proxy server?  I tried using
> the Ant <setproxy /> tag, but it doesn't appear to have
> any effect on webtest (my online surfing seems to verify this).
>
> I'm sure this has to be possible, but I can't figure out howe to make it
> work.
>
> Any insight?
>
>
> --
> Jonathan Rosenberg
> Founder & Executive Director, Tabby's Place
> http://www.tabbysplace.org/
>
>
>
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
>

Reply via email to