Link to home
Start Free TrialLog in
Avatar of rdy1437
rdy1437

asked on

httpunit and javascript???

Hi! Im developing a web application and use httpunit to http test it.

Here's the scenario, i had a page that has a form(html form) and a couple of text,button and hidden fields.When the form is submitted there's a javascript function that is called

<form onSubmit="javascript:validate();">.In the javascript function, some validation  and use the javascript function parseInt. parseInt function in javascript, as we all know, well just convert the given string to a number(whole number).

Well, i tried to run my apps in browser and the parseInt is returning a whole number.But when i tried to run httpunit, parseInt returns a decimal number.

IE - 6
HTTPUNIT - 6.0

what do you think guys? Is this has something to do with the javascript version used by httpunit?
ASKER CERTIFIED SOLUTION
Avatar of aozarov
aozarov

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rdy1437
rdy1437

ASKER

Thanks for the reply aozarov.do you know or have used other http test aside from httpunit thats support javascript?
No, I used for that purpose only httpunit and I didn't use much the JavaScript validation feature (I used rhino directly to test my scripts).