The following gets the page just fine but it fails on the <then> <setproxy proxyhost='' /> with Unexpected exception caught: org.apache.tools.ant.BuildException
The stack trace did not help much. SECTIONS BELOW * GOAL (what I really want to do any way I can) * BACKGROUND * CODE (current idea that fails) ======================================================================== GOAL: The goal is to get passed any URL for which the <invoke ... /> fails for a reason other than those covered by the <config ...><option> capabilities. For example, Timeout, Connection, or "Unexpected exception caught: java.net.SocketException" errors. ======================================================================== BACKGROUND: All the <options> mentioned in the manual text http://webtest.canoo.com/webtest/manual/option.html are set to "false". Why? The <setproxy proxyhost='' /> is needed before moving on or the next step gets an UnknownHostException. Basically, used example 2 of ifStep as an example http://webtest.canoo.com/webtest/manual/ifStep.html ======================================================================== CODE: <setproxy proxyhost='${zeligURL}' proxyport='${zeligPort}' /> <ifStep description='Try the invoke and if fails go to next step.' > <condition> <invoke url="http://${URL}" description="http://${URL}" /> </condition> <then> <setproxy proxyhost='' /> <!-- FAILS HERE --> <verifyTitle text="${Title}" /> </then> <else> <setproxy proxyhost='' /> </else> </ifStep> ======================================================================== Has anyone seen something similar before? Any suggestions would be welcome. Even a different way to deal with the Goal instead of the existing code. Thanks, George _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

