test cases for login window



test cases for login window ..

Answer / nitin j

I was asked this question in Cap Gemini and got the answer from the interviwer.. :)
(Note: your answer may differ.)

Interviewer: there is a text field named login name: and below that there is a field called password and below that we have a button called Submit. how many maximum test cases can be there and what they would be?
If you have any questions on this you can ask.

I said no and i blindly answered 6.
Login with correct username and password
incorrect user name
incorrect password
incorrect user name and incorrect password
max number of characters for user name field
special char check

His answer:
You should have inquired whether text field takes special characters... what is the max no. of chars the field will take..
the field will be enabled initially or there is any condition. where the default focus would be.. and here are the test cases. start counting...

1. text field one should be enabled
2. text field two should be enabled
3. button should be enabled
4. text field should take alphanumeric characters
5. text field should take special characters (which chars will depend upon the requirement)
6. default focus should be on username field
7. password field should not display entered text instead should display * (or any other special char as reqd)
8. On tab focus should change to password field
9. on second tab focus should change to submit button
10. spell check for fields and button
11. alignment
12. 13. max character length for both fields
14. click on button without input
15. click on button with single input
16. all the four TC's that you mentioned like correct name and password...

"Do not assume anything"

I smiled. He smiled back. :)

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More Test Cases Interview Questions

hi iam working in HCL as a fresher n iam dg automation testing i am going to give client demo i did some 7 scripts i want to call all those in some new page in QTP I KNOW CALL THE EXISTING ACTION N COPY OF ACTION if we use any of these options while running it will show the whole script but is there any other method while running it should not show the whole script it will show only the calling lines plz give me detailed explanation to ds i need reply fast plzz

2 Answers   HCL,


Can some body help to write possible test cases for a credit card at POS (point of sale)

0 Answers  


How should the test cases be framed to validate the excel sheet?

3 Answers   Avaya,


Please tell m all posiible tst cass for this--> A password of password field will expire in 45 days.It should send 1st reminder message to user whn 10 days are left and 2nd reminder message when 5 days are left and 3rd reminder mssage when 2 days are left.write all positive and negativ test cass for this.

3 Answers  


can any one send sample test case documents in informatica with examples plz send documents to "mrlsurya@gmail.com"

2 Answers   IBM, TCS,






if we ve data 100 how we can check and create equvalnces an bva .if we ve data 1-5,6-10so on wat will we bva how we will chk

5 Answers   Nexus Technologies,


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

2 Answers   Unilog,


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

8 Answers   AmSol,


Pls tell me test cases for pepper grinder

0 Answers  


What is use case testing?

0 Answers  


Can any one send me the Sample sanity Test Cases??? Mail id:veerabhadrudu.p@gmail.com

0 Answers   TCS,


(questions asked in interview)hi every one can any one please answer to this questions.these questions were asked in an interview.i have another interview next week . 1.when the time schedule is tight how will you approch the testing,and the relese is nearing and we need to finish testing how can we follow in that case.do we need to exicute all the test cases or can priortise and leave some to next relase. 2. when a new feature is added to the existing application we need to add new test cases but after that do we need to change all the existing test cases and while running do we need to exicute entire application test cases or only the new feature test cases and related new feature test cases. 3.do you have any situation where you have to write and exicute the test cases same time, how will you follow.does it happens in real time. 4.example of bug which is not reproducible.like tester say that there is bug and developer say no can some example of such bugs. 5.during regression testing some times do we need to add new some additional test cases to test that bug.

3 Answers  


Categories