Hi,

I guess that they are 2 problems here:
- can you check what is the value of ${Zipcode}? I fear that this will
be of the form 1234567.0. If this is the case, this is a problem of
dataDriven. Please open an issue for it.
- the js error messages shows a problem in HtmlUnit. Can you provide the
js code at line 2512 of
https://secure.idirect.net/n565/scripts/validation.js (and maybe
previous lines if this is needed to understand).

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com


lavanya palaniswamy wrote:
> Hi,
> 
>  
> 
> I am facing problem while importing numeric data from excel sheet with
> data driven.
> 
> However the numbers when given directly as input to the script it works
> fine.
> 
> for eg:
> 
> <setInputField name="applicant.homeAddress.zipCode" value="1234567"/>
> 
>  
> 
>  
> 
> But the numeric values are not printed in the application with the
> following script.
> 
> <setInputField name="applicant.homeAddress.zipCode" value="${Zipcode}"/>
> 
>  
> 
> With this script the following error occurs:
> 
>  
> 
> [clickLink]  WARN (com.gargoylesoftware.htmlunit.ScriptEngine) -
> warning: messag
> 
> e=[RHINO USAGE WARNING: Missed Context.javaToJS() conversion:
> 
> [clickLink] Rhino runtime detected object
> [EMAIL PROTECTED]
> 
> 52: NOT_FOUND of class org.mozilla.javascript.UniqueTag where it
> expected String
> 
> , Number, Boolean or Scriptable instance. Please check your code for
> missing Con
> 
> text.javaToJS() call.]
> sourceName=[https://secure.idirect.net/n565/scripts/valid
> 
> ation.js] line=[2512] lineSource=[null] lineOffset=[0]
> 
> [clickLink] RHINO USAGE WARNING: Missed Context.javaToJS() conversion:
> 
> [clickLink] Rhino runtime detected object
> [EMAIL PROTECTED]
> 
> 52: NOT_FOUND of class org.mozilla.javascript.UniqueTag where it
> expected String
> 
> , Number, Boolean or Scriptable instance. Please check your code for
> missing Con
> 
> text.javaToJS() call.
> 
> [clickLink]  INFO
> (com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine) -
> 
> Caught script exception
> 
> [clickLink] ======= EXCEPTION START ========
> 
> [clickLink] EcmaError: lineNumber=[2513] column=[0] lineSource=[null]
> name=[Refe
> 
> renceError]
> sourceName=[https://secure.idirect.net/n565/scripts/validation.js] m
> 
> essage=[ReferenceError: "selectnode" is not defined.
> (https://secure.idirect.net
> 
> /n565/scripts/validation.js#2513)]
> 
> [clickLink] com.gargoylesoftware.htmlunit.ScriptException:
> ReferenceError: "sele
> 
> ctnode" is not defined.
> (https://secure.idirect.net/n565/scripts/validation.js#2
> 
> 513)
> 
> [clickLink]     at
> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$Htm
> 
> lUnitContextAction.run(JavaScriptEngine.java:512)
> 
>  
> 
> Thanks in Advance
> 
> Lavanya.
> 
> 
> ------------------------------------------------------------------------
> Bring your gang together - do your thing. Start your group.
> <http://in.rd.yahoo.com/tagline_groups_2/*http://in.promos.yahoo.com/groups>


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to