Test Cases For Addition Of Two Numbers

What We Are Learn:

Test Cases For Addition Of Two Numbers: In this post of softwaretestingo, we will discuss the possible scenario of two integer number addition test cases, and we have shared a test case template for manual testing testers. You can verify them also.

Test Cases For Addition Of Two Numbers

Write test cases for Integer Addition X+Y=20, Where X and Y are integers

• Enter the value of x as 0 and the value of y as 20 and check the result.
• Enter the value of y as 0 and the value of x as 20 and check the result.
• Enter the value as negative of both x and y and check the result; it would fail.
• Enter the equal values of x and y and check the result.
• Enter X as 0 Y as an integer result should be an integer.
• Enter Y as 0 X as integer result should be an integer
• Enter X as a negative number and Y as a positive number >0; the results should be integers.
• Enter x as a positive number and Y as a negative number > 0. The result should be an integer.
• Enter x and y as negative numbers >0; the result should be an integer.
• Enter X as 0 Y as an integer result should be an integer.
• Enter Y as 0 X as integer result should be an integer.
• Enter X as a negative number and Y as a positive number > 0; the results should be integers.
• Enter x as a positive number and Y as a negative number > 0. The result should be an integer.
• Enter x and y as negative numbers >0; the result should be an integer.

• The simplest will be the addition of positive integers.
• Addition of positive integers and zero
• Addition of positive integers and negative integers
• Addition of negative integer and zero
• Addition of multiple positive integers
• Addition of multiple negative integers
• Addition of multiple positive and negative integers
• In addition to huge integers, you will fix up positive, negative, and zero integers.
• Redo all tests described above with float point numbers
• Redo all tests described above with mixed integer and float point numbers
• Redo all tests described above with large float point numbers.
• Use your expectations to come up with more tests.

In this post, we have tried our best to share as many scenarios as possible, but if you find any missed test cases, you can still share them in the comment section.

I love open-source technologies and am very passionate about software development. I like to share my knowledge with others, especially on technology that's why I have given all the examples as simple as possible to understand for beginners. All the code posted on my blog is developed, compiled, and tested in my development environment. If you find any mistakes or bugs, Please drop an email to softwaretestingo.com@gmail.com, or You can join me on Linkedin.

1. urgent