[Webtest] Maven Canoo WebTest Plugin: Problems while creating a test summary report with Build 454

"Göschl,Siegfried" webtest@lists.canoo.com
Wed, 21 Jul 2004 10:33:41 +0200


Hi folks,

I'm currently migrating the Maven Canoo WebTest Plugin from build 277 to 454 and it works soo far. I got a simple testcase running and the response files (HTML files) are written. When generating the report I get the following error:

>>> START >>>

    [java]  [testSpec] 2004-07-21 10:15:06,171 [main] DEBUG com.meterware.httpunit.HttpWebResponse  - _responseCode = 200
    [java]  [testSpec] 2004-07-21 10:15:06,171 [main] DEBUG com.meterware.httpunit.HttpWebResponse  - _responseMessage = OK
    [java]  [testSpec] 2004-07-21 10:15:06,203 [main] DEBUG com.canoo.webtest.engine.Context  - fPreviousResponseFile = W:\work\webui\dealer
extranet-Portal-Ear\target\webtest\lastResponse1090397705703.html
    [java]  [testSpec] 2004-07-21 10:15:06,203 [main] DEBUG com.canoo.webtest.engine.Context  - fLastResponseFile = W:\work\webui\dealerextr
anet-Portal-Ear\target\webtest\lastResponse1090397706203.html
    [java]  [testSpec] 2004-07-21 10:15:06,203 [main] DEBUG com.canoo.webtest.steps.Step  - Finished clicklink (Logout)
    [java]  [testSpec] 2004-07-21 10:15:06,203 [main] DEBUG com.canoo.webtest.steps.Step  - Executing null ([implicit tear down step])
    [java]  [testSpec] 2004-07-21 10:15:06,218 [main] DEBUG com.canoo.webtest.steps.Step  - Finished null ([implicit tear down step])
    [java]
    [java] BUILD SUCCESSFUL
    [java] Total time: 8 seconds
    [java]  [testSpec] [Fatal Error] webtest:1:1: Content is not allowed in prolog.
    [java]  [testSpec] Exception caught while writing test summary
    [java]  [testSpec] Message: Content is not allowed in prolog.
    [echo] Finished running Canoo Webtest Plugin

<<< END <<<

I'm using the following configuration

>>> START >>>

      maven.webtest.config.host                 = localhost
      maven.webtest.config.port                 = 9005
      maven.webtest.config.protocol             = http
      maven.webtest.config.basepath             = dealerextranet/
      maven.webtest.config.summary              = true
      maven.webtest.config.saveresponse         = true
      maven.webtest.config.resultpath           = W:\work\webui\dealerextranet-Portal-Ear/target/webtest
      maven.webtest.config.resultfile           =
      maven.webtest.config.showhtmlparseroutput = true
      maven.webtest.config.haltonfailure        = false
      maven.webtest.config.haltonerror          = false
      maven.webtest.config.verbose              = true
      maven.webtest.config.autorefresh          = false

<<< END <<<


This looks like a SAXParseException caused by some extra text in an XML file. What I don't understand why writing a test report involves parsing an XML file. Anyone knows what is causing the behaviour or how to generate a stacktrace before I start full-scale and night-time debugging?!

Thanks in advance

Siegfried Goeschl