How Should I write test case for From Date To To date fields?
Suppose i want to retrive data from a month. That is form 01/12/2007 to 31/12/2007. How should i write test case for this? This question was asked me in my cybage interview?
RE: How Should I write test case for From Date To To date fields?
1.) sholud be in the correct format. (specified mm/dd/yyyy or dd/mm/yyyy) 2.) should not accept characters 3.) when date entered < min date (should display validation). 4.) when date entered > max date (should display validation). 5.) when enterd wrong date (ex: 32/mm/yyyy, dd/13/yyyy, 30 or 29/02/yyyy for non leap years, 30 or 31/mm/yyyy for leap years) etc.
These are the validations i know. can suggest me remaining
RE: How Should I write test case for From Date To To date fields?
01/12/2007 to 31/12/2007
I would like to correct arsraju as follows: The question has been asked for date 01/12/2007 to 31/12/2007 This date is with format as dd/mm/yyyy & you have specified it as mm/dd/yyyy, which is incorrect according to me.
1) Enter in date in required format as dd/mm/yyyy 2) Should not accept characters 3) Validation required for not accepting as negative numbers, decimals & fractions. 4) Validation required for day filed in Date <01 and Date>31 5) Validation required for month filed with checks for < 12 or > 12 5) Validation required for year filed with checks for <2007 or > 2007 6) The delimeter specification should be as expected, here the default is a slash sign, i.e / it should not take any other special characters as !, @ # ...etc. 7) Values for fields mm, dd , yyyy should not be blank 8) For year yyyy, entered digit should be 4 & not 2 as yy
RE: How Should I write test case for From Date To To date fields?
Hello friend,
I think my answer will help u.Your screen have calendar to select values for From Date and To Date data fields.
Write test case as
Test Case Description:
1. Click on calendar to select valu for "From Date" and "To Date" fields 2. Select From Date" value as 12/03/2007 and "To Date" value as 14/04/2007 and click on "Search" button
Expected Result: 1. System should display calendar with System Date as default 2. System should display available data within selected period
Note: Here i assume that ur screen has Calendar to select date values and Search button to select data within selected period.If u have other options please replace them.
RE: How Should I write test case for From Date To To date fields?
Hi Team, All of you have come up with very good TC Design. Some more checks i want to add here
1. Check when "from date" is given more than "to date", it should display proper message. 2. When same date is give, it should display proper info. 3. WHen 29 th feb is check it should show the info. 4 when a future date is given in both the fields from and to. it should display proper message. 5. check large no. of yrs differnce in from and to date system CPU utilisation should not be 100%.
In all the scenario it is better to provide calenderr view to the custmor. that will be more user frieldly to the customer.
other all the validation for the date month and year is required with both valid and invalid digits, characters and wild characters.