[Webtest] build failing

Richard Burgess webtest@lists.canoo.com
Mon, 7 Apr 2003 17:53:20 +0100


--ZPt4rx8FFjLCG7dd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I've just done a clean checkout from CVS and the project won't build.

The first problem was the following runtime error:

java.lang.NoClassDefFoundError: org/cyberneko/html/HTMLConfiguration

I grabbed the nekoxni-latest.tar.gz linked to from
http://www.apache.org/~andyc/neko/doc/ and copied all the jars held
within to the lib directory of the project.

The list of jars I added is:
nekodtd.jar  nekohtml.jar  nekohtmlSamples.jar  nekohtmlXni.jar
nekopull.jar  nekopullSamples.jar  nekostyle.jar

The NoClassDefFoundErrors go away, but I still get a failure on the
default build.  I have attached the TestResults.xml file.

I am running under:

java version: j2sdk1.4.1_01
ant version: 1.5.1
os: SuSE linux 8.1

What am I missing?

regards
Richard


-- 
richard@txnt.com

This life is a test.  It is only a test.  Had this been an actual life, you
would have received further instructions as to what to do and where to go.

--ZPt4rx8FFjLCG7dd
Content-Type: text/xml; charset=us-ascii
Content-Disposition: attachment; filename="TestReport.xml"
Content-Transfer-Encoding: quoted-printable

<?xml version=3D"1.0"?>
<testsuite errors=3D"0" failures=3D"1" name=3D"com.canoo.webtest.AllTests" =
tests=3D"55" time=3D"1.938">
  <properties>
    <property name=3D"java.vendor" value=3D"Sun Microsystems Inc."></proper=
ty>
    <property name=3D"server.restart.command" value=3D"/opt/dev/sharedPlan/=
stopServer.sh"></property>
    <property name=3D"docs.dir" value=3D"doc"></property>
    <property name=3D"os.name" value=3D"Linux"></property>
    <property name=3D"sun.boot.class.path" value=3D"/usr/java/j2sdk1.4.1_01=
/jre/lib/rt.jar:/usr/java/j2sdk1.4.1_01/jre/lib/i18n.jar:/usr/java/j2sdk1.4=
.1_01/jre/lib/sunrsasign.jar:/usr/java/j2sdk1.4.1_01/jre/lib/jsse.jar:/usr/=
java/j2sdk1.4.1_01/jre/lib/jce.jar:/usr/java/j2sdk1.4.1_01/jre/lib/charsets=
.jar:/usr/java/j2sdk1.4.1_01/jre/classes"></property>
    <property name=3D"TODAY" value=3D"April 7 2003"></property>
    <property name=3D"sun.java2d.fontpath" value=3D""></property>
    <property name=3D"java.vm.specification.vendor" value=3D"Sun Microsyste=
ms Inc."></property>
    <property name=3D"ant.home" value=3D"/tmp/cube/tools/jakarta-ant-1.5.1"=
></property>
    <property name=3D"java.runtime.version" value=3D"1.4.1_01-b01"></proper=
ty>
    <property name=3D"user.name" value=3D"richard"></property>
    <property name=3D"deploy.dir" value=3D"deploy"></property>
    <property name=3D"build.dir" value=3D"build"></property>
    <property name=3D"user.language" value=3D"en"></property>
    <property name=3D"sun.boot.library.path" value=3D"/usr/java/j2sdk1.4.1_=
01/jre/lib/i386"></property>
    <property name=3D"ant.project.name" value=3D"CanooWebTest"></property>
    <property name=3D"DSTAMP" value=3D"20030407"></property>
    <property name=3D"java.version" value=3D"1.4.1_01"></property>
    <property name=3D"user.timezone" value=3D""></property>
    <property name=3D"sun.arch.data.model" value=3D"32"></property>
    <property name=3D"deploy.jar.file" value=3D"deploy/lib/webtest.jar"></p=
roperty>
    <property name=3D"java.endorsed.dirs" value=3D"/usr/java/j2sdk1.4.1_01/=
jre/lib/endorsed"></property>
    <property name=3D"sun.cpu.isalist" value=3D""></property>
    <property name=3D"port" value=3D"7070"></property>
    <property name=3D"file.encoding.pkg" value=3D"sun.io"></property>
    <property name=3D"file.separator" value=3D"/"></property>
    <property name=3D"java.specification.name" value=3D"Java Platform API S=
pecification"></property>
    <property name=3D"java.class.version" value=3D"48.0"></property>
    <property name=3D"user.country" value=3D"GB"></property>
    <property name=3D"java.home" value=3D"/usr/java/j2sdk1.4.1_01/jre"></pr=
