How many Test-Cases can be written for the calculator
having 0-9 buttons,Add,Equalto buttons.The testcases should
be focussed only on add-functionality but mot GUI.What are
those test-cases?
Answer Posted / rajendra prasad reddy penumall
Test-Cases for the calculator
so here we have 12 buttons total
ie 0,1,2,3,4,5,6,7,8,9,ADD,Equalto -12 buttons
here u can press atleat 4 buttons at a time minimum
for example
0+1=
for zero u should press 'zero' labled button
for plus u should press '+' labled button
for one u should press 'one' labled button
for equalto u should press 'equalto' labled button
0+1=
here + and = positions will not vary
so first number position can be varied from 0 to 9 i.e
from permutation and combinations u can fill that space in
10 ways
in the same way
second number position can be varied from 0 to 9 i.e
from permutation and combinations u can fill that space in
10 ways
Total number of possibilities are =10x10=100
This is exhaustive testing methodology and this is not
possible in all cases.
In mathematics we have one policy that the the function
satisfies the starting and ending values of a range
then it can satisfy for entire range of values from
starting to ending.
then we check the starting conditions i.e
one test case for '0+0='
(expected values you know thatis '0')
then another testcase for '9+9='
(expected values you know thatis '18')
only two testcases are enough to test the calculator
functionality.
if you still have any doubt feel free to mail me at :
rajendra_penumalli@yahoo.com
or call me:9885162742(hyd)
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
What is configuration management in software testing ?
How can you prepare the resume for testing? Can you send me the answer for this questions?
difference between change management and configuration management
What will be your approach if a particular script in Load Test fails?
What is revision history and the content of revision history table?
Can any one give a summary of testing a territory management system? what would be the test scenarios, few test cases. how it works.
In manual testing, what are stubs and drivers?
what is the architecture of your current project?
In Manual testing how to test proxy servers? can u please explain with example?
How to integrate Bugzilla with QTP?
How do you Prepare a Defect Managemnt Policy
What is application programming interface (api)?
How would you do the ollowing Security Testing for web application? 1) Authentication. 2) Authorization. 3) cookies. 4) penetration testing. 5) session testing. 6) encryption and decryption testing pls give examples give example i can't understand so pl
I have 6 months experience as project tarine and one and a half year experience as software engineer.Should i write taht my total experience id 2 years.
1.Tell me negative test cases for notepad 2.Tell me the factors for for writing severity based test cases