GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Tech FAQs  >  Testing
Go To First  |  Previous Question  |  Next Question 
 Testing  |  Question 553 of 635    Print  
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?



  
Total Answers and Comments: 4 Last Update: January 23, 2008     Asked by: sachinshinde_99 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
December 14, 2007 04:54:10   #1  
arsraju Member Since: December 2007   Contribution: 2    

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

 
Is this answer useful? Yes | No
January 09, 2008 06:33:55   #2  
shruti8 Member Since: January 2008   Contribution: 2    

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


 
Is this answer useful? Yes | No
January 12, 2008 05:43:41   #3  
Prasoona Reddy Member Since: January 2008   Contribution: 1    

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.

 
Is this answer useful? Yes | No
January 23, 2008 10:17:25   #4  
whatifgame Member Since: September 2007   Contribution: 6    

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.


Thanks & Regards,
Whatifgame


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape