Write a test case for Date field and time field.

Showing Answers 1 - 4 of 4 Answers

shraddha

  • Aug 21st, 2006
 

For date

 date should be vary between 1 to 31

 Month should be vary between 1 to 12

 year should be greater than 1900

 Leap year cheacking

For Time

 Formate 12 hours or 24 hours

 Lenght = 8

 if formate is 12 hours

  Hours vary between >=1 to =<12

  min vary between >=0 to =<60

  sec vary between >=0 to =<60 

  if formate AM

     Display value hrs:min: sec AM

  if formate PM

  Display value hrs:min:sec PM

 If Formate is 24 hours

Hours vary between >=1 to =<24

  min vary between >=0 to =<60

  sec vary between >=0 to =<60 

  Was this answer useful?  Yes

Test Case for Birth date field


Month :
1.Check whether we are clicking the Month Combo Box it displays all the months of a year.
2.Verify it be validated when it fails to display all the months of a year
3.Check whether if you select any month it is shown
4.Check it in not display then it is a null it is not accepted

Date:
1.Check it displays all the date of the month
2.Check it displays the date based upon the month it is selected

Year:
1.Check whether it cannot accept null value
2.Check whether it cannot be the current system date
3.Check whether it cannot be greater then current system date
4.Check whether it can accept only numeric value
5.Check whether it accept only 4 characters
6.Verify it cannot accept more than 4 characters
7.Check whether it cannot be less than 4 characters

Time

Hour

1. To check whether the time is displaying in 24 hour or 12 hour
2. To check whether the if it is 24 hour then it should not display more than 24
3. To check whether if it is 12 hour then it should not show more than 12
4. To check hour should change based only on minutes
5.To check whether the hour displays first after minutes to show

Minutes

1.To check it should not show more than 59
2.To check it must change to 00 after 59
3. To check the minute is change based on seconds
4. To check when minute is changed more than 59 it must chenge the hour also
5. To check th minute is showing between the hours and seconds

seconds

1.To check it should not show more than 59
2.To check it must change to 00 after 59
3. To check when second is changed more than 59 it must chenge the minutes also
4. To check seconds must display after hours and minutes

Am/Pm

1.To check if the time is 24 hour then there is no need of am and pm
2. To check if it is 12 hour then it must show am and pm
3. To check every time hour is changing to 0 after 12 then am shoul dbe changed to pm and pm should be changed to am

  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