operty>
    <property name=3D"java.vm.info" value=3D"mixed mode"></property>
    <property name=3D"ant.file" value=3D"/home/richard/global-cvs/webtest.c=
lean/build.xml"></property>
    <property name=3D"os.version" value=3D"2.4.19-4GB"></property>
    <property name=3D"path.separator" value=3D":"></property>
    <property name=3D"java.vm.version" value=3D"1.4.1_01-b01"></property>
    <property name=3D"java.util.prefs.PreferencesFactory" value=3D"java.uti=
l.prefs.FileSystemPreferencesFactory"></property>
    <property name=3D"java.awt.printerjob" value=3D"sun.print.PSPrinterJob"=
></property>
    <property name=3D"sun.io.unicode.encoding" value=3D"UnicodeLittle"></pr=
operty>
    <property name=3D"selftest.server.webapp.dir" value=3D"/home/richard/cr=
uisecontrol-2.0.1/jakarta-tomcat-4.1.18/webapps"></property>
    <property name=3D"user.home" value=3D"/home/richard"></property>
    <property name=3D"java.specification.vendor" value=3D"Sun Microsystems =
Inc."></property>
    <property name=3D"protocol" value=3D"http"></property>
    <property name=3D"java.library.path" value=3D"/usr/java/j2sdk1.4.1_01/j=
re/lib/i386/client:/usr/java/j2sdk1.4.1_01/jre/lib/i386:/usr/java/j2sdk1.4.=
1_01/jre/../lib/i386"></property>
    <property name=3D"java.vendor.url" value=3D"http://java.sun.com/"></pro=
perty>
    <property name=3D"java.vm.vendor" value=3D"Sun Microsystems Inc."></pro=
perty>
    <property name=3D"java.runtime.name" value=3D"Java(TM) 2 Runtime Enviro=
nment, Standard Edition"></property>
    <property name=3D"java.class.path" value=3D"/home/richard/global-cvs/we=
btest.clean/lib/antrunner.jar:/home/richard/global-cvs/webtest.clean/lib/ne=
kostyle.jar:/home/richard/global-cvs/webtest.clean/lib/mailapi.jar:/home/ri=
chard/global-cvs/webtest.clean/lib/nekopullSamples.jar:/home/richard/global=
-cvs/webtest.clean/lib/servlet.jar:/home/richard/global-cvs/webtest.clean/l=
ib/jsse.jar:/home/richard/global-cvs/webtest.clean/lib/nekodtd.jar:/home/ri=
chard/global-cvs/webtest.clean/lib/nekohtmlXni.jar:/home/richard/global-cvs=
/webtest.clean/lib/jakarta-ant-1.4-optional.jar:/home/richard/global-cvs/we=
btest.clean/lib/jnet.jar:/home/richard/global-cvs/webtest.clean/lib/Tidy.ja=
r:/home/richard/global-cvs/webtest.clean/lib/xercesImpl.jar:/home/richard/g=
lobal-cvs/webtest.clean/lib/xalan.jar:/home/richard/global-cvs/webtest.clea=
n/lib/js.jar:/home/richard/global-cvs/webtest.clean/lib/httpunitWithJTidy.j=
ar:/home/richard/global-cvs/webtest.clean/lib/dom4j-1.3-full.jar:/home/rich=
ard/global-cvs/webtest.clean/lib/nekohtmlSamples.jar:/home/richard/global-c=
vs/webtest.clean/lib/nekohtml.jar:/home/richard/global-cvs/webtest.clean/li=
b/ant.jar:/home/richard/global-cvs/webtest.clean/lib/nekopull.jar:/home/ric=
hard/global-cvs/webtest.clean/lib/jakarta-oro-2.0.4.jar:/home/richard/globa=
l-cvs/webtest.clean/lib/jcert.jar:/home/richard/global-cvs/webtest.clean/li=
b/httpunit.jar:/home/richard/global-cvs/webtest.clean/lib/xmlParserAPIs.jar=
:/home/richard/global-cvs/webtest.clean/lib/junit_3.7.jar:/home/richard/glo=
bal-cvs/webtest.clean/deploy/lib/webtest.jar:/tmp/cube/tools/jakarta-ant-1.=
5.1/lib/junit-3.8.jar:/tmp/cube/tools/jakarta-ant-1.5.1/lib/ant.jar:/tmp/cu=
be/tools/jakarta-ant-1.5.1/lib/optional.jar"></property>
    <property name=3D"ant.version" value=3D"Apache Ant version 1.5.1 compil=
