Friday 28 December 2012

Testcases for date field validation


It has calender provided beside textbox (we need to select date from text box)
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 should not be less than other dates.
17.We should also try for characters n special characters if the text box is editable.
18.We should specifically try dates like 30-02-2004(dd-mm-yyyy).
19.If we click on the text-box 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 disappeared from there.
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.
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 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
(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.
(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.

No comments:

Salesforce AI Associate Certification - 3

What is semantic retrieval in the context of LLMs?   Searching for relevant information in other data sources What additional protection do...