[Webtest] runtimeError: message=[Bad method parameters for "init".]
Christian Möller
webtest@lists.canoo.com
Wed, 08 Jun 2005 11:07:02 +0200
Hi,
I'm using Webtest (build 834, downloaded this morning) on my local
Win2000 machine and on an integration platform with Solaris.
Further characteristics of the environment:
JDK 1.4.2 on both machines
Ant 1.6.1 on Solaris, 1.6.5 locally on Win2000
Tomcat 5.0.27 on Solaris, 5.5.9 locally on Win2000
Locally the test I've written runs successfully, but executing the test
on Solaris failed due to:
==========================================
INFO (com.canoo.webtest.steps.request.Target) - -> gotoTarget(by url):
http://[integration_ip]:18080/rri/index.html
ERROR (com.gargoylesoftware.htmlunit.ScriptEngine) - runtimeError:
message=[Bad method parameters for "init".] sourceName=[null] line=[0]
lineSource=[null] lineOffset=[0]
INFO (com.canoo.webtest.steps.Step) - Exception thrown from this class:
org.apache.xerces.xni.XNIException
ERROR (com.canoo.webtest.steps.Step) - Cannot handle unexpected
exception in step InvokePage at
/local/ci/tools/ci/workspaces/RRI-Web/config/canoo/login_de.xml:3: with
(stepid="Invoke login page", url="index.html", stepType="invoke")
[testSpec] org.apache.xerces.xni.XNIException
[testSpec] at
org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1860)
...
==========================================
The "index.html" referenced in the test looks like this:
==========================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="refresh" content="0; URL=app">
</head>
<body>
</body>
</html>
==========================================
Entering "http://[integration_ip]:18080/rri/index.html" at my browser
shows the expected result: After the refresh I get the page from
"http://[integration_ip]:18080/rri/app".
Attribute "autorefresh" of element "config" is set to "true" (otherwise
it won't work locally, too).
I'm confused what might went wrong here. Maybe there is somebody out
there who can help? Thanks in advance.
Christian