Hi Ole,
shall we google for you: "WEBTEST JavaScript Option Exception"?
But btw. it is much better to fix the JavaScriptException!
Avoiding JS-Exception should only be the last change.
Look into the JS-File and examine the cause of the Error.
HtmlUnit supporter do a terrific good job and they a really fast.
yours
Michael
Ole Lützhøft schrieb:
Hi
Is it possible to ignore JavaScript exceptions in Webtest?.
Browsers ignore such errors, but Webtest stopping with:
Error
Message
JavaScript error loading page https://my.site.com/portal/server.pt: Wrapped
com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "PTPMMenu" is not defined. (script in
https://my.
site.com/portal/server.pt?CommunityID=200&parentname=Login&control=SetCommunity&parentid=0&in_hi_userid=3901&PageID=0&cached=false&space=CommunityPage
from (20695, 32) to (20723, 10)#20695) (script in https://my. site.com/portal/server.pt from (11, 41) to (147,
10)#74)
If not possible (yet), it could be very very fine becoming the possibility to
"catch" such an exception and decide stopping or not ...
Thanks in advance
Best Regards,
Ole
------------------ exception
---------------------------------------------------------------------------------------------------------------------------
[groovyScript] DEBUG (com.canoo.webtest.steps.Step) - Handling exception
com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: ReferenceError:
"PTPMMenu" is not defined. (script in
https://my.site.com/portal/server.pt?CommunityID=200&parentname=Login&control=SetCommunity&parentid=0&in_hi_userid=3901&PageID=0&cached=false&space=CommunityPage
from (20695, 32) to (20723, 10)#20695) (script in https://my.site.com/portal/server.pt from (11, 41) to (147, 10)#74)
[groovyScript] ======= EXCEPTION START ========
[groovyScript] Exception class=[org.mozilla.javascript.WrappedException]
[groovyScript] com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException:
ReferenceError: "PTPMMenu" is not defined. (script in
https://my.site.com/portal/server.pt?CommunityID=200&parentname=Login&control=SetCommunity&parentid=0&in_hi_userid=3901&PageID=0&cached=false&space=CommunityPage
from (20695, 32) to (20723, 10)#20695) (script in https://my.site.com/portal/server.pt from (11, 41) to (147, 10)#74)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:513)
[groovyScript] at org.mozilla.javascript.Context.call(Context.java:515)
[groovyScript] at
org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:444)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:961)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:152)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:165)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:576)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:916)
[groovyScript] at org.mozilla.javascript.Context.call(Context.java:515)
[groovyScript] at
org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:921)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:136)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:107)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:76)
[groovyScript] at
com.canoo.webtest.steps.request.ClickButton.findTarget(ClickButton.java:157)
[groovyScript] at
com.canoo.webtest.steps.request.AbstractTargetAction.doExecute(AbstractTargetAction.java:72)
[groovyScript] at com.canoo.webtest.steps.Step.execute(Step.java:101)
[groovyScript] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[groovyScript] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
[groovyScript] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[groovyScript] at java.lang.reflect.Method.invoke(Method.java:597)
[groovyScript] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
[groovyScript] at org.apache.tools.ant.Task.perform(Task.java:348)
[groovyScript] at
com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:43)
[groovyScript] at
com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:31)
[groovyScript] at com.canoo.webtest.steps.Step.execute(Step.java:101)
[groovyScript] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[groovyScript] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[groovyScript] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[groovyScript] at java.lang.reflect.Method.invoke(Method.java:597)
[groovyScript] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
[groovyScript] at org.apache.tools.ant.Task.perform(Task.java:348)
[groovyScript] at
com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:206)
[groovyScript] at
WebtestTaskParallel.super$4$execute(WebTestParallelInit.groovy)
[groovyScript] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[groovyScript] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[groovyScript] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[groovyScript] at java.lang.reflect.Method.invoke(Method.java:597)
[groovyScript] at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
[groovyScript] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
[groovyScript] at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
[groovyScript] at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:131)
[groovyScript] at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:154)
[groovyScript] at
WebtestTaskParallel.executeReally(WebTestParallelInit.groovy:57)
[groovyScript] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[groovyScript] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[groovyScript] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[groovyScript] at java.lang.reflect.Method.invoke(Method.java:597)
[groovyScript] at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
[groovyScript] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
[groovyScript] at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
[groovyScript] at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
[groovyScript] at
org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:778)
[groovyScript] at
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:758)
[groovyScript] at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
[groovyScript] at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.java:198)
[groovyScript] at
WebTestParallelInit$_run_closure1.doCall(WebTestParallelInit.groovy:122)
[groovyScript] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[groovyScript] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[groovyScript] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[groovyScript] at java.lang.reflect.Method.invoke(Method.java:597)
[groovyScript] at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
[groovyScript] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
[groovyScript] at
org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:248)
[groovyScript] at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
[groovyScript] at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:807)
[groovyScript] at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
[groovyScript] at groovy.lang.Closure.call(Closure.java:292)
[groovyScript] at groovy.lang.Closure.call(Closure.java:287)
[groovyScript] at groovy.lang.Closure.run(Closure.java:368)
[groovyScript] at java.lang.Thread.run(Thread.java:619)
[groovyScript] Caused by: org.mozilla.javascript.WrappedException: Wrapped
com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "PTPMMenu" is not defined. (script in
https://my.site.com/portal/server.pt?CommunityID=200&parentname=Login&control=SetCommunity&parentid=0&in_hi_userid=3901&PageID=0&cached=false&space=CommunityPage
from (20695, 32) to (20723, 10)#20695) (script in https://my.site.com/portal/server.pt from (11, 41) to (147, 10)#74)
[groovyScript] at
org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1773)
[groovyScript] at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:183)
[groovyScript] at
org.mozilla.javascript.FunctionObject.call(FunctionObject.java:476)
[groovyScript] at
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3330)
[groovyScript] at
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
[groovyScript] at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
[groovyScript] at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:192)
[groovyScript] at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
[groovyScript] at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:82)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:472)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:437)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:507)
[groovyScript] ... 71 more
[groovyScript] Caused by: com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "PTPMMenu" is not
defined. (script in
https://my.site.com/portal/server.pt?CommunityID=200&parentname=Login&control=SetCommunity&parentid=0&in_hi_userid=3901&PageID=0&cached=false&space=CommunityPage
from (20695, 32) to (20723, 10)#20695)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:513)
[groovyScript] at org.mozilla.javascript.Context.call(Context.java:515)
[groovyScript] at
org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:412)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:387)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:934)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:309)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:363)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:212)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:238)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:569)
[groovyScript] at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:523)
[groovyScript] at
org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:210)
[groovyScript] at
org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329)
[groovyScript] at
org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:986)
[groovyScript] at
org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:889)
[groovyScript] at
org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2998)
[groovyScript] at
org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1993)
[groovyScript] at
org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:910)
[groovyScript] at
org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)
[groovyScript] at
org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)
[groovyScript] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:771)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:252)
[groovyScript] at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:127)
[groovyScript] at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
[groovyScript] at
com.canoo.webtest.engine.Configuration$2.createPage(Configuration.java:655)
[groovyScript] at
com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:439)
[groovyScript] at
com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:327)
[groovyScript] at
com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:352)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:171)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:224)
[groovyScript] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[groovyScript] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[groovyScript] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[groovyScript] at java.lang.reflect.Method.invoke(Method.java:597)
[groovyScript] at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
[groovyScript] ... 83 more
[groovyScript] Caused by: org.mozilla.javascript.EcmaError: ReferenceError: "PTPMMenu" is not defined.
(script in
https://my.site.com/portal/server.pt?CommunityID=200&parentname=Login&control=SetCommunity&parentid=0&in_hi_userid=3901&PageID=0&cached=false&space=CommunityPage
from (20695, 32) to (20723, 10)#20695)
[groovyScript] at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3654)
[groovyScript] at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3632)
[groovyScript] at
org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3717)
[groovyScript] at
org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1692)
[groovyScript] at
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3410)
[groovyScript] at
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
[groovyScript] at
org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:178)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:403)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:507)
[groovyScript] ... 120 more
[groovyScript] WrappedException: org.mozilla.javascript.WrappedException: Wrapped
com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "PTPMMenu" is not defined. (script in
https://my.site.com/portal/server.pt?CommunityID=200&parentname=Login&control=SetCommunity&parentid=0&in_hi_userid=3901&PageID=0&cached=false&space=CommunityPage
from (20695, 32) to (20723, 10)#20695) (script in https://my.site.com/portal/server.pt from (11, 41) to (147, 10)#74)
[groovyScript] at
org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1773)
[groovyScript] at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:183)
[groovyScript] at
org.mozilla.javascript.FunctionObject.call(FunctionObject.java:476)
[groovyScript] at
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3330)
[groovyScript] at script.doLogin(script in
https://my.site.com/portal/server.pt from (11, 41) to (147, 10):74)
[groovyScript] at script(onclick event for HtmlButtonInput[<input type="button" alt="Log In" onclick="doLogin(); return false;"
class="formBtnText" name="in_bu_Login" title="Log In" id="input311702" value="Log In">] in
https://my.site.com/portal/server.pt)
[groovyScript] at
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
[groovyScript] at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
[groovyScript] at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:192)
[groovyScript] at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
[groovyScript] at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:82)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:472)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:437)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:507)
[groovyScript] at org.mozilla.javascript.Context.call(Context.java:515)
[groovyScript] at
org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:444)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:961)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:152)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:165)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:576)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:916)
[groovyScript] at org.mozilla.javascript.Context.call(Context.java:515)
[groovyScript] at
org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:921)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:136)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:107)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:76)
[groovyScript] at
com.canoo.webtest.steps.request.ClickButton.findTarget(ClickButton.java:157)
[groovyScript] at
com.canoo.webtest.steps.request.AbstractTargetAction.doExecute(AbstractTargetAction.java:72)
[groovyScript] at com.canoo.webtest.steps.Step.execute(Step.java:101)
[groovyScript] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[groovyScript] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
[groovyScript] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[groovyScript] at java.lang.reflect.Method.invoke(Method.java:597)
[groovyScript] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
[groovyScript] at org.apache.tools.ant.Task.perform(Task.java:348)
[groovyScript] at
com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:43)
[groovyScript] at
com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:31)
[groovyScript] at com.canoo.webtest.steps.Step.execute(Step.java:101)
[groovyScript] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[groovyScript] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[groovyScript] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[groovyScript] at java.lang.reflect.Method.invoke(Method.java:597)
[groovyScript] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
[groovyScript] at org.apache.tools.ant.Task.perform(Task.java:348)
[groovyScript] at
com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:206)
[groovyScript] at
WebtestTaskParallel.super$4$execute(WebTestParallelInit.groovy)
[groovyScript] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[groovyScript] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[groovyScript] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[groovyScript] at java.lang.reflect.Method.invoke(Method.java:597)
[groovyScript] at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
[groovyScript] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
[groovyScript] at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
[groovyScript] at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:131)
[groovyScript] at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:154)
[groovyScript] at
WebtestTaskParallel.executeReally(WebTestParallelInit.groovy:57)
[groovyScript] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[groovyScript] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[groovyScript] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[groovyScript] at java.lang.reflect.Method.invoke(Method.java:597)
[groovyScript] at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
[groovyScript] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
[groovyScript] at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
[groovyScript] at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
[groovyScript] at
org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:778)
[groovyScript] at
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:758)
[groovyScript] at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
[groovyScript] at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.java:198)
[groovyScript] at
WebTestParallelInit$_run_closure1.doCall(WebTestParallelInit.groovy:122)
[groovyScript] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[groovyScript] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[groovyScript] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[groovyScript] at java.lang.reflect.Method.invoke(Method.java:597)
[groovyScript] at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
[groovyScript] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
[groovyScript] at
org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:248)
[groovyScript] at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
[groovyScript] at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:807)
[groovyScript] at
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
[groovyScript] at groovy.lang.Closure.call(Closure.java:292)
[groovyScript] at groovy.lang.Closure.call(Closure.java:287)
[groovyScript] at groovy.lang.Closure.run(Closure.java:368)
[groovyScript] at java.lang.Thread.run(Thread.java:619)
[groovyScript] Caused by: com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "PTPMMenu" is not
defined. (script in
https://my.site.com/portal/server.pt?CommunityID=200&parentname=Login&control=SetCommunity&parentid=0&in_hi_userid=3901&PageID=0&cached=false&space=CommunityPage
from (20695, 32) to (20723, 10)#20695)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:513)
[groovyScript] at org.mozilla.javascript.Context.call(Context.java:515)
[groovyScript] at
org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:412)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:387)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:934)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:309)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:363)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:212)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:238)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:569)
[groovyScript] at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:523)
[groovyScript] at
org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:210)
[groovyScript] at
org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329)
[groovyScript] at
org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:986)
[groovyScript] at
org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:889)
[groovyScript] at
org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2998)
[groovyScript] at
org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1993)
[groovyScript] at
org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:910)
[groovyScript] at
org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)
[groovyScript] at
org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)
[groovyScript] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:771)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:252)
[groovyScript] at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:127)
[groovyScript] at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
[groovyScript] at
com.canoo.webtest.engine.Configuration$2.createPage(Configuration.java:655)
[groovyScript] at
com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:439)
[groovyScript] at
com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:327)
[groovyScript] at
com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:352)
[groovyScript] at
com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:171)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement.jsxFunction_submit(HTMLFormElement.java:224)
[groovyScript] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[groovyScript] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[groovyScript] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[groovyScript] at java.lang.reflect.Method.invoke(Method.java:597)
[groovyScript] at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
[groovyScript] ... 83 more
[groovyScript] Caused by: org.mozilla.javascript.EcmaError: ReferenceError: "PTPMMenu" is not defined.
(script in
https://my.site.com/portal/server.pt?CommunityID=200&parentname=Login&control=SetCommunity&parentid=0&in_hi_userid=3901&PageID=0&cached=false&space=CommunityPage
from (20695, 32) to (20723, 10)#20695)
[groovyScript] at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3654)
[groovyScript] at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3632)
[groovyScript] at
org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3717)
[groovyScript] at
org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1692)
[groovyScript] at
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3410)
[groovyScript] at
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
[groovyScript] at
org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:178)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:403)
[groovyScript] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:507)
[groovyScript] ... 120 more
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest