[Webtest] New to webtest, but pretty classical install problem

Francois LETELLIER webtest@lists.canoo.com
Fri, 02 Apr 2004 18:08:55 +0200


At 17:40 02/04/2004, Marc Guillemot wrote:
>I've tested what you provided and it works just fine (my version of=20
>webtest is modified, but this should have no impact for this problem).=20
>What about providing log4j config file in the classpath to see the error=20
>logged?

Ant says:
"Buildfile: installTest.xml

main:
  [testSpec] log4j:WARN No appenders could be found for logger=20
(com.meterware.httpunit.HttpWebResponse).
  [testSpec] log4j:WARN Please initialize the log4j system properly.

BUILD FAILED
[...]"

The log4j.properties contains:

log4j.rootCategory=3Dinfo, stdout
log4j.logger.com.canoo.webtest.steps.request=3Ddebug, stdout
log4j.appender.stdout=3Dorg.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=3Dorg.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=3D%5p (%F:%L) - %m%n

Is it what you asked for ?



>Marc.
>
>
>Francois LETELLIER wrote:
>>At 16:40 02/04/2004, Marc Guillemot wrote:
>>
>>>Other information:
>>>the problem doesn't come from the script you have provided but from=20
>>>C:\Documents and=20
>>>Settings\flet\Bureau\Java\canoo\doc\samples\installTest.xml:19. May you=
=20
>>>have started an other test as the one you wanted to?
>>
>>Well, actually the content of the file is the one I copied below -- it's=
=20
>>NOT the original installTest.xml ; I modified it. By the way, the=20
>>original installTest throws the same exception...
>>
>>>Marc.
>>>
>>>Francois LETELLIER wrote:
>>>
>>>>Hi,
>>>>I'm new to webtest and will probably ask a boring "newbie question".=20
>>>>i'm sorry about that :)
>>>>Config:  Win XP ; Ant 1.6.1 ; JDK 1.4.2 ; Canoo WebTest Build number 432
>>>>When trying the basic example (source below), I get an "unexpected=20
>>>>exception caught" error message...
>>>>
>>>>Trace:
>>>>Exception raised: com.canoo.webtest.engine.StepExecutionException:=20
>>>>Unexpected ex
>>>>ception caught: java.io.EOFException, Step: InvokePage at C:\Documents=
=20
>>>>and Setti
>>>>ngs\flet\Bureau\Java\canoo\doc\samples\installTest.xml:19:  with=20
>>>>(stepId=3D"get in
>>>>dex Page", url=3D"index.html",=20
>>>>stepType=3D"invoke")com.canoo.webtest.engine.StepExec
>>>>utionException: Unexpected exception caught: java.io.EOFException,=20
>>>>Step: InvokeP
>>>>age at C:\Documents and=20
>>>>Settings\flet\Bureau\Java\canoo\doc\samples\installTest.
>>>>xml:19:  with (stepId=3D"get index Page", url=3D"index.html",=20
>>>>stepType=3D"invoke")
>>>>         at=20
>>>> com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:334)
>>>>         at=20
>>>> com.canoo.webtest.steps.request.Target.protectedGoto(Target.java:115)
>>>>         at=20
>>>> com.canoo.webtest.steps.request.Target.gotoTarget(Target.java:153)
>>>>         at=20
>>>>=
 com.canoo.webtest.steps.request.InvokePage.doExecute(InvokePage.java:37)
>>>>         at com.canoo.webtest.steps.Step.execute(Step.java:99)
>>>>         at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:26)
>>>>         at=20
>>>> com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecification=
=20
>>>> Task.java:68)
>>>>         at=20
>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>>         at org.apache.tools.ant.Target.execute(Target.java:301)
>>>>         at org.apache.tools.ant.Target.performTasks(Target.java:328)
>>>>         at=
 org.apache.tools.ant.Project.executeTarget(Project.java:1215)
>>>>         at=
 org.apache.tools.ant.Project.executeTargets(Project.java:1063)
>>>>         at org.apache.tools.ant.Main.runBuild(Main.java:632)
>>>>         at org.apache.tools.ant.Main.startAnt(Main.java:183)
>>>>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
>>>>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
>>>>Here's my test file:
>>>><project name=3D"SimpleTest" basedir=3D"." default=3D"main">
>>>>    <taskdef file=3D"C:\Documents and=20
>>>> Settings\flet\Bureau\Java\canoo\webtestTaskdefs.properties">
>>>>       <classpath>
>>>>          <fileset dir=3D"C:\Documents and=20
>>>> Settings\flet\Bureau\Java\canoo" includes=3D"**/lib/*.jar"/>
>>>>       </classpath>
>>>>    </taskdef>
>>>>    <target name=3D"main">
>>>>       <testSpec name=3D"myTest">
>>>>          <config
>>>>             host=3D"www.sun.com"
>>>>             port=3D"80"
>>>>             protocol=3D"http"
>>>>             basepath=3D"/" />
>>>>          <steps>
>>>>             <invoke
>>>>                stepid=3D"get index Page"
>>>>                url=3D"index.html" />
>>>>          </steps>
>>>>       </testSpec>
>>>>    </target>
>>>></project>
>>>>
>>>>Hint anybody ?
>>>>Thanks,
>>>>
>>>>Fran=E7ois LETELLIER
>>>>INRIA Rh=F4ne-Alpes - ObjectWeb Consortium Executive Committee
>>>>email: francois.letellier at objectweb.org - phone: +33 (0)6 84 64 00 24
>>>>http://www.objectweb.org - ObjectWeb middleware : provide your=20
>>>>applications with the kind of freedom they deserve !
>>>>_______________________________________________
>>>>WebTest mailing list
>>>>WebTest@lists.canoo.com
>>>>http://lists.canoo.com/mailman/listinfo/webtest
>>>
>>>
>>>
>>>_______________________________________________
>>>WebTest mailing list
>>>WebTest@lists.canoo.com
>>>http://lists.canoo.com/mailman/listinfo/webtest
>>
>>Fran=E7ois LETELLIER
>>INRIA Rh=F4ne-Alpes - ObjectWeb Consortium Executive Committee
>>email: francois.letellier at objectweb.org - phone: +33 (0)6 84 64 00 24
>>http://www.objectweb.org - ObjectWeb middleware : provide your=20
>>applications with the kind of freedom they deserve !
>>_______________________________________________
>>WebTest mailing list
>>WebTest@lists.canoo.com
>>http://lists.canoo.com/mailman/listinfo/webtest
>
>
>_______________________________________________
>WebTest mailing list
>WebTest@lists.canoo.com
>http://lists.canoo.com/mailman/listinfo/webtest

Fran=E7ois LETELLIER
INRIA Rh=F4ne-Alpes - ObjectWeb Consortium Executive Committee
email: francois.letellier at objectweb.org - phone: +33 (0)6 84 64 00 24
http://www.objectweb.org - ObjectWeb middleware : provide your applications=
=20
with the kind of freedom they deserve !