Tests/Activity/Calculate/BooleanAndLabelTest: Difference between revisions

From OLPC
Jump to navigation Jump to search
(New page: {{Test case |testcase_name=BooleanAndLabelTest |testcase_category=Activity |testcase_subcategory=Calculate |testcase_stream=8.2 |testcase_build=15 |testcase_component=Calculate |testcase_f...)
 
No edit summary
Line 7: Line 7:
|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 boolean feature and label of calculate activity doing well or not
|testcase_objective=Test the boolean feature and label of calculate activity doing well or not
|testcase_tools=n/a
|testcase_tools=n/a
|testcase_setup=n/a
|testcase_setup=n/a
Line 17: Line 17:
|testcase_comments=The following is the test sequence for testing boolean feature(And, Or, Equal, Not Equal) and creating label:
|testcase_comments=The following is the test sequence for testing boolean feature(And, Or, Equal, Not Equal) and creating label:
''input1(true, false, number, invalid), input2(true, false, number, invalid),
''input1(true, false, number, invalid), input2(true, false, number, invalid),
Boolean operators(&, | , =, !=), label(valid labels, invalid, no labels)''
Boolean operators(&,

Based on Pairwise, we use TConfig to produce 12 test cases for it.In additon, there are 3 test cases for invalid inputs based on Myer's.
}}
}}
{{Test results begin}}
{{Test results begin}}
Line 29: Line 27:
|testresult_comments=TestInvalidInputs:
|testresult_comments=TestInvalidInputs:
The invalid inputs for boolean features are letters from a to Z.
The invalid inputs for boolean features are letters from a to Z.
The invalid inputs for label name are only symbols(&,
The invalid inputs for label name are only symbols(&,|,=,!=,+,-,and so on), truth value(true and false), and numbers(eg.1,2,...). We can name the label by these invalid values, but once you want to call the label, then you can not get the value of the label stand for. The calculation still work, but the result is not you expected one. So, We think this is a bug for the label. We have not test on the calling label in the test sequence, so we needs more tests for it.
|testresult_date=2009/03/26
|testresult_date=2009/03/26
}}
}}
Line 40: Line 38:
The valid inputs for boolean feature are numbers(1,2,...) and truth value(true, false).
The valid inputs for boolean feature are numbers(1,2,...) and truth value(true, false).
The valid inputs for label name are letters or combination of letters and numbers.
The valid inputs for label name are letters or combination of letters and numbers.
|testresult_date=2009/03/26
}}
}}
{{Test results end}}
{{Test results end}}

Revision as of 02:20, 26 March 2009

Test case: Short name::BooleanAndLabelTest
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::Test the boolean feature and label of calculate activity doing well or not
Tools Test tools::n/a
Setup Test setup::n/a
Procedure [[Test procedure::1. Open the XO machine.

2. Run the calculate activity on XO machine. 3. Test invalid inputs. 4. Test valid inputs.]]

Expected Results
and Pass Criteria
Pass criteria::When we test invalid inputs, we hope the calculate activity should produce error. When we test valid inputs, we hope the activity do well.
Comments [[More notes::The following is the test sequence for testing boolean feature(And, Or, Equal, Not Equal) and creating label:
input1(true, false, number, invalid), input2(true, false, number, invalid),
Boolean operators(&,]]
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test
Software release::Candidate Build stream::8.2 Build number::3 PassFail::Pass ,|x| #x}} [[Comments::TestInvalidInputs:

The invalid inputs for boolean features are letters from a to Z. The invalid inputs for label name are only symbols(&,]]

Created::2009/03/26


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

The valid inputs for boolean feature are numbers(1,2,...) and truth value(true, false). The valid inputs for label name are letters or combination of letters and numbers.]]

Created::2009/03/26