Here are some of the sample test cases for Calendar control.
Check by entering the invalid date and valid month and valid year
Check by entering the valid date and valid month and invalid year
Check by entering the valid date and invalid month and valid year
Check by entering the valid date and invalid month and invalid year
Check by entering the invalid date and invalid month and invalid year
Check by entering the invalid date and valid month and invalid year
Check by entering the invalid blank space and valid month invalid
blank space
Check by entering the blank space for day and blank space for month and
blank space for year
Check whether the year entered is leap or ordinary year.
Check for ordinary year the max limit of number in day field in the month should be 31.
Check for leap year the max limit of number in day field in the month Feb should be 29.
Check alternate months for date in day field i.e. 30/31 should be accepted.
Check by entering the date below/beyond the range, i.e. 32 or 0 etc.
Check by entering the month below/beyond the range, i.e. 13 or 0…
Check by entering zero before the single digit number in date/month.
Check if auto populated calendar filed is open on click of box or on calendar icon
Check whether we should be able to select the desired day on the calendar.
Check after we click on to the selected date should come in to the box and calendar
Check if the calendar field is editable even if user can select date form calendar populated
Check editable calendar can take date format specified and not any other value
Check whether calendar control is opening in all the browsers
Test cases for Date Picker box
Check the calendar component is active when the date boxes are clicked.
Check if the calendar component loads properly after click on any date box.
Check if the calendar control is by default shows the date, month, year as per the system date.
Check if the calendar control is as per dd/mm/yy or mm/dd/yy format.
Check if the calendar component allows 10 years forward and backward to select the dates.
Check if the calendar component allows to scroll month field forward and backward.
Check if the today’s date is highlighted or not for default selection of the date box.
Check if the prev and next links are navigable in the date picker control.
Click on the date field select the date and verify if the correct date is shown in the box.
Click on the date field select the date and verify if the date shown is in mm/dd/yy format.
Click on the date field and check if the right month and year for date picker is shown.
Test Cases for Editable Date field
Check if the form accepts the valid month, date, year in mm/dd/yy format.
Check if the form accepts the month, year, date in dd/mm/yy format.
Check if the wrong month, year and date format is accepted. in yy/dd/mm
Check if the field accepts the input in more than 2 digits.
Check if the field accepts the input as blank.
Check if the field accepts any other symbol than backward or forward slash.
Check if the field accepts special character instead of the dates.
Check if the field accepts invalid order of the date.
Check if the field accepts hypen instead of backward or forward slash.
Check if the field accepts more than 4 digits for the year.
Check if the field accepts zero in all fields of the box.
Check if the field accepts blank field for one of the part of the date format.
Check the format of the date accepted and verify if it is according to the specification.
Check if the field accepts alphabets in the date format.
Check if the date as 32 is accepted or not.
Check if the month field accepts 13 or higher number or flags errors.
Check if the year is accepted in 3 digits or 2 digits.
Check if the year field accepts year entered 10 years backward or forward.
Check if the February 30 or 31 is accepted in the date format.
Check if the decimal point is accepted instead of hyphen or slashes (- or /).
Check if the blank spaces are accepted in the date format fields.
Check the blank space in the random sequence in the correct date format and see if the input is accepted.
Input Date: 1. Verify that leap years are validated correctly & do not cause errors/miscalculations 2. Verify that month code 00 and 13 are validated correctly & do not cause errors/miscalculations 3. Verify that month values 00 and 13 are reported as errors 4. Verify that day values 00 and 32 are validated correctly & do not cause errors/miscalculations 5. Verify that Feb. 28, 29, 30 are validated correctly & do not cause errors/ miscalculations 6. Verify that Feb. 30 is reported as an error 7. Verify that century change is validated correctly & does not cause errors/miscalculations 8. Verify that out of cycle dates are validated correctly & do not cause errors/miscalculations