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

what do you think guys? Is this has something to do with the javascript version used by httpunit?
Who is Participating?
aozarovConnect With a Mentor Commented:
Probably, If you read you can see that their JavaScript support is pretty limited
and parseInt is not among the supported methods.
Though what surprised me is that httpunit delegates the javascript calls to rhino which actually applies the parseInt correctly, so that leave
me to belive that httpunit wraps it with the wrong type (like Double instead of Integer).
rdy1437Author Commented:
Thanks for the reply 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).
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.