Test Case for Calculator
Test Id Test Case Precondition Input Data Step to be Executed Expected output Actual Output
Performing the -Enter 1st operand -Press
Calculator mustbe Suppose int1=25 Correct result
TC1 addition of two '+' -Enter second 59
installed and open & int2=34 i.e 59
integer numbers operand -Press '='
Performing the -Enter 1st operand -Press
Calculator mustbe Suppose int1=25 Correct result
TC2 Subtraction of two '+' -Enter second -9
installed and open & int2=34 i.e -9
integer numbers operand -Press '='
Performing the
-Enter 1st operand -Press
Multiplication of Calculator mustbe Suppose int1=25 Correct result
TC3 '+' -Enter second 850
two integer installed and open & int2=34 i.e 850
operand -Press '='
numbers
Performing the -Enter 1st operand -Press
Calculator mustbe Suppose int1=25 Correct result
TC4 Division of two '+' -Enter second 0.735
installed and open & int2=34 i.e 0.735
integer numbers operand -Press '='
Enter the total
marks among the
Finding n
Calculator mustbe Correct result
TC5 Percentage of a subjects[Suppose Click on Enter 80%
installed and open i.e 80%
marks the Entity have
got 400 marks in
5 subjects]
Enter the data
(Suppose,finding
an average of a
Finding the Calculator must be bike travelled in n Correct result
TC6 Click on Enter 12.5litre/hr
average installed and open litres i.e 12.5litre/hr
therefore:Bike
travelled:- 100km
in 8 litres)
Finding the Enter the
Calculator must be Correct result
TC7 Trignometric expression (Value Click on Enter success
installed and open i.e 0.70
values of Sin θ(45))
Finding the Enter the
Calculator must be Correct result
TC8 Trignometric expression (Value Click on Enter Success
installed and open i.e 0.70
values of Cos θ(45))
Finding the Enter the
Calculator must be Correct result
TC9 Trignometric expression (Value Click on Enter Success
installed and open i.e 1
values of Tan θ(45))
TC10 Clear Screen - - Click on clear Success Success
Pass/Fail
Pass
Pass
Pass
Pass
Pass
Pass
Pass
Pass
Pass
Pass