In this article, We will discuss test cases for calculator. There are two types of Calculator one of simple calculator and second scientific calculator. We include UI test cases, Functional test cases and Negative test cases for the calculators.
Test Cases For Simple Calculator
UI Test Cases For Simple Calculator
Sr.No
Testcase_ID
Test Cases
1
UI__01
Check that brand name of the calculator
2
UI__02
Check that the brand logo is displayed on the calculator or not
3
UI__03
Check that color of the calculator
4
UI__04
Check that shape of the calculator
5
UI__05
Check that height of the calculator
6
UI__06
Check that length of the calculator
7
UI__07
Check that weight of the calculator
8
UI__08
Check that material of the calculator
9
UI__09
Check that screen size of the calculator
10
UI__10
Check that buttons are properly displayed or not
11
UI__11
Check that numbers are properly displayed on buttons or not
12
UI__12
Check that arithmetic signs are properly displayed or not
13
UI__13
Check that ON and OFF buttons are properly displayed or not
14
UI__14
Check the size of each of the calculators
15
UI__15
Check the color of each button of the calculator
16
UI__16
Check that it has a flip cover or not
17
UI__17
Check the price of the calculator
18
UI__18
Check that it is operated by battery or solar
Functional Test Cases For Simple Calculator
Sr.No
Testcase_ID
Test Cases
1
Fun_Basic_01
Verify that the result of the addition operation of two integer numbers is displayed as expected or not
2
Fun_Basic_02
Verify that the result of the subtraction operation of two integer numbers is displayed as expected or not
3
Fun_Basic_03
Verify that the result of the multiplication operation of two integer numbers is displayed as expected or not
4
Fun_Basic_04
Verify that the result of the division operation of two integer numbers is displayed as expected or not
5
Fun_Basic_05
Verify that the user is able to clear the screen or not
6
Fun_Basic_06
Verify that the user is able to clear a single digit by backspace or not
7
Fun_Basic_07
Check that maximum numbers are displayed properly in the LCD screen or not
Test Cases For Scientific Calculator
UI Test Cases For Scientific Calculator
Sr.No
Testcase_ID
Test Cases
1
UI_Sci_01
Check that brand name of the calculator
2
UI_Sci_02
Check that the brand logo is displayed on the calculator or not
3
UI_Sci_03
Check that shape of the calculator
4
UI_Sci_04
Check that screen size of the calculator
5
UI_Sci_05
Check the price of the calculator
6
UI_Sci_06
Check that it is operated by battery or solar
7
UI_Sci_07
Check the dimension of the calculator
8
UI_Sci_08
Check the material of the calculator
9
UI_Sci_09
Check that layout of the calculator
10
UI_Sci_10
Check whether the ON/C and OFF key is displayed properly or not
11
UI_Sci_11
Check that the MODE key is displayed properly or not
12
UI_Sci_12
Check the arrows keys are properly displayed or not
13
UI_Sci_13
Check the data entry keys such as 0 to 9 numbers, decimal point, and notation keys are displayed with a proper indication or not
14
UI_Sci_14
Check that the LCD screen size of the calculator
15
UI_Sci_15
Check that numbers are displayed as expected or not
Functional Test Cases For Scientific Calculator
Sr.No
Testcase_ID
Test Cases
1
Fun_Sci_01
Verify that the initially displayed mode of the calculator
2
Fun_Sci_02
Verify that basic operation such as addition, subtraction, multiplication, and division working as expected or not
3
Fun_Sci_03
Verify that if any user performs a calculation and then press ENTER then the result should be displayed
4
Fun_Sci_04
Verify that the “=” key is finding the result the same way as ENTER key
5
Fun_Sci_05
Verify that result of the common logarithm calculations
6
Fun_Sci_06
Verify that result of the powers based on the constant e calculation
7
Fun_Sci_07
Verify that result of the factorial calculation
8
Fun_Sci_08
Verify that result of the fractional calculation is expected or not
9
Fun_Sci_09
Verify that the calculation of the trigonometric function as expected or not
Negative Test Cases For Calculator
Sr.No
Testcase_ID
Test Cases
1
Negative_TC_01
Check that it is waterproof or not
2
Negative_TC_02
Check that digits are properly displayed or not
3
Negative_TC_03
Verify the result is displayed on the LCD screen or not if the user applies for maximum numbers
Conclusion
So in this way, we can identify test cases for calculator. We covered UI, Functional and Negative test cases for simple and scientific calculator. As you can see a calculator is a valuable tool for everyone. I hope the above-mentioned test cases will help you to test the calculator object. If you are looking for more test cases examples then please visit the links below.