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



how to write the test case for time and date like TIME : 09:34:32AM DATE : 12 MAY 1987..

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
Requirements document.

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 ?    17 Yes 5 No

how to write the test case for time and date like TIME : 09:34:32AM DATE : 12 MAY 1987..

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 ?    12 Yes 3 No

how to write the test case for time and date like TIME : 09:34:32AM DATE : 12 MAY 1987..

Answer / krishna

Dear friend

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

BYeeeeeeeeeeeee

J.M.Krishnan
muthukrishnanj@dreamssoft.co.in

Is This Answer Correct ?    12 Yes 4 No

how to write the test case for time and date like TIME : 09:34:32AM DATE : 12 MAY 1987..

Answer / rajesh kumar

Smitha mentiond For MM ans SS enter numbers below 1 and
above 60.

The range between 0 to 59

Is This Answer Correct ?    9 Yes 2 No

how to write the test case for time and date like TIME : 09:34:32AM DATE : 12 MAY 1987..

Answer / sathish kumar tech mahindra

TIME:
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
railway time.

MONTH:
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
above 60.

date :
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:
year is in combo box tat have some past years,current
year,future year.
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 ?    6 Yes 1 No

how to write the test case for time and date like TIME : 09:34:32AM DATE : 12 MAY 1987..

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 ?    4 Yes 0 No

how to write the test case for time and date like TIME : 09:34:32AM DATE : 12 MAY 1987..

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
automatically.
For Date we check for the date picker is poping out or not
We can also check incremental and decremental button if
provided

Is This Answer Correct ?    6 Yes 3 No

how to write the test case for time and date like TIME : 09:34:32AM DATE : 12 MAY 1987..

Answer / ashutosh

Date format like DD/MMM/YYYY
Time format like HH:MM:SS AM/PM

Is This Answer Correct ?    4 Yes 3 No

Post New Answer

More Test Cases Interview Questions

As we are using QTP 9.1 version, is there is any method to connect the remote desk top?

1 Answers  


how to prepare unit test scripts for accrued interest calculation.

1 Answers  


Hai, Could anybody please let me know, how to calculate the number of test cases required to test a program. Please provide me the answer for the following question: “What type of ticket do you require, single or return?”IF the customer wants ‘return’Ask: “What rate, Standard or Cheap-day?”IF the customer replies ‘Cheap-day’Say: “That will be $11:20”ELSESay: “That will be $19:50”ENDIFELSESay: “That will be $9:75”ENDIFNow decide the minimum number of tests that are needed to ensure that allthe questions have been asked, all combinations have occurred and allreplies given. a) 3 b) 4 c) 5 d) 6

1 Answers  


need for documenting test cases??? advantages and disadvantages of documenting test cases???

2 Answers  


how we canwrite a test case on computer?

5 Answers   IBM, Satyam,






If I have written test cases for any application:there are 70-80 test cases and steps for writing test cases are common in some TCases.then May I have to write the repeated steps or May I write Repeat the steps of TC id so and so

3 Answers  


how can write testcase for admin role? can u tel me detail

1 Answers  


What is the logic testing?

0 Answers  


Create Test Cases based on Software Testing Principles Write the Test Cases to validate Command Line utility - ‘MAX’. The utility displays the maximum of the 2 specified Integers. Please note down any assumptions that you make. e.g. MAX 2 3

1 Answers   SAP Labs, Satyam,


Could someone answer the following testing Questions? 1)Give 5 reasons why a build can be released with bug 2)Write a bug report for a word processor program which crashes when the contents of 89th column is been sorted in assending order. 3)write test 10 cases for program which has a table with 2 fields of NAME od char type and CLASS of INT type.NAME fields is truncated after 26 charaters and CLASS takes value between 1 to 9 both included. There are 3 possible opearations program can perform a)When a new student joins the class the program adds a new field b)When student leaves the class the field get deleted c)when student gets promoted then program incremts the class by 1 Write 5 test cases for the scenario. 4)write 10 test cases for a program that takes date in dd/mm/yyyy format and prints it out with a increment of 1. for dates (dd) can be given in the range 1<=dd>=30 for months (mm) can be given in the range 1<=mm>=12 for years(yyyy) can be given in the range 1600<=yyyy>=9999 5)Give 5 bugs that could cause a program to crash when it printed the 999999 th pages 1000001th line.

6 Answers   Adobe, Android,


Write the use cases for following 1. Comment section of Facebook 2. Instagram status Implementation

0 Answers  


pliz anyone give suggest me the test cases for shorting numbers in asc/desc order.

4 Answers   IBM,


Categories