how to write the test case for time and date
like TIME : 09:34:32AM
DATE : 12 MAY 1987
Answers were Sorted based on User's Feedback
Answer / smitha
Actually all the fields for TIME should be combo boxes.Check
combo boxes visually i.e HH should be from 1 to 12 and MM,
SS should be from 1 to 60.
If the Time field is editable then do the following procedure.
To check TIME(HH:MM:SS AM/PM)
1.HH(Hours) should be between 1 to 12, so try giving numbers
below 1 and above 12. It should not accept. Also try to
enter negative numbers(or some junk values) and check.
2. For MM ans SS enter numbers below 1 and above 60 and
check the result.
3.AM/PM will be in a combo box.There should not be any other
field other than AM, PM.Also note that AM/PM field should
not be editable.
Similarly for the DATE(DD/MMM/YYYY) also.
If the fields in Date are combo boxes, then check visually
i.e DD should be from 1 to 31,MMM should be JAN,FEB...DEC
and YYYY can be any valid range according to the
Sometime DATE is provided by Calender pop up.Checking that
is very simple.We have to check for month increment button
and year increment button.
|Is This Answer Correct ?||14 Yes||4 No|
Answer / thatiparthi brahma reddy
Date & Time which format
date format like DD/MM/YYYY
time format like HH:MM:SS AM/PM
after decided then we can write test cases
|Is This Answer Correct ?||10 Yes||2 No|
Answer / krishna
Here you can see the time & Date format based on that u can
write test cases
Time shld b displayed in the format of HH:MM:SS AM/PM
Date shld b displayed in the format of DD MM YYYY
|Is This Answer Correct ?||11 Yes||4 No|
Answer / rajesh kumar
Smitha mentiond For MM ans SS enter numbers below 1 and
The range between 0 to 59
|Is This Answer Correct ?||8 Yes||2 No|
Answer / sathish kumar tech mahindra
09:34:32am 09 define the hours tat s bellow 12 only not
allow above 12 hours this format only for 12 hours not for
34 is min MM is only 00-59 not allow above 50 like 60:
32 is a seconds tat s also in b/w 00-59 only not allowed
12 is a date,and than check the month format tat s in
numeric format r alphabetic format in the combo box r enter
the character both numeric and alphabetic.that is numeric
that allow only 1 to12 not allow bellow 1 and above 12 and
all so negative values in numeric
year is in combo box tat have some past years,current
we can easy way to select year.
some year format only allow only two character like 01:06:88
this format only support for few application not support for
all application like history application.
|Is This Answer Correct ?||4 Yes||1 No|
Answer / hariraagav
For Time or Date we check for the format is correct. For
Time it should be in HH.MM.SS and AM or PM. We can also
check when we change the time the AM or PM should change
For Date we check for the date picker is poping out or not
We can also check incremental and decremental button if
|Is This Answer Correct ?||5 Yes||3 No|
Answer / phu
TIME : 09:34:32AM: hh:mm:ss AM/PM
DATE : 12 MAY 1987: dd MMM yyyy
First, identify boundary value of TIME and DATE:
hh: 01 - 12
mm: 01 - 59
ss: 01 - 59
dd: 01 - 31
MMM: JAN - DEC
yyyy: 0001 - 9999
Use boundary technique to write test case:
1. hh: 00, 01, 06, 12, 13
2. mm: 00, 01, 30, 59, 60
2. ss: 00, 01, 30, 59, 60
4. dd: 00, 01, 15, 29, 30, 31
5. MMM: JAN, DEC
6. yyyy: 0000, 0001, 2013, 9999
Other DATE rules:
Leap year (integer multiple of 4): FEB has 29 days, other year: FEB has 28 days
1. 29 FEB 2004
2. 30 FEB 2004
3. 28 FEB 2003
4. 29 FEB 2003
|Is This Answer Correct ?||2 Yes||0 No|
Answer / ashutosh
Date format like DD/MMM/YYYY
Time format like HH:MM:SS AM/PM
|Is This Answer Correct ?||3 Yes||3 No|
Smoke Test Checklist for Gmail please someone help!
write a test case on web login and bank application and client server
Can any tell to create test data for SUM (calculation), Scenario is 0 to 9 digits are available as we see in the calculator, I want to certify that the sum of the two numbers are working fine by providing test data.
write test cases for this senario if a job fails it should get restarted again this should happen for three times if it fails again then it should quit?
What are the possible test cases for a palindrome.It must be starting with alphabet and its length is 100 .It should accept alphanumerics only.It should take only 100 numerics to the textbox
In a log in page what will be test procedure,test scenario,test discription & test steps?
regression testing falls under white box or black box testing?
write test cases for flipkart.
How many test cases u will execute per day?
I need GUI test case for home page?
How do you differentiate the roles of Quality Assurance Manager and Project
What is quick test professional and what test environment it supports?