Hi Nelson,

JWebUnit (in fact HtmlUnit) is perfectly able to fetch an external JavaScript 
file. What version of JWebUnit are you using?

You may try to read http://htmlunit.sourceforge.net/submittingJSBugs.html if 
you plan to ask for help for your specific error.

Regards,

Julien



----- Message d'origine ----
> De : Nelson Biasura <nelson.bias...@aurisoftsys.com>
> À : jwebunit-users@lists.sourceforge.net
> Envoyé le : Jeu 22 Octobre 2009, 12 h 40 min 22 s
> Objet : [JWebUnit-users] getCookie Error External Javascript
> 
> 
> 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=[
> 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



      

------------------------------------------------------------------------------
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

Reply via email to