ed on October 2 2002"></property>
    <property name=3D"TSTAMP" value=3D"1752"></property>
    <property name=3D"java.vm.specification.name" value=3D"Java Virtual Mac=
hine Specification"></property>
    <property name=3D"cruiseTestReport.file" value=3D"TestReport.xml"></pro=
perty>
    <property name=3D"cruiseTestReport" value=3D"TestReport"></property>
    <property name=3D"java.vm.specification.version" value=3D"1.0"></proper=
ty>
    <property name=3D"build.classes" value=3D"build/classes"></property>
    <property name=3D"sun.cpu.endian" value=3D"little"></property>
    <property name=3D"sun.os.patch.level" value=3D"unknown"></property>
    <property name=3D"java.io.tmpdir" value=3D"/tmp"></property>
    <property name=3D"java.vendor.url.bug" value=3D"http://java.sun.com/cgi=
-bin/bugreport.cgi"></property>
    <property name=3D"os.arch" value=3D"i386"></property>
    <property name=3D"java.awt.graphicsenv" value=3D"sun.awt.X11GraphicsEnv=
ironment"></property>
    <property name=3D"basepath" value=3D"selftest"></property>
    <property name=3D"java.ext.dirs" value=3D"/usr/java/j2sdk1.4.1_01/jre/l=
ib/ext"></property>
    <property name=3D"user.dir" value=3D"/home/richard/global-cvs/webtest.c=
lean"></property>
    <property name=3D"line.separator" value=3D"
"></property>
    <property name=3D"java.vm.name" value=3D"Java HotSpot(TM) Client VM"></=
property>
    <property name=3D"basedir" value=3D"/home/richard/global-cvs/webtest.cl=
ean"></property>
    <property name=3D"webTestReport.file" value=3D"WebTestResults.xml"></pr=
operty>
    <property name=3D"ant.java.version" value=3D"1.4"></property>
    <property name=3D"server.restart.dir" value=3D"/opt/dev/sharedPlan"></p=
roperty>
    <property name=3D"file.encoding" value=3D"ISO-8859-1"></property>
    <property name=3D"resultpath" value=3D"/tmp/webtest"></property>
    <property name=3D"host" value=3D"localhost"></property>
    <property name=3D"java.specification.version" value=3D"1.4"></property>
    <property name=3D"src.dir" value=3D"src"></property>
    <property name=3D"javadoc.dir" value=3D"doc/api"></property>
  </properties>
  <testcase name=3D"testOneSimpleFile" time=3D"0.161"></testcase>
  <testcase name=3D"testNoSelfAppend" time=3D"0.116"></testcase>
  <testcase name=3D"testCtorBasePath" time=3D"0.013"></testcase>
  <testcase name=3D"testCtorDefaultPage" time=3D"0.0010"></testcase>
  <testcase name=3D"testStandard" time=3D"0.0010"></testcase>
  <testcase name=3D"testUrlFromHostPort" time=3D"0.0010"></testcase>
  <testcase name=3D"testUrlFromHostPortBasePath" time=3D"0.0"></testcase>
  <testcase name=3D"testUrlFromFileDosPageWithBasepath" time=3D"0.0"></test=
case>
  <testcase name=3D"testUrlFromFileUnixPageWithBasepath" time=3D"0.0"></tes=
tcase>
  <testcase name=3D"testUrlFromFileDosPageAbsolute" time=3D"0.0"></testcase>
  <testcase name=3D"testUrlFromFileDosPageAbsoluteNoBasePath" time=3D"0.0">=
</testcase>
  <testcase name=3D"testUrlFromFileDosPageRelative" time=3D"0.0"></testcase>
  <testcase name=3D"testUrlFromFileUnixPageRelative" time=3D"0.0"></testcas=
e>
  <testcase name=3D"testAddStep" time=3D"0.027"></testcase>
  <testcase name=3D"testCtor" time=3D"0.0"></testcase>
  <testcase name=3D"testIsStartedIsCompleted" time=3D"0.012"></testcase>
  <testcase name=3D"testIsStartCompletedOnFailure" time=3D"0.0020"></testca=
se>
  <testcase name=3D"testIsStartCompletedOnError" time=3D"0.0010"></testcase>
  <testcase name=3D"testDynamicProperties" time=3D"0.0010"></testcase>
  <testcase name=3D"testLocatorChoiceNameOnly" time=3D"0.02"></testcase>
  <testcase name=3D"testLocatorChoiceValueOnly" time=3D"0.0020"></testcase>
  <testcase name=3D"testLocatorChoiceValueAndName" time=3D"0.0030"></testca=
