Branch: : Aeronautical Engineering
Send Friend RequestProgram 1
TEST CASES FOR CALCULATOR
Test case No. Description Input Expected Result 1. Run the application of calculator. Click on start. The calculator form should be displayed with initial value 0 in the textbox.
2. Select number button. Click on any number button. Clicked number must be displayed on the textbox. 3. Select alphabet button from keyboard. Press on any alphabet. The alphabets should not be displayed on the textbox. 4. Select any arithmetic operator. Click on +, - , * , / etc. The operator should not be displayed in the textbox. 5. Select any two operand with + operator. Click on + operator. The sum of two numbers should be displayed when we press equal operator. 6. Select any two operand with - operator. Click on - operator. The difference of two numbers should be displayed when we press equal operator. 7. Select any two operand with * operator. Click on * operator. The product of two numbers should be displayed when we press equal operator. 8. Select any two operand with / operator. Click on / operator. The quotient of two numbers should be displayed when we press equal operator. 9. Select two operands with first number lesser than the second number. Click on - operator. The result of two operands should be displayed with negative sign. 10. Select = (equals) operator. Click on = operator. The result of any two numbers should be displayed. 11. Select (.) dot operator with number. Click on . Operator. The number with dot operator should be displayed in the textbox. 12. Select number with / operator. Click on any number and divide it by zero. It should display error in the textbox. 13. Select number with / operator. Click on zero and divide it by zero. It should display error in the textbox. 14. Select 0 number with / operator. Click on zero and divide it by any number. It should display 0 in the textbox. 15. Select number with * operator. Click on any number and multiply it by zero. The result should be zero. 16. Select any number with + operator. Click on any number and add it by zero. The result should be the number which we have entered. 17. Select any number with - operator. Click on any number and subtract it by zero. The result should be the given number. 18. Select sqrt operator. Click on sqrt operator with any number. The sqrt of a given number should be displayed.
19. Select 1/x button. Click on 1/x button without entering any number. Type mismatch error message should be displayed. 20. Select clear button. Click on C in the design. The entire data should be cleared and should display zero. 21. Select zero button more than once. Click on zero button. Zero should appear only once in the textbox. 22. Select 1/x button. Click any number with 1/x button. The result of 1/x should be displayed.
23. Select two operators. Click on 3 numbers and 2 operators.
Eg:5*2+4The corresponding result should be displayed in the textbox. 24. Select text area. Click on any special symbols from keyboard. Nothing should be displayed in the text area. 25. Select any two negative numbers. Click on any 2 negative numbers with any operator.
Eg:-5+(-6)-11 should be displayed in the textbox. 26. Select +/- operator. Click on +/- Nothing should be displayed in the text area.
27. Select any decimal number and operator. Click on any decimal number like .4 and click on equals operator. The output should be displayed as 0.4 28. Select textbox. Click on any number from the mouse and operator from keyboard.
Eg: 6+6The output should be 12. 29. Select number and equal operator. Click on any number and click equals.
Eg: 2020 should be displayed. 30. Click any number. Select the clicked number in the textbox. The number should not get selected. 31. Click any number. Select the clicked number in the textbox and press delete button from keyboard. The number should not get deleted. 32. Close the application of calculator. Click on close. The calculator form should be closed.
Program 1
TEST CASES FOR CALCULATOR
Test case No. Description Input Expected Result 1. Run the application of calculator. Click on start. The calculator form should be displayed with initial value 0 in the textbox.
2. Select number button. Click on any number button. Clicked number must be displayed on the textbox. 3. Select alphabet button from keyboard. Press on any alphabet. The alphabets should not be displayed on the textbox. 4. Select any arithmetic operator. Click on +, - , * , / etc. The operator should not be displayed in the textbox. 5. Select any two operand with + operator. Click on + operator. The sum of two numbers should be displayed when we press equal operator. 6. Select any two operand with - operator. Click on - operator. The difference of two numbers should be displayed when we press equal operator. 7. Select any two operand with * operator. Click on * operator. The product of two numbers should be displayed when we press equal operator. 8. Select any two operand with / operator. Click on / operator. The quotient of two numbers should be displayed when we press equal operator. 9. Select two operands with first number lesser than the second number. Click on - operator. The result of two operands should be displayed with negative sign. 10. Select = (equals) operator. Click on = operator. The result of any two numbers should be displayed. 11. Select (.) dot operator with number. Click on . Operator. The number with dot operator should be displayed in the textbox. 12. Select number with / operator. Click on any number and divide it by zero. It should display error in the textbox. 13. Select number with / operator. Click on zero and divide it by zero. It should display error in the textbox. 14. Select 0 number with / operator. Click on zero and divide it by any number. It should display 0 in the textbox. 15. Select number with * operator. Click on any number and multiply it by zero. The result should be zero. 16. Select any number with + operator. Click on any number and add it by zero. The result should be the number which we have entered. 17. Select any number with - operator. Click on any number and subtract it by zero. The result should be the given number. 18. Select sqrt operator. Click on sqrt operator with any number. The sqrt of a given number should be displayed.
19. Select 1/x button. Click on 1/x button without entering any number. Type mismatch error message should be displayed. 20. Select clear button. Click on C in the design. The entire data should be cleared and should display zero. 21. Select zero button more than once. Click on zero button. Zero should appear only once in the textbox. 22. Select 1/x button. Click any number with 1/x button. The result of 1/x should be displayed.
23. Select two operators. Click on 3 numbers and 2 operators.
Eg:5*2+4The corresponding result should be displayed in the textbox. 24. Select text area. Click on any special symbols from keyboard. Nothing should be displayed in the text area. 25. Select any two negative numbers. Click on any 2 negative numbers with any operator.
Eg:-5+(-6)-11 should be displayed in the textbox. 26. Select +/- operator. Click on +/- Nothing should be displayed in the text area.
27. Select any decimal number and operator. Click on any decimal number like .4 and click on equals operator. The output should be displayed as 0.4 28. Select textbox. Click on any number from the mouse and operator from keyboard.
Eg: 6+6The output should be 12. 29. Select number and equal operator. Click on any number and click equals.
Eg: 2020 should be displayed. 30. Click any number. Select the clicked number in the textbox. The number should not get selected. 31. Click any number. Select the clicked number in the textbox and press delete button from keyboard. The number should not get deleted. 32. Close the application of calculator. Click on close. The calculator form should be closed.