[Webtest] Re: WebTest vs WebScarab

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


Hi Marc

Have not tried yet. But how do I set the wire log level?

Igor

2006/10/6, Marc Guillemot <mguillemot@yahoo.fr>:
> Hi Igor,
>
> already tried to set wire log level to debug to see what
> commons-httpclient receives from proxy?
>
> Marc.
>
> Igor Metz wrote:
> > 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
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>