Italian Trulli

Test Cases For Date Picker and Date Range

Test Tribe
.
Sample Test Cases For Date Picker field 

Hello Folks, 

In this tutorial, we will learn how to write Date Picker Test Cases? We will also learn about positive test scenarios and Negative test scenarios.

What are The Test Cases For Date Picker Calendar?

Here !!! Important Sample Test cases for datepicker given...

  • Check that the date picker gets open when the user clicks on a date field.
  • Check that the user is able to select the date from the date picker.
  • Check that by default current date is selected or not when the date picker gets open.
  • Check whether the current date is highlighted by default or not.
  • Check whether the date picker gets closed or not when the user selects the date from the date picker.
  • Check whether the date picker gets closed or not when the user clicks outside of the date field.
  • Check that the user is able to change the date or not once selected from the date picker.
  • Check whether the selected date showing in the date field or not.
  • Check whether the date showing in a valid format or not when the user selects the date from the date picker.
  • Check that the user is able to swipe the previous month or year from the arrow(forward and Backward) option in the date picker (if allowed).
  • Check whether the date shows disabled or not (as per condition, if ).
  • Check that when the user tries to select the which are not in the boundary.
  • Verify that the user can change the date or not when date masking is applied on the field.


Test Cases for Date Range - From Date and To Date 

  • Verify that when the user enters the same date in from date and to date.
  • Verify that when the user enters to date greater than from date.
  • Verify that when the user enters from date less than to date.
  • Verify that when the user enters only from date.
  • Verify that when the user enters only to date.
  • Check that when the user clears both from the date and to date.
  • Check the alert message when the user enters to date greater than from date.
  • Check whether the alert message showing or not when the user enters any date. which is not as per requirement (future date, outside FY, etc. it depending on requirement ).


Date format Types- 

  • MM/DD/YY  - Month-Day-Year with leading zeros (03/17/2008)
  • DD/MM/YY  - Day-Month-Year with leading zeros (13/02/2008)
  • YY/MM/DD -  Year-Month-Day with leading zeros (2003/02/27)
  • Month D, Yr - Month name-Day-Year with no leading zeros (February 27, 2002)
  • M/D/YY- Month-Day-Year with no leading zeros (3/13/2002)
  • D/M/YY- Day-Month-Year with no leading zeros (17/2/2003)
  • YY/M/D -Year-Month-Day with no leading zeros (2003/2/13)
  • bM/bD/YY -Month-Day-Year with spaces instead of leading zeros( 2/13/2003)
  • bD/bM/YY-Day-Month-Year with spaces instead of leading zeros (13/ 2/2003)
  • YY/bM/bD-Year-Month-Day with spaces instead of leading zeros (2003/ 2/13)
  • MMDDYY-Month-Day-Year with no separators (02132003)
  • DDMMYY-Day-Month-Year with no separators (13022003)
  • YYMMDD-Year-Month-Day with no separators (20030213)
  • MonDDYY-Month abbreviation-Day-Year with leading zeros (Feb132003)
  • DDMonYY-Day-Month abbreviation-Year with leading zeros (13Feb2003)
  • YYMonDD-Year-Month abbreviation-Day with leading zeros (2003Feb13)
  • day/YY-Day of year (counting consecutively from January 1)-Year (48/2003)
  •  YY/day-Year-Day of Year (counting consecutively from January 1—often called the Julian date format) (2009/48)
  •  D Month, Yr -Day-Month name-Year (13 February, 2003)
  •  Yr, Month D -Year-Month name-Day (2003, February 13)
  • Mon-DD-YYYY -Month abbreviation, Day with leading zeros, Year (Feb 13, 2003)
  • DD-Mon-YYYY -Day with leading zeros, Month abbreviation, Year 13 Feb, 2003. 
  • YYYYY-Mon-DD -Year, Month abbreviation, Day with leading zeros (2003, Feb 13)
  •  This format defaults to a two-digit year, but can be overridden to have four digits.
  • Mon DD, YYYY-Month abbreviation, Day with leading zeros, Year (Feb 13, 2013)
  • DD Mon, YYYY-Day with leading zeros, Month abbreviation, Year(13 Feb, 2013)
  • YYYY, Mon DD -Year, Month abbreviation, Day with leading zeros(2013, Feb

Hope!!! The above Test cases for date picker are helpful for you...

Team, 
QA acharya

Share Your Knowledge With Us -
Mail your content - qaacharya.in@gmail.com

Test cases for date picker

Post a Comment

4 Comments