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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i am preparing for interviews in real time job what test cases we have to prepare please explain with example?

1893


Pls tell me test cases for pepper grinder

2903


consider a program module that inputs two (2) values, n and max, and computes the sum of the first n integers as long as this sum is less than max; otherwise an error should be reported. if n is negative, then it takes the absolute value. a) list the equivalence partitions, and b) list the boundary values.

1782


Explain the concept of semi-random test cases?

787


Please can any one tel how to write the test cases for these Requirements:- 1.The applications sends the periodic data 2.The applications sends the alarm data 3.The Application stores the Periodic data and alarm data if it is unable to send 4.the application having the configure through GPRS or SMS

1868






how to write test cases for smart meter for gas and electricty

2437


Explain the logic testing?

661


how to prepare a test case for online restaurant table reservation system. plz give an answer ASAP, email at suja_rvndrn@yahoo.co.in

5153


write a test case for telephone billing ?

3890


Write a test case on a durability of an electric bulb and test it that it will last for next 10 months.

2016


Requirement from Market “Alice is talking to Bob. Bob thinks that Alice should talk to Chris for more information. Currently, Bob will pass on the directory number of Chris to Alice; Alice/Bob will disconnect the call and then Alice will initiate a new call to Chris. What we need need, Bob should be able to transfer the call to Chris, without Alice making another call.” Implementation done by Unified CM Development Team When a basic call is connected, a new softkey “Transfer” will be displayed on the IP Phone. User (say, Bob) can press that and dial a target (say, Chris). Bob has two options (1) wait for Chris to answer and then tell Chris about call from Alice and then press “transfer” again to complete transfer (2) press “Transfer” immediately; when Chris answers he will be connected to Alice Please come up with test cases thinking from a user perspective, let’s say from a Bank (there could be users such as receptionists, accountants, managers etc.) – in what all scenarios transfer can happen, any negative scenarios (cases where we don’t get a positive response always). If you think you need an enhancement to the feature, please go ahead and suggest that as well.

3070


Explain the unit testing?

659


Test a file replication service that copies files from one net location to another

2049


1 Crystal Ball 1.1 Purpose This is a simple tool, for entertainment purposes only. 1.2 Scope Only for registered user. 1.3 User Interface Single page with graphic of crystal ball, and text box for typing question. User has to type her question in text box outside ball. Reports: - On ‘submit’, the system needs to access any one of the pre-stored responses at random and display in a graphical, visually appealing manner in the crystal ball. - Audio / graphical changes need to be built in, for added user experience enhancement, like music, sound effects, visual changes. Need to get details.

1642


Write the test case for a login page?

721