Test Case Writing
Test Case Writing
2). What are the test cases for one Rupees Coin Box (Telephone
box)?
Expected: Should display the message " Insert one rupee coin"
Expected: The inserted one rupee coin comes out of the exit door.
TC5: During the conversation, in case of a local call, (assume the duration
is of 60 sec), when 45 as are completed
TC7: In the TC5 scenario, if you don't insert one more coin.
TC8: Pick up the receiver. Insert appropriate one rupee coin; Dial the
number after hearing the ring tone. Assume it got connected and you are
getting the ring tone. Immediately you end up the call.
Expected: The inserted one rupee coin comes out of the exit door.
1
3). How will you review test cases?
By following a Test Case Review Checklist, as detailed below
2
6) Write test cases for cell phone
4) Add one user with name and phone number in Address book
9) Remove the user from phone book and check removed properly with
name and phone number
8) What are Test cases for date field validation? (Third party
Calendar controls/date pickers will have a text box attached with a
button/icon beside it)
Ans: You can consider the following test cases for a calendar
control.
3
1. Ensure that calendar window is displayed and active, when the calendar
is invoked by pressing the calendar icon. (Once we faced an issue, the
calendar window is in minimized state when we invoked the calendar.)
They may be many other cases, if the text box is editable or not,
purpose of the date field used etc.
4
Negative Testing = (Showing error when not supposed to) + (Not
showing error when supposed to)(Usually these situations crop up
during boundary testing or cause-effect testing.) Here if either of the
situations in parentheses happens you have a negative test in terms of
its result - again, not what the test was hoping to find. The application
did what it was not supposed to do. User tends to put negative values,
which may crash the application.
Testcase1: To verify that when we click mail button whether it list all the
compose and check mail etc options or not
Expected result: Clicking of the mail button lists all the options check
mail and compose etc
Testcase2: To verify that when we click check mail option in the mail list
whether it takes you to inbox page or not
Testcase3: To verify that when you click the inbox whether it displays u r
received mails or not
Testcase4: To verify when u click the compose option in the mail button
whether it takes u to compose page where u can compose and send mails
Testcase5: To verify that after writing message when you click on ‘Send’
whether mail is sent to the address where you specified
5
Description: give mail id for which you want to send the message in the
‘To’ field and write the message in compose box and click on send button
Expected result: it sending the mail to the mail id which u are given in
the TO field
Description: Give wrong mail id in compose page in the ‘To’ field and see
what happens
Like this u can write any no of test cases on yahoo mail page
Users can read any of the files in the library at any time, but in order to
change them, they must first check the file out. They are then allowed to
modify the file and finally check it back in. Only after they check the file in
are their changes made available to other users.
Configuration Management:
6
verifying the completeness and correctness of configuration items.
Definition #2: The tracking and control of software development. SCM
systems typically offer version control and team programming features.
SCM is an acronym for software configuration management, and relates to
configuration management (CM).
For testing sending an email you can write test cases for.
2) If your email id is POP compliant, then check if you can sent it using
email clients.
7
23) What can be the various test cases for a pen?
To check the pen type
To check the pen cap is present or not
To check the pen ink is filled or not
To check the pen writing or not
To check the ink color i.e black or blue
To check the pen color
To check weather the pen is used to write all types of papers or not
To check the ink capacity of the pen
To check the pen product by fiber or plastic
24) Give test case for withdraw module in banking project
Step1: when the balance in the account is nil, try to withdraw some
amount (amount>0) should display msg as " insufficient funds in acc"
Step 2: when the account has some balance amount, try to withdraw
amount(amount>balance amount in account), should display "insufficient
funds in acc"
Step 3: when the account has some balance amount, enter a amount
(amount<=balance amount), should withdrawn correct amount from
account.
Step 4: when the account has some balance amount, enter the amount as
0, should display msg as withdrawal amount should be > 0 and should be
in multiple of hundreds( varies depending on reqs docs).
Step 5: When the account has balance amount, try to withdraw whole
amount , should display msg as " Minimum balance should be
maintained".
25) How to write test case of Login window where user name is
editable to only upto 8 alpha characters?
1 Enter User Name and press LOGIN Button. User Name= COES.
Should Display Warning Message Box "Please Enter User name and
Password"
3 Enter user Name and Password and press LOGIN Button. "USER =
COES AND Password = XYZ" (Wrong user name & password). Should
Display Warning Message Box "Please Enter User name and Password"
8
6 Enter user Name and Password and press LOGIN Button. "USER =""
"" AND Password = "" """(Blank values). Should Display Warning
Message Box "Please Enter User name and Password"
7 Enter User Name and Password and press LOGIN Button. "USER =
COES AND Password = COES" (Correct user name & password).
Should navigate to next page.
8 Enter User Name and Password and press LOGIN Button "USER =
ADMIN AND Password = ADMIN" (Correct user name & password).
Should navigate to Maintenance page.
Feature to be tested
Test suite id
Priority
Test environment
Test effort
Test duration
Precondition
9
Test procedure:
The answer is 3
1. Measure all sides of the triangle.
2. Add the minimum and second highest length of the
triangle and store the result as Res.
3. Compare the Res with the largest side of the triangle.
10