Thanks for the hint. I found out, that httpclient is not able to follow two subsequent redirects, when being proxied through WebScarab. I replaced the redirected URL with the redirection target and voilĂ , it works perfectly ...
Looking at the logs I found this: [invoke] INFO (org.apache.commons.httpclient.HttpMethodDirector) - Redirect requested but followRedirects is disabled Is it possible, that this is the source of the problem? Igor 2006/10/6, Marc Guillemot <[EMAIL PROTECTED]>:
have a look at #WEBTEST_HOME#/lib/log4j.properties Marc. Igor Metz wrote: > Hi Marc > > Have not tried yet. But how do I set the wire log level? > > Igor > > 2006/10/6, Marc Guillemot <[EMAIL PROTECTED]>: >> 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 >> [email protected] >> http://lists.canoo.com/mailman/listinfo/webtest >> > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest > _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

