Windows Calculator Functional Testcases
Windows Calculator Functional Testcases
Let’s outline the basic Windows Calculator Functional testcases. A calculator is mainly used to perform mathematical calculations such as addition, subtraction, multiplication, division, etc.
Basic test cases for hand-held calculator
Application Launch Test Case
There are multiple ways to launch the Windows calculator on the machine. The basic method is to invoke or run the calc.exe file in the System32 folder.
BODMAS Rules
Verify mathematical expressions and adherence to BODMAS rules.
The BODMAS acronym stands for Brackets, Orders, Division, Multiplication, Addition, and Subtraction. These precedence rules should be applied while calculating the mathematical expressions.
Example:
( 2+ 7) * 3 + 9
=(9)*3+9 // Brackets first
= 27 + 9 // Multiplication takes precedence over addition
= 36
Note that: If addition takes precedence over multiplication which is against the BODMAS rule the result of the mathematical expression could be 108!
Testing exceptions
One abnormal or exceptional test case is when we divide any number by zero. Mathematically, the result is infinity. Since we don’t know the value, the application should display an error message to the user.
Test Case Scenario | Detailed Steps | Test Data | Expected Result | Actual Result |
Verify Divide by Zero | To verify that Divide by zero operation.
|
1/0 | Cannot divide by zero message. |