[Webtest] WebTest vs WebScarab

Igor Metz Igor Metz" <igor.metz@gmail.com
Fri, 6 Oct 2006 14:10:36 +0200


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