What are the Assumption while writing the test cases?
Explain with the example?

Answer Posted / mohit

The best thing is to divide the application into TCO's(Test
case Outlines)

Example,for any site there can be different TCO's for each
functionality(let's take the login part)

Note:TCO'S are just one liners.eg.
Let me take some of them(let's take the login part)
1>Username and Password are mandatory.

2>User should be able to login with correct username and
password.

3>Username and password should be case sensitive.

4>There should be entry box for each username and password.

5>There should be an option for forgot password.

6>Password should be encrypted.

7)Username and Password should not take white spaces.


Now the next step is to break these test case outlines into
test cases.There can be one or more test cases that can be
written using the tco's you have identified.

For example for tco

2>User should be able to login with correct username and
password.

we can break this tco into different test cases.
a)Login with correct username and password(user should be
able to login)+ve testing.
b)Login with incorrect username and password(user should not
be able to login)-ve testing.
c)Login with incorrect username and correct password(user
should not be able to login)-ve testing.
d)Login with correct username and correct password(user
should not be able to login)-ve testing.

For each tco look for all the +ve and -ve
scenarios.Generally if you have 5 +ve test cases then you
should atleast have 15 -ve test cases.

There may be cases where there is 1:1 relationship between
tco's and test cases as in the case with 1>Username and
Password are mandatory.

This is how i write test cases.May be this is helpful.

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Inwhat basis the time is allocated for testing the application?

1424


How to derive test data from the design documents?

1582


What is ecp (equivalence class partition)?

695


What is neutral test case?

1817


List out test deliverables?

683






How do you know the code has met specifications?

745


What is the difference between baseline and traceability matrix?

733


What’s the difference between a bug and a defect?

675


What is stub?

695


what is the test plan of facebook?

2322


from where do u collect test data if u miss some data what will happen

2197


how many modules in ur bank project? what functionalities r there?how did u check? could u plz expalin ur banking project?

1867


Should testing be done only after the build and execution phases are complete?

1085


What is revision history and the content of revision history table?

1565


Which criteria should take in account while doing CMS testing of any project?

1310