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

What is the correct answer of basic types of test cases ?

7 Answers   Ness Technologies,


How to write a Scenario and test cases for escalator

7 Answers   ABC, Accenture, CTS,


Give me 10 test cases on library management system

8 Answers  


Test cases on uplaoding files

12 Answers   GE, HP,


What is the smallest number of test cases required to Provide 100% branch coverage? If(x>y) x=x+1; else y=y+1; while(x>y) { y=x*y; x=x+1; } A. 1 B. 2 C. 3 D. 4

1 Answers   ISTQB,






Suppose an Application has been maintain from 4 years, we have written 5000 test cases for that. Now the functional flow has been changed for a Page. If I want to write test cases for that newly built page. How can I find what was there in that page 4 years back? How can we traced out? What is the best way to find test cases other than tracability?

4 Answers   GE, Genpact,


This was asked to me recently in Microsoft interview How would you do DOS copy command testing

0 Answers   Microsoft,


write a test cses for sending mails through microsoft- outlook xpress?

4 Answers   HCL,


1. Buzz Words 1.1 Purpose Allow user easy access of content based on key/popular words 1.2 Scope All the tags at the portal. 1.3 User Interface - Tags are usually hyperlinks that lead to a collection of items that are associated with the tag. - Click takes you to page similar to Search Result page, should search all content and not only articles - Based on Most Viewed only 1.4 Interfacing/Sourcing Details - Need to develop an application which works on algorithm to calculate size/color of Buzz words. - In phase 1 algorithm will be pretty straight forward of calculating dimesion of Buzz words by going by ""Most Viewed/Visited"" words. Need to get exact algorithm.

0 Answers  


In an online shopping application there are 3 text boxes.One of Login,Add to the shopping cart and Purchase goods.Which & How many test cases can be written for these 3 text boxes?

2 Answers  


please give me different test scenario for uploading whatsapp status from gallery and camera

0 Answers   Next Step,


Write a test case scenario for Web-based address book?

0 Answers  


Categories