Suhail_Ahmed
Newbie
Reged: 08/14/07
Posts: 1
|
|
Hi Friends,
I have been asked to write a Test Case for the following Registration Form.
Name : 1-30 char Date : DD-MM-YYYY
Here Leap Year and Months of 30 or 31 days should also be considered.
Address : Multi Line Address Qualification : [ choose from a List ] M.B.A,M.C.A,B.Sc, etc
Please Help!
Thanks, Suhail Ahmed Email ; Please put your email address in your profile and not in posts. Thank you!
Edited by JakeBrake (08/16/07 11:27 AM)
|
Joe Strazzere
Moderator
Reged: 05/15/00
Posts: 12344
Loc: Massachusetts, USA
|
|
Suhail Ahmed ,
Ok, let's start with the Name field.
What would you imagine would be good tests for that?
-------------------- - Joe
Visit AllThingsQuality.com to learn more about quality, testing, and QA!
I speak only for me. I do not speak for my employer, nor for anyone else.
|
Tarun Lalwani
Veteran
Reged: 07/21/05
Posts: 15329
Loc: Milwaukee, Wisconsin
|
|
Joe, On a serious note How about - <Blank> - Lenght 1 - Length 15 - Length 30 - Length 31 - Length (Random between 1 and 30).
-------------------- Regards,
Tarun
** First ever technical novel - And I thought I knew QTP! **
** Download QTP Unplugged 2nd Edition eBook for FREE **
KnowledgeInbox RSS
|
ElLobo
Junior Member
Reged: 08/20/02
Posts: 405
|
|
Tarun Lalwani, I'm not sure why do you need to check so many combinations? If you can write all 30 characters you definitely can write less.
P.S. Somehow I think that we are talking about paper registration form
|
supratim
Junior Member
Reged: 06/28/06
Posts: 204
Loc: India
|
|
I think I would test with the following data: 1. <Blank> 2. Length 1 3. Length 30 4. Length 31 5. Test with Integers (+ve & -ve) 6. Test with special characters like <>. @, #, ^,etc etc... 7. If the input of this field would be rendered as html and displayed in some other page then would go for XSS injection. 8. Definitly try SQL Injection.
If I am leaving out on any please do notify...
-------------------- Regards,
Supratim.
"Look at all the sentences which seem true and question them."
http://supratimmodak.blogspot.com/
|
Fouzia
Junior Member
Reged: 07/12/06
Posts: 17
Loc: Islamabad
|
|
Suhail Ahmed , TRY TO SAVE <SPACE> CHAR... 1.Verify that it automatically trim starting char. 2.With max limit of 30 char, see all the pages where name is used, some time this change the page layout.
Regards Fouzia
-------------------- Be Happy
|
Monu_QA
Newbie
Reged: 06/26/07
Posts: 7
Loc: delhi, India
|
|
for the date column check for 01/01/2007 check for 15/01/2007 check for 31/01/2007 check for 01/06/2007
like this [ i m using Boundary value analysis technique] and also check for leap year validation like verify proper error message is displayed when we enter 29/02/2007
Edited by Monu_QA (08/17/07 04:26 AM)
|
Joe Strazzere
Moderator
Reged: 05/15/00
Posts: 12344
Loc: Massachusetts, USA
|
|
If you were asked to write test cases for a "Registration Form", and one of the fields was described as:
Date : DD-MM-YYYY
what questions would you ask the owner of the requirements?
Before I started specifying test cases, some of the things I'd want to know are: - what does this "Date" represent? - is it supposed to be today's date? - is it supposed to be a birth date? - are dates in the past permitted? - what would be a valid range of dates? - is this a required field? - where does the value from this field go once the transaction is "committed"? etc, etc
Can you think of any more questions you would ask to clarify the requirements for this field?
-------------------- - Joe
Visit AllThingsQuality.com to learn more about quality, testing, and QA!
I speak only for me. I do not speak for my employer, nor for anyone else.
|
Joe Strazzere
Moderator
Reged: 05/15/00
Posts: 12344
Loc: Massachusetts, USA
|
|
Quote:
P.S. Somehow I think that we are talking about paper registration form
Good point! The post doesn't actually indicate that this is a software problem.
(It's always good to seek clarification of requirements)
-------------------- - Joe
Visit AllThingsQuality.com to learn more about quality, testing, and QA!
I speak only for me. I do not speak for my employer, nor for anyone else.
|
Monu_QA
Newbie
Reged: 06/26/07
Posts: 7
Loc: delhi, India
|
|
Thanks joe for your suggestion definitely before writing the test case we must ask this question and joe is this a right question to ask - Are we using any date control button for entering the date
Edited by Monu_QA (08/17/07 06:19 AM)
|
swt88
Active Member
Reged: 05/13/03
Posts: 1193
Loc: Massachusetts
|
|
Quote:
If you were asked to write test cases for a "Registration Form", and one of the fields was described as: . Date : DD-MM-YYYY . what questions would you ask the owner of the requirements? . Before I started specifying test cases, some of the things I'd want to know are: - what does this "Date" represent? - is it supposed to be today's date? - is it supposed to be a birth date? - are dates in the past permitted? - what would be a valid range of dates? - is this a required field? - where does the value from this field go once the transaction is "committed"? etc, etc
Can you think of any more questions you would ask to clarify the requirements for this field?
I'd want to know if the dashes are required or not. If I don't enter them do I receive an error message or will they automatically be put in for me?
Same goes for year -- I believe we are far enough away from Y2K to think people are back to entering two digit years. Is four required (again message - or auto populate to a four digit year)?
-------------------- Mary
|
Joe Strazzere
Moderator
Reged: 05/15/00
Posts: 12344
Loc: Massachusetts, USA
|
|
Quote:
- Are we using any date control button for entering the date
Good! That seems like a reasonable question to help guide the selection of some of the test cases.
-------------------- - Joe
Visit AllThingsQuality.com to learn more about quality, testing, and QA!
I speak only for me. I do not speak for my employer, nor for anyone else.
|
Joe Strazzere
Moderator
Reged: 05/15/00
Posts: 12344
Loc: Massachusetts, USA
|
|
Quote:
I'd want to know if the dashes are required or not. If I don't enter them do I receive an error message or will they automatically be put in for me?
Same goes for year -- I believe we are far enough away from Y2K to think people are back to entering two digit years. Is four required (again message - or auto populate to a four digit year)?
Good ones! If the interviewee asked these very reasonable questions, I'd be pleased.
-------------------- - Joe
Visit AllThingsQuality.com to learn more about quality, testing, and QA!
I speak only for me. I do not speak for my employer, nor for anyone else.
|