Dear folks, dear developer, while testing the actual webtest-Build (R_1810) I fail with a JavaScript-Error.
-------- javascript errorNo node attached to this object (https://webgate-dev/ags/js/kw.portal3.lib.js#22) line22 javascript source function (event) { document.getElementById("menu").collapseUnfocused(event); } javascript call stackNo node attached to this object (https://webgate-dev/ags/js/kw.portal3.lib.js#22) at (https://webgate-dev/ags/js/kw.portal3.lib.js:22) -------- I restarted the test with: --- log4j.logger.com.gargoylesoftware.htmlunit.javascript=debug --- The log-messages are less informative than I expected. ------------------ [groovyScript] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: verifyElementText "check that there is no div-tag with id: system-errors." (10/24) [groovyScript] INFO (com.canoo.webtest.engine.WebClientContext) - Responses restored [groovyScript] DEBUG (com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl) - Waiting for all jobs that have execution time before 2000 to finish [groovyScript] DEBUG (com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl) - Finished waiting for all jobs that have target execution time earlier than 1286444021038, final job count is 0 [groovyScript] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink "Click link: " (11/24) [groovyScript] ERROR (com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter) - runtimeError: message=[No node attached to this object] sourceName=[https://webgate-dev/ags/js/kw.portal3.lib.js] line=[22] lineSource=[null] lineOffset=[0] [groovyScript] INFO (com.canoo.webtest.engine.WebClientContext) - Responses restored [groovyScript] INFO (com.canoo.webtest.ant.WebtestTask) - Finished executing webtest "login to: [webgate-dev/ags/] and logout." (C:\MocPortalProjects\PortalTest\webtests\tests\apache\webgateLoginLogoutWebtest.xml:7: ) [groovyScript] INFO (com.canoo.webtest.reporting.XmlReporter) - Writing report to C:\MocPortalProjects\PortalTest\webtests\results\001_LoginTowebgatedevagsAndLogout\WebTestReport.xml [groovyScript] INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully created. [groovyScript] [T: Thread-4]-- executed [echo] Formatting C:\MocPortalProjects\PortalTest\webtests\results\001_LoginTowebgatedevagsAndLogout\WebTestReport.xml to HTML in folder C:\MocPortalProjects\PortalTest\webtests\results\001_LoginTowebgatedevagsAndLogout [groovyScript] [T: Thread-4]-- Finished login to: [webgate-dev/ags/] and logout. - C:\MocPortalProjects\PortalTest\webtests\results [groovyScript] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException ----------------- Are there any Ideas how I can track down the source oft he error? Thanks in advance Michael Habbert ----<snip - Line 13 - 36 >---- function portalInit() { // quit if this function has already been called if (arguments.callee.done) return; // flag this function so we don't do the same thing twice arguments.callee.done = true; if(document.getElementById("menu")){ new SlideArea("menu", -180, "left", "collapsed"); // close the menu if user clicks anywhere but not in it kwCommon.addEvent(document.body, "click", function(event){document.getElementById("menu").collapseUnfocused(event)}, false); //all browsers } kwCommon.addEvent(window, "beforeunload", initBeforeUnload, false); //all browsers kwCommon.addEvent(document.body, "click", checkBeforeUnload, false); //all browsers kwCommon.hideWorkInProgress(); // init kwDebug kwDebug.init(); if (screenInit != null) { screenInit(); } } ----<snip>------------- Michael Habbert Key-Work Consulting GmbH | Kriegsstr. 100 | 76133 Karlsruhe | Germany | www.key-work.de<http://www.key-work.de> Fon: +49-721-78203-269 | E-Mail: [email protected]<mailto:[email protected]> | Fax: +49-721-78203-10 Key-Work Consulting GmbH, Karlsruhe, HRB 108695, HRG Mannheim Gesch?ftsf?hrer: Andreas Stappert, Tobin Wotring

