It is the most common question which is asked from both freshers and experienced candidates. They are usually asked to write test cases for the Calculator. This post will give you some idea about how to write test cases for the Calculator. **You can also read our post on ****how to write test cases for whatsapp****.**

**UI Test Cases for Calculator**

- Check that the weight of the calculator is according to the specifications or not.
- Check that the text written on buttons is visible.
- Verify that the display is working fine.
- The text displayed on the screen is easy to read or not.
- Check that the calculator is made up of which material.
- Check that all required buttons are available on calculator.

**General Test Case’s**

- Check that the calculator is a standard calculator or scientific calculator.
- Does the calculator start from
**ON**Button? - Are we able to perform
**BODMAS**Operations using this calculator? - Does the calculator give the correct result?
- Check that if we press
**C**button then does it clear all the numbers or not. - Is there any option to store previous results or not?
- Verify that user can delete digits one by one by using backspace button.
- Is there any option to copy and paste?
- Check that the user can perform operations like addition, subtraction, division, multiplications etc.
- Verify the maximum and minimum length of values.
- Check that all numeric digits are working or not.
- Verify that if calculator remains unused for some time, does it turned off automatically.
- Does the calculator gets switched off by pressing
**the OFF**button? - Does the calculator work on cells or battery?
- Check that all function keys are working or not.

**Functional Test cases of calculator**

- Perform addition of two positive integers and then check the result.
- Perform addition of two negative integers and then check the result.
- Add one negative integer and one positive integer. Now check the result.
- Perform Subtraction of two positive integers and then check the result.
- Perform Subtraction of two negative integers and then check the result.
- Subtract one negative integer and one positive integer. Now check the result.
- Perform Multiplication of two positive integers and then check the result.
- Perform Multiplication of two negative integers and then check the result.
- Multiply one negative integer and one positive integer. Now check the result.
- Perform Division of two positive integers and then check the result.
- Perform Division of two negative integers and then check the result.
- Divide one negative integer and one positive integer. Now check the result.
- Divide any number by zero and then check the result.
- Check that what will be the result if we divide any number by a negative number.
- Perform
**BODMAS**Operations and check that does it give correct/accurate results or not. - Check that
**%**functions works fine and gives correct result or not.

**These are some primary test cases for the calculator. In this post, we have written test cases for a simple/standard calculator. There can be a lot of other test cases for the calculator. If you have any other test case in your mind which should be shared with others, then you can comment here. **