So the test cases depend on the type of the date picker field that is available for you to test. As the modern date pickers have built-in validation features, in turn, it makes less room for bugs.
|Test Scenario Overview|
|Post On:||Test Case For Date Field|
|Post Type:||Test Case Template|
|Applicable For:||Freshers & Experience|
There are different types of Date fields, as you can see in the below screenshot. Some date fields have editable fields, and some have date selection control. If the date field is created using Jquery UI, then you can find the typical control field. You can check the below screenshot for the editable date field, and another is a date control select-able field.
Date Field 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 a click on any date box.
- Check if the calendar control is by default shows the date, month, a 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 scrolling month field forward and backward.
- Check if today’s date is highlighted or not for the 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 is shown is in mm/dd/yy format.
- Click on the date field and check if the right month and year for date picker are shown.
|Related Test Cases|
|☑️ Currency Field Test Cases||☑️ Database Testing Test Cases|
|☑️ Dialog Box Test Cases||☑️ Digital Camera Test Cases|
Date Field Test Cases for an Editable Date field
You can see the screenshot below to see how the editable date field box works.
- 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 the invalid order of the date.
- Check if the field accepts hyphen instead of the 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 a blank field for one of the parts 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 the alphabets in the date format.
- Check if the date as 32 is accepted or not.
- Check if the month field accepts 13 or higher numbers 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.
|Tasks To Improve Your Knowledge|
|☑️ Test cases for calculator||☑️ Test cases for gender field|
|☑️ Test scenarios for checkbox||☑️ Test cases for address field|
|☑️ Test cases for name field||☑️ Negative test cases for fan|
|☑️ Negative test cases for search functionality||☑️ Negative test cases for mobile application|
** Let We Inform you that if you want to improve your knowledge then you can take the above as a task and work on this. You may found that some of the tasks we have completed you can refer that. After Completion if you want to share with us that then you can write to us at firstname.lastname@example.org.
In return for that maybe we plan something more surprising for your career.
These are some of the test cases for date field verification. You can come up with more test cases depending on the requirement and type of the date format field available for you to test. I hope the test cases mentioned here help you.
If you have any more test cases or have any other suggestions regarding the test case posts, please feel free to let me know. If you wish to contribute any testing related post, then feel free to let me know in the comments, and I’ll send you an email. Please do share the post on Facebook, Twitter, or any other social media. I’d appreciate your comments.