Hi Paul,

first thanks for your tips.

Yes, the url="/" works for the invoke tag.

And yes, it's the log4j.properties file that was distributed with WebTest 
(Plugin) in folder "${webtest.home}/classes", "$WEBTEST_HOME/lib" respectively 
in the standalone application.

It's quite annoying having no possibility for debugging tests!  And in this 
case the received error message is not really helpful.  :(
Isn't there a way to configure an HTTP tunnel as proxy for WebTest? 

Greetings!


----- Original Nachricht ----
Von:     Paul King <[EMAIL PROTECTED]>
An:      [email protected]
Datum:   05.09.2006 00:44
Betreff: Re: [Webtest] How To Debug Tests

> 
> Some suggestions:
> 
> Does url="/" work in the invoke?
> 
> Is the log4j.properties you were modifying in path="${webtest.home}/lib"?
> 
> Cheers, Paul.
> 
> Bit Byter wrote:
> > Hi WebTesters,
> > 
> > I'm new to Canoo WebTest and just trying to get it run with Maven 1.1b2.
> So I installed the Maven WebTest Plugin from
> http://maven-plugins.sourceforge.net/maven-webtest-plugin/downloads.html.
> > 
> > I'm trying to run an adapted version of the simple SampleTest.xml from the
> Canoo website:
> > 
> > 
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!DOCTYPE project [
> >       <!ENTITY taskdef                                     SYSTEM
> "taskdef.xml">
> > ]>
> > <project name="SimpleTest" basedir="." default="main">
> > 
> >    &taskdef;
> > 
> >    <target name="main">
> >       <webtest name="myTest">
> >          <config host="127.0.0.1" port="9090" protocol="http"
> basepath="/myapp" />
> >          <steps>
> >             <invoke description="get Login Page" url="login"
> method="GET"/>
> >             <verifyTitle description="we should see the login title"
> text="Login Page" />
> >          </steps>
> >       </webtest>
> >    </target>
> > </project>
> > 
> > 
> > The included "taskdef" entity looks like this:
> > 
> > <taskdef file="${webtest.home}/webtestTaskdefs.properties">
> >     <classpath>
> >         <fileset dir="${webtest.home}">
> >             <include name="lib/*.jar"/>
> >             <include name="lib/base/*.jar"/>
> >         </fileset>
> >         <pathelement path="${webtest.home}/lib"/>
> >     </classpath>
> > </taskdef>
> > 
> > 
> > Now when I try to run the test by executing "maven webtest:test" I get the
> following error:
> > 
> > webtest:test:
> >     [java] Buildfile: D:\webtest\SimpleTest.xml
> >     [java] Trying to override old definition of task sleep
> >     [java]
> >     [java] main:
> >     [java]
> >     [java] BUILD FAILED
> >     [java] D:\webtest\SimpleTest.xml:11: Canoo Webtest: R_1304.
> >     [java] Test failed.
> >     [java] Test step invoke (D:\webtest\SimpleTest.xml:14: )  named "get
> Login Page" failed with message "Step[invoke "get
> >  Login Page" (1/2)]: HTTP error 404, at: invoke"
> >     [java]
> >     [java] Total time: 8 seconds
> > 
> > 
> > I've verified that the web server is running and the configured URL is
> available by requesting it successfully in a browser. Thus I assume the test
> is trying request a different website.
> > 
> > The received error message does not really help to find the error. I've
> tried enabling all the loggers in log4j.properties, but unfortunately those
> seem not to work.
> > 
> > So how to debug such an error? Is there a possibility to configure an HTTP
> tunnel as WebTest proxy? Any help is appreciated!
> > 
> > - BitByter
> > 
> > Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
> > ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor:
> günstig
> > und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
> > nur  44,85 ?  inkl. DSL- und ISDN-Grundgebühr!
> > http://www.arcor.de/rd/emf-dsl-2
> > _______________________________________________
> > WebTest mailing list
> > [email protected]
> > http://lists.canoo.com/mailman/listinfo/webtest
> > 
> > 
> 
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
> 

Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
nur  44,85 €  inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to