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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / raghu
we can write 3 test caes...following are the test cases
--Check for the enabled property of buttons from
0,1,2,3,4,5,6,7,8,9 and Add , Equal to.
--Click on all thebuttons from 1 - 9 and check whether the
respective no's are displayed or not.
--Enter the valus as per the valid input the table,click on
ADD button and check whether the actual value is matching
ith the expected value.
s.no values Actual Expected
value Value
1 0+1 1
2 0=2 2
till 9
In the same way for all the values we can write table and
calculate the actual values.
| Is This Answer Correct ? | 2 Yes | 2 No |
while reading srs document if you will get any doubt, what you will do?
suppose we r executing 10 test cases.let us assume one test case(like 5th test case) failed. then as a test engineer what u will u do?is it app problem or u'r s"?
Difference between or when do you conduct Acceptance testing User Interface testing ?
Tell the test cases to test Login Password screen?
do you write test cases for adhoc testing?
i need the brief explanations fo following question. # 1 1. type of action, 2. smart identification, 3. check points, 4. script to invoke web browser, 5. wot is get ro & getto property, 6. can you set a value in runtime, 7. wot is the use of bitmap checkpoint, 8. diff between dim & redim, 9. wot is function & Sub procedure,10. how u declare constant value. 11. wot is output value , 12. virtual object, 13. write script to retrieve data from the DB, 13. Types of frame works explain them brieflly
What are the different available models of sdlc?
How do we test the requirements?
1.The effectiveness of a test suite in detecting errors can be determined by counting the total number of test cases present in the test suite. 2.Black-box testing attempts to find errors in which of the following categories Option 1 Incorrect or missing functions Option 2 Interface errors Option 3 Performance errors Option 4 All of the above
which phase is most important in STLC phases? and why ?
How can we test whether Java & .net was installed in our PC or not?
please tell me about fish model which is used in sdlc model ,and also tell me about the founder of fish model and diagram of fish model and other things in details
10 Answers Cap Gemini, IBM, Savitr, Syntel, Verizon,