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


Please Help Members By Posting Answers For Below Questions

consider therez 1 land and it has mango trees in it, what are the tets cases or how will we count no of mangoes on all trees

1591


difference between change management and configuration management

1580


How can you do the usability testing?

720


What is data flow diagram?

674


How to validate a Testcase.and is the testing Methodology.

1839






i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?

1592


functional testing test cases for transfer funds ?

1204


Which testing model is best as per your understanding, and why?

715


What is Registry?

1658


Explain the procedure & path of s/w in testing?

1545


negative test cases on banking domain ?

3407


Hi I am searching job please send some details abuot ERP project and real time test plan,traceability report,test case if any relate to erp project Please help me out to get a job in testing.my email address is chiku_69@yahoo.in Thank u

2386


Hi ALl, Can you please list out Q & A for Test Lead,which Interviewer may ask in interview for Test Lead position

1522


What is mean by multi-threading testing?

2113


What r the things,u prefer and prepare before starting testing?

1779