Friday 27 April 2012

Validation Testing


    This compartment mainly emphasizes on the Validation aspect of the Application. Validation testing mainly depends on the fields set in the dialog box and the functions it has to perform. But still there are certain common rules that can be applied. General guidelines are:
    1. For text box fields where value entered has to be numeric check following:
  • It should accept numbers only and not alphabets.
  • If field usage is such that for e.g., To accept
  • Total number of days
  • Telephone number
  • Zip code etc.
  • Then it should not accept 0 and negative values.

    2. For text box fields where value entered has to be alpha-numeric check following:
  • It should accept alphabets and numbers only.
  • If field usage is such that for e.g., accepting
  • First Name
  • Middle Name
  • Last Name
  • City
  • Country etc.
  • Then field value should start with an alphabet only.
  • Depending on the condition this fields may accept special characters like -, _, . etc.

    3. If the field is a combo box then it has to be checked for following points:
  • Check the combo box has drop down values in it, it is not empty.
  • Drop down values should be alphabetically sorted. This might change as per requirement but as standard practices it should be alphabetically sorted. For e.g. to select data type from the list it will be as follows:
  • Date
  • Integer
  • String
  • Text, etc.
  • Selection of any drop down value is displayed on closing and opening the same dialog box.
    ¨ By default some value like "Select Value" or "_______" string is displayed. This is because
    User comes to know that value is to be selected for this field. Avoid displaying the first default value in the list.

    4. If the field is a list box then it has to be checked for following points:
  • Check the list box has values in it, it is not empty.
  • List box values should be alphabetically sorted and displayed. This might change as per requirement but as standard practices it should be alphabetically sorted.
  • Selection of any list box value should put a check before the value and should display the correct value(s) selected on closing and opening of the same dialog box.
  • If the list box supports multiple selection then check whether multiple values can be selected.

    5. If the field is a list of radio button then it has to be checked for following points:
  • Check whether as per requirements all the values are listed. For e.g. to select date format. Possible values displayed will be as follows:
    mm/dd/yyyy
    dd/mm/yyyy
    mm/dd/yy
    dd/mm/yy
    yyyy/mm/dd etc.
    ¨ Same selected value should be displayed on closing and opening of the same dialog box.

    6. Data Controls are to be tested as part of functionality testing.