What are Testcases for date field validationIt has calender provided beside textbox (we need to select date from text box)

Showing Answers 1 - 10 of 10 Answers

 (Third party Calendar controls/date pickers will have a text box attached with a button/icon beside it) You can consider the following test cases for a calendar control.

 They may be many cases ,if the text box is editable or not, purpose of the date field used etc?.

 

1. Ensure that calendar window is displayed and active, when the calendar is invoked by pressing the calendar icon.  (Once we faced an issue, the calendar window is in minimized state when we invoked the calendar.)

 

2. Ensure that calendar date is defaulted to system date.

 

3. Ensure that when a date is selected in the calendar (double click, or some other method), the selected date is displayed in the text box.

Bikram

  • Jul 13th, 2006
 

Hi all, testcases for datepicker are as-

1) Check for the format as per requirement i.e. mm-dd-yy

2) Check for day, month and year( day should not be > 31, similarily month should be<=12, and year as per requirement)

3) Also try characters and spcl. characters on date if textbox is editable.

4) Try dates 30-02-2004 i.e validation for month of feb.

5) Check as per requirement if all parts are separated with / or - or . sign

6) 1980-, -1980, 20/10/2006 etc. if given in requirement, this is usually given in search 1980- means search for records after 1980 and so on

Bikram Cheema

Manjushree

  • Sep 25th, 2006
 

1.Should accept dates in any format as decided ie ddmmyy or mmddyy or yyyy. Client machine has some format set in regional settings.2.If the date field is system driven then the format specified in the system should be accepted.3.Need labels near date field for date format.4.Cannot be left blank generally5.Cannot accept characters in the date function6.Should take 30/31 days according to the month of the year7.should accept 29 days of february in the leap year.8.should not accept 000000 as a date.9.should not accept more than 12 as the month value.10.should accept 01 or 1 as the month value. The same holds true for day value.11.should not accept only XX if the format specified is yyyy.12.start date < end date13.Separater can be either '-' or '/'14.Validation of dates should be done by the dates on the server and not on the client15.Interpretation of xx/xx/50 ER:Any year greater than 45 should be read as 19xx and any year below than xx45 should be read as 20xx

umesh7a

  • Oct 13th, 2006
 

Hi all

These should be the test cases for the selection of date in the text box

1. click on to the calender icon in front of the date field. calender should be opened.

2.in the calender current date should be selected

3.we should be able to select the desired date on to the calender

4.after click on to the selected date date should be come in to the box and calender should be disappered from there.

Archana

  • Oct 5th, 2007
 

1.Should accept dates in any format as decided ie dd/mm/yy or mm/dd/yy or yyyy(ex:1983). Client machine has some format   set in regional settings.
2.If the date field is system driven then the format specified in the system should be accepted.
3.Need labels near date field for date format.
4.Cannot be left blank generally.
5.Cannot accept characters in the date function.
6.Should take 30/31 days according to the month of the year.
7.should accept 29 days of february in the leap year.
8.should not accept 000000 as a date.
9.should not accept more than 12 as the month value.
10.should accept 01 or 1 as the month value. The same holds true for day value.
11.should not accept only XX if the format specified is yyyy.
12.start date < end date
13.Separater can be either '-' or '/'
14.Validation of dates should be done by the dates on the server and not on the client.
15.Either any one of the date/month/year should be 00.
16.The present date shouldnot be less than other dates.
17.We should also try for characters n special characters if the textbox is editable.
18.We should specifically try dates like 30-02-2004(dd-mm-yyyy).
19.If we click on the textbox,the calender should open.
20 We should be able to select the desired day on the calender.
21.After we click on to the selected date,date should come in to the box and calender should be disappered from there.

Test Cases :

1. To check whether the cursor moves to the date field text box itself the calender should display
2.to check when the user selects the date in calender it must display the same date in date fields
3.To check whether the user cannot select more than the system date

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions