Hi all,
in the hope of getting another quick answer :-)
I can currently run all my webtests via
webtest -buildfile
c:\eclipse_workspaces\ws1\adflex\WEB-INF\src-webtest\all.xml (see below)
No I would like to run this ant file as part of an ant target of our
"normal" build.xml, so I created another target in our old build,xml file:
<target name="webtest">
<ant dir="./WEB-INF/src-webtest" antfile="all.xml" />
</target>
When I run ant webtest, webtest does create this exception (which is not the
case if I call the webtest with "webtest -buildfile....")
Any ideas?
Thanx
Sven
C:\eclipse_workspaces\ws1\adflex>ant webtest
Buildfile: build.xml
webtest:
Trying to override old definition of task sleep
testSuite:
falseLogin:
[webtest] INFO (com.canoo.webtest.ant.WebtestTask) - Starting webtest
"FalseLogin"
(C:\eclipse_workspaces\ws1\adflex\WEB-INF\src-webtest\usecases\LoginAndLogout.xml:23
: )
[webtest] INFO (com.canoo.webtest.ant.WebtestTask) - Canoo Webtest:
R_1393.
[config] INFO (com.canoo.webtest.engine.Configuration) - Surfing with
browser Mozilla/4.0 (compatible; MSIE 6.0b; Windows 98)
[steps] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: steps
(1/6)
[invoke] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: invoke
"get Login Page" (1/6)
[invoke] INFO (com.canoo.webtest.steps.request.AbstractTargetAction) -
-> gotoTarget by URL: dyn/login.html
[invoke] INFO (com.canoo.webtest.steps.request.TargetHelper) - getting
response for url: http://ws.actionality.com/adFlex/dyn/login.html
[invoke] ERROR (com.gargoylesoftware.htmlunit.ScriptEngine) -
runtimeError: message=[Bad method parameters for "init".] sourceName=[null]
line=[0] lineSource=[null] li
neOffset=[0]
[invoke] INFO (com.canoo.webtest.steps.Step) - Running with: Canoo
Webtest: R_1393.
[invoke] INFO (com.canoo.webtest.steps.Step) - Exception thrown from
this class: org.apache.xerces.xni.XNIException
[invoke] ERROR (com.canoo.webtest.steps.Step) - Original cause of the
XNIException: org.mozilla.javascript.EvaluatorException
.<init>(Ljava/lang/String;Ljava/lang/Strin
g;ILjava/lang/String;I)V
[invoke] java.lang.NoSuchMethodError:
org.mozilla.javascript.EvaluatorException
.<init>(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;I)V
[invoke] at
com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter.runtimeError(
StrictErrorReporter.java:114)
[invoke] at org.mozilla.javascript.Context.reportRuntimeError(Unknown
Source)
[invoke] at org.mozilla.javascript.Context.reportRuntimeError(Unknown
Source)
[invoke] at org.mozilla.javascript.Context.reportRuntimeError1(Unknown
Source)
[invoke] at org.mozilla.javascript.FunctionObject.<init>(Unknown
Source)
[invoke] at org.mozilla.javascript.ScriptableObject.defineClass(Unknown
Source)
[invoke] at org.mozilla.javascript.ScriptableObject.defineClass(Unknown
Source)
[invoke] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.configureClass(
JavaScriptEngine.java:165)
[invoke] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.initialize(
JavaScriptEngine.java:135)
[invoke] at com.gargoylesoftware.htmlunit.html.HtmlPage.<init>(
HtmlPage.java:127)
[invoke] at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startDocument
(HTMLParser.java:331)
[invoke] at
org.apache.xerces.parsers.AbstractSAXParser.startDocument(Unknown
Source)
[invoke] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[invoke] at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
[invoke] at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
[invoke] at java.lang.reflect.Method.invoke(Method.java:585)
[invoke] at org.cyberneko.html.filters.DefaultFilter.startDocument(
DefaultFilter.java:102)
[invoke] at org.cyberneko.html.filters.NamespaceBinder.startDocument(
NamespaceBinder.java:247)
[invoke] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[invoke] at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
[invoke] at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
[invoke] at java.lang.reflect.Method.invoke(Method.java:585)
all.xml:
<?xml version="1.0"?>
<project name="AllUseCases" default="testSuite" basedir=".">
<property name="webtest.home" location="C:/webtest-2.1" />
<property file="./webtest.properties"/>
<import file="${webtest.home}/lib/taskdef.xml" />
<target name="testSuite">
<ant antfile="usecases/LoginAndLogout.xml" />
<ant antfile="usecases/LoginAndCheckLinks.xml" />
<ant antfile="usecases/CheckAdvertisements.xml" />
</target>
</project>
--
Sven Haiges
[EMAIL PROTECTED]
Skype: hansamann
Personal Homepage, Wiki & Blog: http://www.svenhaiges.de
Subscribe to the Grails Podcast:
http://hansamann.podspot.de/rss