19 messages in com.canoo.lists.webtest[Webtest] <setproxy ... /> fails insi...| From | Sent On | Attachments |
|---|---|---|
| Chaohua Wang | 07 Mar 2008 15:09 | .html, .xml |
| Paul King | 07 Mar 2008 17:07 | |
| Chaohua Wang | 10 Mar 2008 10:36 | |
| Paul King | 10 Mar 2008 12:58 | |
| Chaohua Wang | 10 Mar 2008 16:31 | |
| Chaohua Wang | 10 Mar 2008 16:42 | |
| Chaohua Wang | 11 Mar 2008 13:38 | |
| Paul King | 12 Mar 2008 04:05 | |
| Marc Guillemot | 12 Mar 2008 04:32 | |
| Chaohua Wang | 12 Mar 2008 10:27 | |
| Paul King | 13 Mar 2008 01:26 | |
| Chaohua Wang | 13 Mar 2008 09:36 | |
| Chaohua Wang | 27 Mar 2008 12:29 | |
| Walton, Lynn | 27 Mar 2008 12:43 | |
| George Policello | 27 Mar 2008 12:57 | |
| Chaohua Wang | 27 Mar 2008 13:10 | |
| George Policello | 27 Mar 2008 15:58 | |
| Marc Guillemot | 28 Mar 2008 00:59 | |
| George Policello | 28 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
_______________________________________________ WebTest mailing list WebT...@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest





.html, .xml