se>
  <testcase name=3D"testLocatorChoiceInvalid" time=3D"0.0"></testcase>
  <testcase name=3D"testVerifyParameterValid" time=3D"0.0010"></testcase>
  <testcase name=3D"testVerifyParameterInvalid" time=3D"0.0020"></testcase>
  <testcase name=3D"testFormLocator" time=3D"0.0010"></testcase>
  <testcase name=3D"testIndexLocator" time=3D"0.0020"></testcase>
  <testcase name=3D"testVerifyParameterValid" time=3D"0.025"></testcase>
  <testcase name=3D"testVerifyParameterInvalid" time=3D"0.0"></testcase>
  <testcase name=3D"testZeroCount" time=3D"0.0"></testcase>
  <testcase name=3D"testStepExpansion" time=3D"0.0010"></testcase>
  <testcase name=3D"testDefaultParameterSubtitutionValue" time=3D"0.0010"><=
/testcase>
  <testcase name=3D"testNestedRepeatInvocation" time=3D"0.139"></testcase>
  <testcase name=3D"testClone" time=3D"0.0030"></testcase>
  <testcase name=3D"testVerifyParameter" time=3D"0.013"></testcase>
  <testcase name=3D"testResultingParameter" time=3D"0.0010"></testcase>
  <testcase name=3D"testDynamicPropertyExpansion" time=3D"0.0020"></testcas=
e>
  <testcase name=3D"testSetDefaultValue" time=3D"0.0020"></testcase>
  <testcase name=3D"testSetValue" time=3D"0.0010"></testcase>
  <testcase name=3D"testReset" time=3D"0.0"></testcase>
  <testcase name=3D"testParameterVerificationIsCalled" time=3D"0.0010"></te=
stcase>
  <testcase name=3D"testDynamicPropertyExpansion" time=3D"0.0010"></testcas=
e>
  <testcase name=3D"testMultiselectParameters" time=3D"0.0040"></testcase>
  <testcase name=3D"testSingleSelectParameter" time=3D"0.0010"></testcase>
  <testcase name=3D"testVerifyParameter" time=3D"0.0010"></testcase>
  <testcase name=3D"testResultingParameter" time=3D"0.0"></testcase>
  <testcase name=3D"testDynamicPropertyExpansion" time=3D"0.0080"></testcas=
e>
  <testcase name=3D"testVerifyParameters" time=3D"0.129"></testcase>
  <testcase name=3D"testGrouping" time=3D"0.0020"></testcase>
  <testcase name=3D"testInvalidGroup" time=3D"0.0010"></testcase>
  <testcase name=3D"testExceptionIfNoLastResponse" time=3D"0.0010"></testca=
se>
  <testcase name=3D"testExceptionIfNoMatch" time=3D"0.0"></testcase>
  <testcase name=3D"testSetDynamicProperties" time=3D"0.0010"></testcase>
  <testcase name=3D"testDynamicPropertyExpansion" time=3D"0.0010"></testcas=
e>
  <testcase name=3D"testVerifyParameters" time=3D"0.614">
    <failure message=3D"No match for xpath expression &lt;//input[@id=3D&ap=
os;id&apos;]/@value&gt;" type=3D"com.canoo.webtest.engine.StepFailedExcepti=
on">com.canoo.webtest.engine.StepFailedException: No match for xpath expres=
sion &lt;//input[@id=3D&apos;id&apos;]/@value&gt;, Step: StoreXPathTest$Sto=
reXPathStub(id=3D&quot;&lt;unknown&gt;&quot;, xpath=3D&quot;//input[@id=3D&=
apos;id&apos;]/@value&quot;, property=3D&quot;myProp&quot; )
	at com.canoo.webtest.steps.StoreXPath.getXPath(StoreXPath.java:85)
	at com.canoo.webtest.steps.StoreXPathTest.testVerifyParameters(StoreXPathT=
est.java:81)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja=
va:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso=
rImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at junit.framework.TestCase.runTest(TestCase.java:166)
	at junit.framework.TestCase.runBare(TestCase.java:140)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:131)
	at junit.framework.TestSuite.runTest(TestSuite.java:173)
	at junit.framework.TestSuite.run(TestSuite.java:168)
	at junit.framework.TestSuite.runTest(TestSuite.java:173)
	at junit.framework.TestSuite.run(TestSuite.java:168)
	at junit.framework.TestSuite.runTest(TestSuite.java:173)
	at junit.framework.TestSuite.run(TestSuite.java:168)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitT=
estRunner.java:231)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnit=
TestRunner.java:409)
</failure>
  </testcase>
  <system-out></system-out>
  <system-err></system-err>
</testsuite>

--ZPt4rx8FFjLCG7dd--