PDA

View Full Version : Testing


Sachin
08-23-2007, 07:34 AM
Is it necessary to validate spaces in
Textbox.eg:If the Textbox is mandatory,and i am giving space and moving to next field...If the system allows tht space, is it a bug?

adminsoft
08-23-2007, 07:46 AM
If the text box is using a text handler along with field definition, it
can define restrictions on characters being used in text boxes like mail
ID field. It will not accept space and will look for a symbol @
mandatory.

However, normally Mandatory text fields will allow any character
including space as a valid entry if not used with a text handler.
A space entered in the beginning of a name will be truncated before
validation and first Char (alpha or special char or digit) will be
considered as start of name. Therefore a name starting with a space will
still be considered valid and it is not a bug.

However if text box is defined as mandatory and the box is filled only
with key strokes on the space bar, the system should throw an error. In
the process of truncation all the spaces entered will be truncated and
the entry will be understood as "null" by the system.

A text box of length 10 if it has 9 leading spaces and 1 char "S"
entered the name will be read as "S" & not as " S".