|
Canoo WebTest fails with error org.cyberneko.html.HTMLScanner.getCharacterOffset |
|
Sunday, 23 December 2007 00:00 |
|
I've been trying out Canoo WebTest
to automate some basic web site testing, and so far it seems to work
pretty well. For a while, I was launching the tests from within Eclipse
(my IDE), and was having no problems. Recently, I wanted to launch the
tests as part of another script, but I was running into some cryptic
messages when trying to launch Ant.
The
Ant script would run without any noticible errors, but all WebTests
would fail. If I opened the results, I could see the following stack
trace explaining the failures: Unexpected exception caught: org.apache.tools.ant.BuildException at com.canoo.webtest.steps.StepUtil.handleException(StepUtil.java:111) ... Caused by: java.lang.AbstractMethodError: org.cyberneko.html.HTMLScanner.getCharacterOffset()I at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:115) ... Caused by: java.lang.AbstractMethodError: org.cyberneko.html.HTMLScanner.getCharacterOffset()I at org.apache.xerces.xni.parser.XMLParseException.(Unknown Source) ...
After
some searching and trying out different recommendations, I was able to
get it working by calling "webtest.bat" (located in the Canoo WebTest
"bin" directory) rather than directly calling Ant.
|