Test cases for date Field

Test Cases For Date Field

Test Cases For Date Field : Basically date field allows the user to enter the date into the field with a select date from the calendar or the manual input. In this article, we have tried to cover UI, Functional, and Negative test cases for Date field.

So, if any website has a date picker field then these test cases will be helpful to test the date field or get an idea about how to test the date field.

UI Test cases – Date Field

Sr.NoTestcase_IDTest Cases
1UI_01Verify that the date field button icon is properly displayed or not.
2UI_02Verify that the date format is as expected or not. Like mm/dd/yy, dd/mm/yy
3UI_03Verify that month should be properly displayed or not
4UI_04Verify that year should be displayed properly or not
5UI_05Verify that the next “>” button is properly displayed or not
6UI_06Verify that the previous “<” button is properly displayed or not
7UI_07Verify that days are properly displayed or not
8UI_08Verify that when the user hovers the mouse on days, dates should be highlighted.
9UI_09Verify that if the date field is displayed as a mandatory field then a red “*” mark should be displayed.
10UI_10Verify that if the date field is displayed as a mandatory field then the validation error message should be displayed for blank data
11UI_11Verify that date field placeholder text is properly displayed or not
12UI_12Verify all drop-down lists for the calendar field.

Test cases for Date Field

Functional Test cases – Date Field

Sr.NoTestcase_IDTest Cases
1Functional_01Verify that if the user clicks on the date field, the calendar pop-up window should be open.
2Functional_02Verify that default today’s date is highlighted or not
3Functional_03Verify that when the user select any date from the calendar, selected the date should be displayed in the ‘Date Input’ field
4Functional_04Verify that when the user clicks on the next “>” button then next month should be displayed.
5Functional_05Verify that when the user clicks on the previous “<” button then next month should be displayed.
6Functional_06Verify if clicks on month link text then month drop-down list is displayed or not
7Functional_07Verify if clicks on year link text then year drop-down list is displayed or not
8Functional_08Verify that the user is able to enter the date manually or not
9Functional_09Verify if the user enters the date manually, the date format should be followed properly.
10Functional_10Verify if the date field has validation for future dates then future dates should be displayed disabled.
11Functional_11Verify if the date field has validation for past dates then past dates should be displayed disabled.

Negative Test cases – Date Field

Sr.NoTestcase_IDTest Cases
1Negative_01Verify that the user is able to enter alpha characters into the date field calendar or not
2Negative_02Verify that the user is able to enter special characters into the date field calendar or not
Negative_03Verify that the user is allowed to enter invalid format dates or not
3Negative_04Verify that the user is able to enter more than 12 numbers for months into the date field calendar or not. e.g If date format : mm/dd/yy then 13/05/22
4Negative_05Verify whether the user is able to enter more than 31 numbers for dates into the date field calendar or not. e.g If date format : mm/dd/yy then 01/32/22

Conclusion :

So in this way, we have covered test cases for date field and if you are looking for more examples of test cases then please visit the below links.

Thank you, Readers….!!!!

1.Test Cases For Address Field

2.Test Cases for Date of Birth Field

3.Test Cases for Bank Account Number Field

Scroll to Top