opensubscriber
   Find in this group all groups
 
Unknown more information…

j : jwebunit-users@lists.sourceforge.net 22 October 2009 • 6:40PM -0400

[JWebUnit-users] getCookie Error External Javascript
by Nelson Biasura

REPLY TO AUTHOR
 
REPLY TO GROUP







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@list...
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.