Text Field Validations


  • 20 Jan, 2012

    Need to validate text fields against1. Null2. Not Null.3. whether it allows any Special Characters.4. whether it allows numeric contents.5. Maximum length of the field etc.1) 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 blankwhat special characters are allowedis it an alpha, nemeric or alphanumeric field etc.etc.2) Write manual tests for doing what you want. This will create a structure to form the basis of your WR tests.3) now create your WR scripts. I suggest that you use data driven tests and use Excel spreadsheets for your inputs instead of having user input. For example the following structure will test whether the text field will accept special characters :

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.