11 October 2012

Test Cases for Date Field

Test Cases For Date Field:

They may be many cases if the text box is editable or not purpose of the date field used etc .

Test Cases if the Date field is not text box: 

  • Ensure that calendar window is displayed and active when the calendar is invoked by pressing the calendar icon. (Once we faced an issue the calendar window is in minimized state when we invoked the calendar.)
  • Ensure that calendar date is defaulted to system date
  • Ensure that when a date is selected in the calendar (double click or some other method) the selected date is displayed in the text box and calender should be disappered from there.
  • Check for the format as per requirement i.e.mm-dd-yy
  • Check for the list of years by click on down arrow displayed years of selected year before and after 10 years
  • Check for the list of 12 months by click on month down arrow
  • Check for the clear of date by click on clear text link in the calender what before selected
  • Check for the month changed to previous month by click on Prev text link
  • check for the month changed to after months by click on next text link
  • check for the today date highlighted or not by click on today text link

Test Cases if the Date field is editable  text box: 

 

  •  enter the valid date ,month, year 
  •  enter the invalid blank space and valid month invalid blanck space 
  •  enter the invalid blank space and invalid blank space and invalid blank space 
  •  enter the zeros in date and invalid blank space and zeros in year.
  •  enter alphabetic,alphanumeric data in the field.
  •  enter special characters.
  •  enter decimal point. 
  •  Enter valid date,invalid blank space in month,invalid blank space in year
  •  Enter invalid date,valid month and invalid blank space in year. 
  •  Enter invalid date,invalid blank space in month and valid year.
  •  enter the invalid date and valid month and valid year 
  • enter the valid date and valid month and invalid year
  •  enter the valid date and invalid month and valid year
  •  enter the valid date and invalid month and invalid year
  •  enter the invalid date and invalid month and invalid year 
  • enter the invalid date and valid month and invalid year
  •  Leave blank spaces for all the fields. 
  • Check whether the year entered is leap or ordinary year.
  •  For ordinary year the max limit of number in day field in the month Feb should be 31. 
  • For leap year the max limit of number in day field in the month Feb should be 29.
  •  With respect to the corresponding alternate months corresponding numbers in day field i.e 30/31 should be accepted. 
  • Enter the date below/beyond the range, i.e 32 or 0 etc.
  •  Enter the month below/beyond the range,i.e 13 or 0...
  •  Enter zero before the single digit number in date/month.
  •  Check without entering zero before the single digit.
  •  Enter valid date,valid month and only last two digits of year.
  •  Enter any alphabets in these fields.
  •  Enter special characters and check. 
  • Enter zeroes in all the fields. 
  • Check whether the control passes on to the month field after entering date. 
  • Also check whether the control passes to year field after entering date and month. 
  • Check the format of date,month and year.
  • Check whether it is accepting date in date field,month in month field and year in corresponding field.
    should not accept 000000 as a date.




No comments:

Post a Comment