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:valid ate();">.I n 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?
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:valid
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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).
ASKER