[Webtest] Webtest Sample Probs
Dierk König
webtest@lists.canoo.com
Thu, 4 Apr 2002 18:03:25 +0200
Hi Mike,
Well, I guess we have to clean up a few things in the distribution anyway.
It will take some days until I have the time to do that.
The WebTestReport.xsl is the stylesheet that renders the WebTest xml output
into a nice html (like the one you see on our website). You don't actually
need
it for running, but it is much nicer to have it.
I just think about removing the selftest.war from the distribution.
It is the source of a fair lot of misunderstandings.
You actually only need it when changing the webtest sources but then
you should go for the cvs version anyway, where the selftest is a form
that gets automatically testes with every integration.
Hm, we'll see.
thanks for the report
Dierk
-----Original Message-----
From: webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com]On
Behalf Of Mike Lecza
Sent: Donnerstag, 4. April 2002 16:42
To: webtest@gate.canoo.com
Subject: RE: [Webtest] Webtest Sample Probs
Turns out that specific error happens when using JDK 1.4. I changed to
1.3.1_01 and now I get an error that there is a missing file.
Can you please tell me where I can find this file?
[style] Failed to read stylesheet C:\canoo-196\samples\WebTestReport.xsl
[style] Failed to process C:\canoo-196\samples\WebTestReport.xml
BUILD FAILED
C:\canoo-196\samples\ApplyXSL.xml:47:
javax.xml.transform.TransformerConfigurati
onException: File "file:///C:/canoo-196/info/manual/WhitePaperStyle.xsl" not
fou nd.
Total time: 17 seconds
-----Original Message-----
From: Mike Lecza [mailto:mlecza@newnetco.com]
Sent: Thursday, April 04, 2002 8:32 AM
To: webtest@gate.canoo.com
Subject: [Webtest] Webtest Sample Probs
I noticed that the selfTest.xml sample looks for the server.properties file
in ../../server.properties. This file is not included with the
distribution. I created on but perhaps you should include a sample. Took
me a while to figure it out.
Also, the simpleTest uses ../../ in the classpath defs (definitions.xml).
It should use ../ instead – otherwise it ends up searching too low (in my
case the root of my drive). selfTest has a similar problem. This took me a
while to figure out as well – it was hanging while searching my entire
drive.
The last problem I have is that when I run the selfTest I get the error
below. Any insight on how I can fix it?
Buildfile: selfTest.xml
Overriding previous definition of reference to test
Overriding previous definition of reference to test
prepareResultDir:
sampleUse:
testTitle:
testNot:
testElements:
testText:
testRegEx:
testElementText:
testClickLink:
testLinkCheck:
[testSpec] line 8 column 31 - Warning: unescaped & or unknown entity
"&field1"
[testSpec] line 11 column 31 - Warning: unescaped & or unknown entity
"&forms"
[testSpec] line 8 column 31 - Warning: unescaped & or unknown entity
"&field1"
[testSpec] line 11 column 31 - Warning: unescaped & or unknown entity
"&forms"
testClickButton:
testLocatorOnTable:
Overriding previous definition of reference to test
Overriding previous definition of reference to unknown
Overriding previous definition of reference to test
Overriding previous definition of reference to test
testRepeat:
testVerifyCheckbox:
testSetCheckbox:
testPostMultipleAndBack:
testCacheBug:
testNoHaltOnFailure:
testWarningsForBadHtml:
troubleSample:
testNoHaltOnError:
main:
CreateSummaryReport:
[copy] Copying 1 file to C:\canoo-196\samples\log
[copy] Copying 1 file to C:\canoo-196\samples\log
[copy] Copying 1 file to C:\canoo-196\samples
onPath:
failIfBadPath:
applySingle:
[style] Processing C:\canoo-196\samples\WebTestReport.xml to
C:\canoo-196\sa
mples\TestResultOverview.html
[style] Loading stylesheet C:\canoo-196\samples\WebTestReport.xsl
[style] Failed to read stylesheet C:\canoo-196\samples\WebTestReport.xsl
[style] Failed to process C:\canoo-196\samples\WebTestReport.xml
BUILD FAILED
C:\canoo-196\samples\ApplyXSL.xml:47:
javax.xml.transform.TransformerConfigurati
onException: javax.xml.transform.TransformerException:
javax.xml.transform.Trans
formerException: xsl:import is not allowed in this position in the
stylesheet!
Total time: 40 seconds