I have getCookie javascript method in my login.jsp. It is in my cookie.js, it is external javacript method. Does jWebUnit can't see an external javascript? Do anyone have idea what is this error? and how to fix it or work around?
Below is the error Log: [junit] Testcase: test1(com.voxsant.thinkscan.webapp.action.WebTest): Caused an ERROR [junit] ReferenceError: "getCookie" is not defined. (script in http://localhost/login.jsp from ( 179, 40) to (212, 10)#180) [junit] ======= EXCEPTION START ======== [junit] EcmaError: lineNumber=[180] column=[0] lineSource=[<no source>] name=[ReferenceError] so urceName=[script in http://localhost/login.jsp from (179, 40) to (212, 10)] message=[ReferenceError: "getCookie" is not defined. (script in http://localhost/login.jsp from (179, 40) to (212, 10)#180)] [junit] com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "getCookie" is not define d. (script in http://localhost/login.jsp from (179, 40) to (212, 10)#180) ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ JWebUnit-users mailing list JWebUnit-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jwebunit-users