An incorrect input value

Applying eValid to AJAX applications that require advanced DOM-based methods.

An incorrect input value

Postby cmal » Fri Jan 28, 2011 4:18 pm

In creating scripts, if a user does not put data or incorrectly inputs characters in a "mandatory" field, a user will not get an error but the text box will highlight.

How can eValid be used to validate this error?
cmal
 
Posts: 2
Joined: Tue Jan 18, 2011 2:30 pm

Re: An incorrect input value

Postby eValid » Fri Jan 28, 2011 4:24 pm

When the local processing in the browser displays an error by changing the color of a field, that will have been done by changing a value in the underlying DOM.

So the test for this case -- intended to confirm that an incorrect input value is sensed and reported goes like this:

a) get to the right page

b) feed in the incorrect value

c) Maybe you have to refresh the page? But sometimes this is not needed.

c) use "ValidateSelectedObjProperty" to confirm that the correct value for that property is present.

You may need to use the PageMap to find the index and property name to use in scripting this command into your test.

___________________________
The eValid Support Team
eValid
 
Posts: 2396
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to AJAX Applications & DOM Processing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons