Test Cases for Date field or Calendar

Hello friends! in this post, we will see some positive and negative test scenarios for the date field or Calendar widget.

Positive Test Cases for DateField

  1. Verify that on clicking the date field, a calendar widget should open.
  2. Verify that the default width of the calendar should be displayed as per the specification.
  3. Verify that the calendar widget’s dimensions should be responsive as per the device and screen size.
  4. Verify that the user can select a date in the calendar and after selecting the date the same gets displayed in the date field.
  5. Verify that by default the current month’s calendar should be displayed.
  6. Verify that the user can move to previous and next month’s calendar by choosing the left and right icon over the calendar.
  7. Verify that the user can check the calendar of a particular month of any year.
  8. Verify that the user can enter a date manually on the date following the date format.
  9. Verify the date format supported by the calendar e.g. – dd/mm/yy, mm/dd/yy etc.
  10. Verify that the user can also edit a date that is already set in the calendar.
  11. Verify that values other than numerics should not be allowed in the date field (apart from the characters used in the date format like ‘/’ or ‘-‘.
  12. Verify that invalid dates are not allowed in the date field (like date value exceeding 31, month value exceeding 12, etc).
  13. Verify the oldest possible date that can be set on the calendar.
  14. Verify the last possible date that can be set on the calendar.

Negative Test Cases for DateField

  1. Verify the state of the calendar widget on entering special characters, either the special characters should not be allowed and in the case allowed, they should get discarded while setting a date.
  2. Verify the state of the calendar widget on entering foreign language characters on the editable date field.
  3. Check the UI of the calendar widget on extremely small and extremely large screen sizes.

Test Case Examples

Login PageRegistration PageE-commerce AppGoogle Search
GMailYoutubeFacebookATM Machine
ChairCoffee MachineDateFieldDoor
CalculatorFanFlight ReservationCar
Hospital ManagementKeyboardKindleLift
Mobile PhoneMouseMicrowave OvenNotepad
Online ExaminationPenPencilRemote Control
StaplerTableTriangleTV
Wrist WatchWater BottleWhatsappWhite Board
Bike

3 thoughts on “Test Cases for Date field or Calendar”

Leave a Comment