Tests/Activity/Calculate/PlusTest: Difference between revisions

From OLPC
Jump to navigation Jump to search
(New page: {{Test case |testcase_name=FourArithmeticOperationsTest |testcase_category=Activity |testcase_subcategory=Calculate |testcase_stream=8.2 |testcase_component=Calculate |testcase_feature=htt...)
 
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Obsolete. Refer [http://wiki.laptop.org/go/Tests/Activity/CalculateTests].
'''
{{Test case
{{Test case
|testcase_name=FourArithmeticOperationsTest
|testcase_name=FourArithmeticOperationsTest
Line 8: Line 10:
|testcase_tools=n/a
|testcase_tools=n/a
|testcase_setup=n/a
|testcase_setup=n/a
|testcase_procedure=1. run the Calculate Activity on XO machine
|testcase_procedure=1. Run the Calculate Activity on XO machine
2. test invalid inputs for the fours arithmetic operations
2. Test invalid inputs for the fours arithmetic operations
3. test valid inputs for the fours arithmetic operations
3. Test valid inputs for the fours arithmetic operations

|testcase_expectedresults=1. When test the invalid inputs,like letters, the calculation should do not work out.
|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 (anu number / 0), since it should be undefined for division.
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_comments=this 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 14 tests for this test case by pairwise.
We build 14 tests for this test case by pairwise.
}}
}}
{{Test results begin}}
{{Test results begin}}
Line 24: Line 26:
|testresult_build=2
|testresult_build=2
|testresult_passfail=Pass
|testresult_passfail=Pass
|testresult_comments=TestInvalidInputs:
|testresult_comments=When test by inputing the invalid variables, we expect that the calculation should not do. For example, when input1 is a, and input2 is 1, then the calculation should do not work out for a + 1.
When we test by inputing the invalid variables, we expect that the calculation should not do. For example, when input1 is a, and input2 is 1, then the calculation should do not work out for a + 1.

The invalid inputs values are from a to Z.
|testresult_date=2009/03/26
}}
{{Test results
|testresult_release=Candidate
|testresult_stream=8.2
|testresult_build=12
|testresult_passfail=Pass
|testresult_comments=TestValidInputs:
The valid inputs values are numbers, and truth values(true and false). However, we just test the numbers as the inputs for the test case. We need do more tests to verity truth values for the fours arithmetic operations.

|testresult_date=2009/03/26
|testresult_date=2009/03/26
}}
}}

Latest revision as of 23:44, 9 March 2012

Obsolete. Refer [1].

Test case: Short name::FourArithmeticOperationsTest
How to report results

Stream ,|x|Build stream::x}}
Category Test category::Activity Sub-category Test subcategory::Calculate
Component System component::Calculate
Feature System feature::http://wiki.laptop.org/go/Calculate
Objective Test objective::
Tools Test tools::n/a
Setup Test setup::n/a
Procedure [[Test procedure::1. Run the Calculate Activity on XO machine

2. Test invalid inputs for the fours arithmetic operations 3. Test valid inputs for the fours arithmetic operations]]

Expected Results
and Pass Criteria
[[Pass criteria::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.]]

Comments [[More notes::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(+,-,*,/)

We build 14 tests for this test case by pairwise.]]

Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test
Software release::Candidate Build stream::8.2 Build number::2 PassFail::Pass ,|x| #x}} [[Comments::TestInvalidInputs:

When we test by inputing the invalid variables, we expect that the calculation should not do. For example, when input1 is a, and input2 is 1, then the calculation should do not work out for a + 1.

The invalid inputs values are from a to Z.]]

Created::2009/03/26


Software release::Candidate Build stream::8.2 Build number::12 PassFail::Pass ,|x| #x}} [[Comments::TestValidInputs:

The valid inputs values are numbers, and truth values(true and false). However, we just test the numbers as the inputs for the test case. We need do more tests to verity truth values for the fours arithmetic operations.]]

Created::2009/03/26