Tests/Activity/CalculateTests

From OLPC
Jump to navigation Jump to search

This Calculate Tests page is an amalgamation of test of the Calculate feature tests. Most of the tests date from 2009.


Calculate Activity Test

Test case: Short name::Calculate Activity
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::basic activity testing
Tools Test tools::n/a
Setup Test setup::n/a
Procedure [[Test procedure::# Activity installs from download (if not part of default installation) from website or USB key
  1. Activity starts up
  2. You can re-name the activity
  3. User specific data can be created
  4. You can force a save
  5. Activity closes properly from inside the activity
  6. You can resume the activity from the Journal
  7. You see the user specific data after resume
  8. You can close the activity from the Sugar frame]]
Expected Results
and Pass Criteria
Pass criteria::
Comments More notes::
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test
Software release::Candidate Build stream::8.2 Build number::760 PassFail::Pass ,|x| #x}} Comments::calculate-24 Created::




Calculate CosSin Test

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

Stream ,|x|Build stream::x}}
Category Test category::Activity Sub-category Test subcategory::calculate
Component System component::numbers
Feature System feature::http://wiki.laptop.org/go/Calculate
Objective Test objective::passed
Tools Test tools::calculator and numbers
Setup Test setup::
Procedure [[Test procedure::1. turn on the calculator.

2. type cos(sin(1)). 3. click on = button.]]

Expected Results
and Pass Criteria
Pass criteria::number 0.6663
Comments More notes::test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test


Calculate Plus Test

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




Calculate Square Test

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

Stream ,|x|Build stream::x}}
Category Test category::Activity Sub-category Test subcategory::calculate
Component System component::numbers
Feature System feature::Tests/Activity/Calculate/SquareTest
Objective Test objective::passed
Tools Test tools::calculater and numbers
Setup Test setup::
Procedure [[Test procedure::#turn on the calculator.
  1. click on 2 button.
  2. click on x^2 button.
  3. click on = button.]]
Expected Results
and Pass Criteria
Pass criteria::number 4.
Comments More notes::test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test
Software release::7.1.0 (650) Build stream::joyride Build number:: PassFail::Pass ,|x| #x}} Comments:: Created::



Calculate Clear Test

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

Stream ,|x|Build stream::x}}
Category Test category::Activity Sub-category Test subcategory::calculate
Component System component::numbers
Feature System feature::http://wiki.laptop.org/go/Calculate
Objective Test objective::passed
Tools Test tools::calculator and numbers
Setup Test setup::
Procedure [[Test procedure::1. turn on the calculator.

2. click on any number. 3. click on clear button.]]

Expected Results
and Pass Criteria
Pass criteria::screen is clear.
Comments More notes::test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test


Calculate Log Test

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

Stream ,|x|Build stream::x}}
Category Test category::Activity Sub-category Test subcategory::calculate
Component System component::numbers
Feature System feature::http://wiki.laptop.org/go/Calculate
Objective Test objective::passed
Tools Test tools::calculator and numbers
Setup Test setup::
Procedure [[Test procedure::1. turn on the calculator.

2. click on 2 button. 3. click on log button. 4. click on = button.]]

Expected Results
and Pass Criteria
Pass criteria::number 0.3010
Comments More notes::test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test


Calculate Subtraction Tests

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

Stream ,|x|Build stream::x}}
Category Test category::Activity Sub-category Test subcategory::calculate
Component System component::numbers
Feature System feature::http://wiki.laptop.org/go/Calculate
Objective Test objective::passed
Tools Test tools::calculator and numbers
Setup Test setup::
Procedure [[Test procedure::1. turn on the calculator.

2. click on number 5. 3. click on - button. 4. click on number 2. 5. click on = button.]]

Expected Results
and Pass Criteria
Pass criteria::number 2.
Comments More notes::test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test



Calculate Turn On Test

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

Stream ,|x|Build stream::x}}
Category Test category::Activity Sub-category Test subcategory::calculate
Component System component::numbers
Feature System feature::http://wiki.laptop.org/go/Calculate
Objective Test objective::passed
Tools Test tools::calculator and numbers
Setup Test setup::
Procedure [[Test procedure::1. click on the calculator icon on the desktop of OLPC laptop.

2. check whether application is opening or not. 3. type some numbers on the screen.]]

Expected Results
and Pass Criteria
Pass criteria::calculator screen is open.
Comments More notes::test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test