Tests/Activity/Calculate/FourArithmeticOperationsTest: Difference between revisions
No edit summary |
mNo edit summary |
||
(8 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
'''This page is obsolete. The information has been merged into[http://wiki.laptop.org/go/Tests/Activity/CalculateTests].''' {{delete}}{{deprecated}} |
|||
{{Test case |
{{Test case |
||
|testcase_name=FourArithmeticOperationsTest |
|testcase_name=FourArithmeticOperationsTest |
||
|testcase_category=Activity |
|testcase_category=Activity |
||
|testcase_subcategory=Calculate |
|testcase_subcategory=Calculate |
||
|testcase_stream=8.2 |
|testcase_stream=8.2 |
||
|testcase_component=Calculate |
|testcase_component=Calculate |
||
|testcase_feature=http://wiki.laptop.org/go/Calculate |
|testcase_feature=http://wiki.laptop.org/go/Calculate |
||
|testcase_objective=Test the calculate activity basic functionalities |
|||
|testcase_tools=n/a |
|testcase_tools=n/a |
||
|testcase_setup=n/a |
|testcase_setup=n/a |
||
|testcase_procedure=1. Open the XO machine |
|testcase_procedure=1. Open the XO machine. |
||
2. Run the Calculate Activity on XO machine |
2. Run the Calculate Activity on XO machine. |
||
⚫ | |||
3. Test invalid inputs for the four arithmetic operations. |
|||
|testcase_expectedresults=1. When test the invalid inputs,like letters, the calculation should do not work out. |
|||
⚫ | |||
2. When test the valid inputs, the calculation should work out well, except any number divided by 0 (any number / 0), since it should be undefined for division. |
|||
|testcase_expectedresults=1. When testing the invalid inputs, it is expected that tests will fail by returning some error message telling the user what went wrong. |
|||
2. When testing the valid inputs, it is expected that tests will pass by returning the right value. |
|||
|testcase_comments=The following is the case sequence to test the four arithmetic operations(addition, subtract, multiply, division ): |
|testcase_comments=The following is the case sequence to test the four arithmetic operations(addition, subtract, multiply, division ): |
||
''input1(pos, neg, 0, invalid(a-z)), input2(pos, neg, 0, invalid(a-z)) ,operations(+,-,*,/)'' |
''input1(pos, neg, 0, invalid(a-z)), input2(pos, neg, 0, invalid(a-z)) ,operations(+,-,*,/)'' |
||
We build |
We build 12 test cases using pairwise method and 2 test cases using Myer's method. |
||
}} |
}} |
||
{{Test results begin}} |
{{Test results begin}} |
||
Line 27: | Line 31: | ||
|testresult_passfail=Pass |
|testresult_passfail=Pass |
||
|testresult_comments=TestInvalidInputs: |
|testresult_comments=TestInvalidInputs: |
||
When we test by |
When we test by inputting the invalid variables, we expect that the calculation should not work. For example, when input1 is a, and input2 is 1, then the calculation should not work out for a + 1. |
||
⚫ | |||
⚫ | |||
|testresult_date=2009/03/26 |
|testresult_date=2009/03/26 |
||
}} |
}} |
||
Line 39: | Line 42: | ||
|testresult_passfail=Pass |
|testresult_passfail=Pass |
||
|testresult_comments=TestValidInputs: |
|testresult_comments=TestValidInputs: |
||
The valid inputs values are numbers, and truth values(true and false). However, we just |
The valid inputs values are numbers, and truth values(true and false). However, we just tested numbers as the inputs for the test cases. We do need more tests to verity truth values for the four arithmetic operations. |
||
|testresult_date=2009/03/26 |
|testresult_date=2009/03/26 |
||
}} |
}} |
Latest revision as of 01:00, 10 March 2012
This page is obsolete. The information has been merged into[1].
A request has been made for this page to be deleted. If you disagree with its deletion, please explain why on its talk page. Before deleting verify that no links will break. |
|