[Webtest] WebTest vs WebScarab
Igor Metz
Igor Metz" <igor.metz@gmail.com
Thu, 5 Oct 2006 12:25:24 +0200
------=_Part_31431_8665058.1160043924280
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Has anyone of you ever tried to run WebTest test using WebScarab (
http://www.owasp.org/index.php/OWASP_WebScarab_Project)
as a proxy (set using <setproxy/>)?
When I run my tests with WebTest 2.1 and proxy the request with WebScarab
(version 20060718-1904),
the tests always stop with the following kind of exception:
Exception raised: com.canoo.webtest.engine.StepExecutionException:
Unexpected exception caught:
org.apache.commons.httpclient.NoHttpResponseException:
The server crex.suis.glue.ch failed to respond,
Step: InvokePage at C:\workspace\suis-crex\webtest\gugus.xml:42:
with (description="CrexFragen", method="GET", taskName="invoke",
url="/app/forward.do?forward=intro")
com.canoo.webtest.engine.StepExecutionException:
Unexpected exception caught:
org.apache.commons.httpclient.NoHttpResponseException:
The server crex.suis.glue.ch failed to respond, Step: InvokePage at
C:\workspace\suis-crex\webtest\gugus.xml:42:
with (description="CrexFragen", method="GET", taskName="invoke",
url="/app/forward.do?forward=intro")
at com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java
:463)
at
com.canoo.webtest.steps.AbstractBrowserAction.handleUnexpectedException(
AbstractBrowserAction.java:120)
at com.canoo.webtest.steps.request.TargetHelper.protectedGoto(
TargetHelper.java:114)
at com.canoo.webtest.steps.request.AbstractTargetAction.gotoTarget(
AbstractTargetAction.java:106)
at com.canoo.webtest.steps.request.AbstractTargetAction.doExecute(
AbstractTargetAction.java:78)
at com.canoo.webtest.steps.Step.execute(Step.java:132)
at org.apache.tools.ant.Task.perform(Task.java:364)
at com.canoo.webtest.ant.TestStepSequence.executeSteps(
TestStepSequence.java:58)
at com.canoo.webtest.ant.TestStepSequence.doExecute(
TestStepSequence.java:39)
at com.canoo.webtest.steps.Step.execute(Step.java:132)
at org.apache.tools.ant.Task.perform(Task.java:364)
at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:155)
Executing the same request manually (using telnet) or by using WebScarab as
a proxy for Firefox works perfectly.
Regards
Igor Metz
------=_Part_31431_8665058.1160043924280
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Has anyone of you ever tried to run WebTest test using WebScarab (<a href="http://www.owasp.org/index.php/OWASP_WebScarab_Project">http://www.owasp.org/index.php/OWASP_WebScarab_Project</a>)<br>as a proxy (set using <setproxy/>)?
<br><br>When I run my tests with WebTest 2.1 and proxy the request with WebScarab (version 20060718-1904), <br>the tests always stop with the following kind of exception:<br><br>Exception raised: com.canoo.webtest.engine.StepExecutionException
: <br>Unexpected exception caught: org.apache.commons.httpclient.NoHttpResponseException: <br>The server <a href="http://crex.suis.glue.ch">crex.suis.glue.ch</a> failed to respond, <br>Step: InvokePage at C:\workspace\suis-crex\webtest\gugus.xml:42:
<br>with (description="CrexFragen", method="GET", taskName="invoke", url="/app/forward.do?forward=intro")<br>com.canoo.webtest.engine.StepExecutionException: <br>Unexpected exception caught:
org.apache.commons.httpclient.NoHttpResponseException: <br>The server <a href="http://crex.suis.glue.ch">crex.suis.glue.ch</a> failed to respond, Step: InvokePage at <br>C:\workspace\suis-crex\webtest\gugus.xml:42: <br>with (description="CrexFragen", method="GET", taskName="invoke", url="/app/forward.do?forward=intro")
<br> at com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:463)<br> at com.canoo.webtest.steps.AbstractBrowserAction.handleUnexpectedException(AbstractBrowserAction.java:120)<br> at com.canoo.webtest.steps.request.TargetHelper.protectedGoto
(TargetHelper.java:114)<br> at com.canoo.webtest.steps.request.AbstractTargetAction.gotoTarget(AbstractTargetAction.java:106)<br> at com.canoo.webtest.steps.request.AbstractTargetAction.doExecute(AbstractTargetAction.java
:78)<br> at com.canoo.webtest.steps.Step.execute(Step.java:132)<br> at org.apache.tools.ant.Task.perform(Task.java:364)<br> at com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java
:58)<br> at com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:39)<br> at com.canoo.webtest.steps.Step.execute(Step.java:132)<br> at org.apache.tools.ant.Task.perform(Task.java:364)
<br> at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:155)<br><br>Executing the same request manually (using telnet) or by using WebScarab as a proxy for Firefox works perfectly.<br><br>Regards<br>Igor Metz
<br>
------=_Part_31431_8665058.1160043924280--