write the test cases for date month and year field by using
testing techniques

Answers were Sorted based on User's Feedback



write the test cases for date month and year field by using testing techniques..

Answer / rituparna

Requirement : Only numbers are accepted in this forma.

1.It should be in the dd/mm/yyyy format or mm/dd/yyyy
format.
2.It shoudl not accept any special characters other than -
& /.
3.Date fields should not accept any alphabets,special
characters,space,decimals or their combination.
4.Same applied for month field and year field.
5."32" should not be accepted in Date field.
6."13" should not be accepted in Month field.
7.In case of Leap year February should show 29 days.
8.Date & month should accept only two characters.
9.Year should accept only four characters.

Is This Answer Correct ?    161 Yes 15 No

write the test cases for date month and year field by using testing techniques..

Answer / sri hariprasad.d

test cases for the date month and year?
1)check whether the date frmat is in dd-mm-yy (or)yy-mm-dd
2)check the date&month length should not exceed 2 digits.
3)check the year field lenth will not exceed 4 digit.
4)check the three field(dd,mm,yy) are seperated with
separters or not.
5)check the date field shuld be below in 31st only.
6)check the month field should below equal to 12 only.
7)if leap year it should accept feb 29 for last day

Is This Answer Correct ?    19 Yes 3 No

write the test cases for date month and year field by using testing techniques..

Answer / ajay

1. Use date picker to avoid more validations
2. Put text box of picker as read-only so we can avoid test
cases like "Date fields should not accept any
alphabets,special characters,space,decimals or their
combination."

Is This Answer Correct ?    16 Yes 9 No

write the test cases for date month and year field by using testing techniques..

Answer / rashmi garg

few more test cases are also possible:
1. No field should be blank or zero value
2. Maximum value of date field can be 28 or 29 (for feb
depending on leap year) and 30 or 31 (for all other months
depending upon month number)

Is This Answer Correct ?    15 Yes 10 No

write the test cases for date month and year field by using testing techniques..

Answer / sudeepthz

I don't agree with Sharmila bcz what she mentioned is that
should not be in position to enter date (LESS) I think it
should be greater. Thought its wrong, for Ex the DOB field
for the Election ID card and there are so many people who
are above 100 years of age. We should be stick to the
Requirement document and the type of the application we are
testing.

Is This Answer Correct ?    10 Yes 5 No

write the test cases for date month and year field by using testing techniques..

Answer / venkat

I agree with Rituparna.
Along with that before checking the dates, first you have
to check year. It should be 4 digits and it should not
exceed 9999.
After that you should check the month which should accept
Jan or 01 to Dec or 12. It should not accept 00 or 13.

Basing on the month the no.of days will vary. So check the
month and accept the no.of days(i.e 30 or 31) in the days
field.
If it is Feb, then we have to concentrate first on year and
then on no.of days.



Venkat.

Is This Answer Correct ?    9 Yes 5 No

write the test cases for date month and year field by using testing techniques..

Answer / pran

yeah what they mentioned above is correct and another one is
it shouldn't accept the future date.

Is This Answer Correct ?    18 Yes 16 No

write the test cases for date month and year field by using testing techniques..

Answer / priyanka agrawal

First,We have to define the date format i.e. dd/mm/yyyy or
mm/dd/yyyy
Then accordingly we will verify.
mm field should not accept value greater than 12.
dd field should not accept value greater than 30/31 or
28/29(feb).
Year field should not accept value more/less than 4 digits.

Is This Answer Correct ?    2 Yes 1 No

write the test cases for date month and year field by using testing techniques..

Answer / mahesh

negative cases are missing
some times we enter dob manually also
1123/21/22
yyyy/mm/dd

Is This Answer Correct ?    3 Yes 2 No

write the test cases for date month and year field by using testing techniques..

Answer / anand

Hi Sharmila

what u said is the test case for how many years a human
being can live?



if date of birth is considerd as
date filed, then one should not be in a position to enter
date less than 100 years as the life span of man does not
cross 100 years in this generation.

But According to the above test case, it indicates Th e
minimum age of human being is 100 years.

Is This Answer Correct ?    9 Yes 9 No

Post New Answer

More Test Cases Interview Questions

What is SCENARIO TESTING

1 Answers  


what will be testcases for job portal such as naukri.com , monster.com (as existing user)

2 Answers   Unilog,


If I give u refill which cost is 5000 & I ll give u refill then how u find that refill cost is right or wrong? & that refill is new in market.

0 Answers   CybAge,


How to test Webservices and how can we write test cases for that

0 Answers  


Write test cases on for windows media player?

1 Answers   CGI, COG, QMCPL,






Anyone can please inform me about how to write test cases for any mathematical calculations. Say for example, we have a formula in a given scenario for calculating the interest. The given formula for interest is: (principle * 5)/(12 * 100) In this case, the principle amount may vary. Would like to know how many test cases can be written for this scenario and how can we decide over this. I will be very thankful for the answer....

3 Answers  


What is the toughest moment you faced in your testing carrier in which everyone praised you?

0 Answers  


how to write system test cases for a pen

3 Answers   IBM,


explain with examples- transaction testing, syntax testing, domain testing, logic testing, and state testing.

1 Answers  


what are those parameters or matrixes for tesing a software user interface?

2 Answers  


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.

0 Answers  


Explain the exactly meaning of test case?

0 Answers  


Categories