Define Text Field Validations?

Define Text Field Validations?

Need to validate text fields against : 

> Null

> Not Null.

> whether it allows any Special Characters.

> whether it allows numeric contents.

> Maximum length of the field etc.

* From the requirements find out what the behaviour of the text field in question should be. Things you need to know are :

> what should happen if field left blank

> what special characters are allowed is it an alpha, nemeric or alphanumeric field etc.etc.

* Write manual tests for doing what you want. This will create a structure to form the basis of our WR tests.

* now create your WR scripts. I suggest that we use data driven tests and use Excel spreadsheets for our inputs instead of having user input. For example the following structure will test whether the text field will accept special characters :

open the data table for each value in the data table  get value insert value into text field attempt to use the value inserted if result is as expected report pass


           report fail

   next value in data table


in this case the data table will 

contain all the special charcaters

Date:2029-01-09 00:00:00

Post Your Answers

User Email:

User Name:

Related TESTING Subjective Links

TESTING Subjective interview questions and answers for experienced and fresher