19 messages in com.canoo.lists.webtest[Webtest] <setproxy ... /> fails insi...
FromSent OnAttachments
Chaohua Wang07 Mar 2008 15:09.html, .xml
Paul King07 Mar 2008 17:07 
Chaohua Wang10 Mar 2008 10:36 
Paul King10 Mar 2008 12:58 
Chaohua Wang10 Mar 2008 16:31 
Chaohua Wang10 Mar 2008 16:42 
Chaohua Wang11 Mar 2008 13:38 
Paul King12 Mar 2008 04:05 
Marc Guillemot12 Mar 2008 04:32 
Chaohua Wang12 Mar 2008 10:27 
Paul King13 Mar 2008 01:26 
Chaohua Wang13 Mar 2008 09:36 
Chaohua Wang27 Mar 2008 12:29 
Walton, Lynn27 Mar 2008 12:43 
George Policello27 Mar 2008 12:57 
Chaohua Wang27 Mar 2008 13:10 
George Policello27 Mar 2008 15:58 
Marc Guillemot28 Mar 2008 00:59 
George Policello28 Mar 2008 08:40 
Subject:[Webtest] <setproxy ... /> fails inside <then> ?
From:George Policello (gpol@mmetrics.com)
Date:03/27/2008 03:58:24 PM
List:com.canoo.lists.webtest

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