Sunteți pe pagina 1din 3

Shift: First

Practical No 3: Design Test Cases for Calculator to verify its functionality.

Form for Calculator

TC_id Objective Pre- Steps Input Expected Actual Status


Requisit Data Result Result
TC_1 To add two Calculator 1.Keys in 135+ Addition of Addition is Pass
integer and should be valid 100 two number is 235
display the switch ON integer - 235
result on 10 999999999
digit calculator 9 to
+99999999
99
2.Key in
operator +

3.Key in
second
operand
valid
integer
from -
999999999
9 to
+99999999
99
TC_2 To substract Calculator 1.Keys in 135- Substraction Substraction Pass
two integer and should be valid 100 of two is 35
display the switch ON integer - number is 35
result on 10 999999999
digit calculator 9 to
+99999999
99

2.Key in
operator -

3.Key in
second
operand
valid
integer
from -
999999999
9 to
+99999999
TC_3 To multiply Calculator 1.Keys in 135* Multiplication Multiplicati Pass
two integer and should be valid 100 of two on is 13500
display the switch ON integer - number is
result on 10 999999999 13500
digit calculator 9 to
+99999999
99
2.Key in
operator *
3.Key in
second
operand
valid
integer
from -
999999 to
+9..
TC_4 To divide two Calculator 1.Keys in 135/1 Division of Division id Pass
integers should be valid 00 two number is 1.35
and display the switch ON integer - 1.35
result on 10 999999999
digit calculator 9 to
+99999999
99

2.Key in
operator -

3.Key in
second
operand
valid
integer
from -
999999999
9 to
+99999999
99
TC_5 To check the Calculator Press on Num It should It will give Fail
numbers are switch ON any ber accept integer character
working number from value value
0 to 9

S-ar putea să vă placă și