# Tests/Activity/CalculateTests

(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)

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: Calculate Activity
How to report results

 Stream Category Any Activity Calculate Calculate http://wiki.laptop.org/go/Calculate basic activity testing n/a n/a # Activity installs from download (if not part of default installation) from website or USB key Activity starts up You can re-name the activity User specific data can be created You can force a save Activity closes properly from inside the activity You can resume the activity from the Journal You see the user specific data after resume You can close the activity from the Sugar frame warning.pngEmpty strings are not accepted. warning.pngEmpty strings are not accepted.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test
Candidate 8.2 760 Pass calculate-24 warning.pngThe date "" was not understood (support for dates is still experimental).

## Calculate CosSin Test

Test case: cossin
How to report results

 Stream Category Activity calculate numbers http://wiki.laptop.org/go/Calculate passed calculator and numbers warning.pngEmpty strings are not accepted. 1. turn on the calculator. 2. type cos(sin(1)). 3. click on = button. number 0.6663 test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test

## Calculate Plus Test

Test case: FourArithmeticOperationsTest
How to report results

 Stream Category 8.2 Activity Calculate Calculate http://wiki.laptop.org/go/Calculate warning.pngEmpty strings are not accepted. n/a n/a 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 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. 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
Candidate 8.2 2 Pass 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.

2009/03/26

Candidate 8.2 12 Pass 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.

2009/03/26

## Calculate Square Test

Test case: square
How to report results

 Stream Category Activity calculate numbers Tests/Activity/Calculate/SquareTest passed calculater and numbers warning.pngEmpty strings are not accepted. #turn on the calculator. click on 2 button. click on x^2 button. click on = button. number 4. test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test
7.1.0 (650) joyride warning.png"" is not a number. Pass warning.pngEmpty strings are not accepted. warning.pngThe date "" was not understood (support for dates is still experimental).

## Calculate Clear Test

Test case: clear
How to report results

 Stream Category Activity calculate numbers http://wiki.laptop.org/go/Calculate passed calculator and numbers warning.pngEmpty strings are not accepted. 1. turn on the calculator. 2. click on any number. 3. click on clear button. screen is clear. test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test

## Calculate Log Test

Test case: log
How to report results

 Stream Category Activity calculate numbers http://wiki.laptop.org/go/Calculate passed calculator and numbers warning.pngEmpty strings are not accepted. 1. turn on the calculator. 2. click on 2 button. 3. click on log button. 4. click on = button. number 0.3010 test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test

## Calculate Subtraction Tests

Test case: subtraction
How to report results

 Stream Category Activity calculate numbers http://wiki.laptop.org/go/Calculate passed calculator and numbers warning.pngEmpty strings are not accepted. 1. turn on the calculator. 2. click on number 5. 3. click on - button. 4. click on number 2. 5. click on = button. number 2. test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test

## Calculate Turn On Test

Test case: turnon
How to report results

 Stream Category Activity calculate numbers http://wiki.laptop.org/go/Calculate passed calculator and numbers warning.pngEmpty strings are not accepted. 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. calculator screen is open. test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test

## Calculate Tan Test

Test case: tan
How to report results

 Stream Category Activity calculate numbers http://wiki.laptop.org/go/Calculate passed calculator and numbers warning.pngEmpty strings are not accepted. 1. turn on the calculator. 2. click on number 1. 3. click on tan button. 4. click on = button. number 1.5574 test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test

## Calculate Multiplication Test

Test case: multiplication
How to report results

 Stream Category Activity calculate numbers http://wiki.laptop.org/go/Calculate passed calculator and numbers warning.pngEmpty strings are not accepted. 1. turn on the calculator. 2. click on 2 button. 3. click on * button. 4. click on 3 button. 5. click on = button. number 6. test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test

## Calculate Cube Test

Test case: cube
How to report results

 Stream Category Activity calculate numbers http://wiki.laptop.org/go/Calculate passed calculator and numbers warning.pngEmpty strings are not accepted. 1. turn on the calculator. 2. click on 2 button. 3. click on x^3 button. 4. click on = button. number 8. test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test

How to report results

 Stream Category Activity addition calculator and numbers http://wiki.laptop.org/go/Calculate addition of numbers calculator and numbers warning.pngEmpty strings are not accepted. 1. turn on the calculator. 2. click on 1 button. 3. click on + button. 4. click on 2 button. 5. click on = button number 3. test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test

## Calculate SinCos Test

Test case: sincos
How to report results

 Stream Category Activity calculate numbers http://wiki.laptop.org/go/Calculate passed calculator and numbers warning.pngEmpty strings are not accepted. 1. turn on the calculator. 2. type sin(cos(1)). 3. click on = button or ans button. number 0.5143. test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test

## Calculate Cos Test

Test case: cos
How to report results

 Stream Category Activity calculate numbers http://wiki.laptop.org/go/Calculate passed calculator an dnumbers warning.pngEmpty strings are not accepted. 1. turn on the calculator. 2. click on number 2. 3. click on cos button. 4. click on = button. number 0.5403 test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test
warning.pngEmpty strings are not accepted. warning.png"" cannot be used as a page name in this wiki. warning.png"" is not a number. Pass alsdfjasjsadlfksaflsdfkaslfdds warning.pngThe date "" was not understood (support for dates is still experimental).

## Calculate Algebra and Constant Test

Test case: AlgebraAndConstantTest
How to report results

 Stream Category 8.2 Activity Calculate Calculate http://wiki.laptop.org/go/Calculate Test three functions for the algebra feature, also test the constants of the Calculate activity n/a n/a 1. Open the XO machine 2. Run the Calculate Activity on XO machine 3. Test invalid inputs for algebra operation 4. Test valid inputs for algebra operation. Constants are checked and used as valid inputs. When using invalid inputs like letters, it is expected that the tests to fail by informing the user with an error message. When using valid inputs, it is expected that the tests will pass by returning the correct values. The following is the test suite for algebra and constant test: ```inputs(invalid, int, double, constants), sign(+,-), algebra(x!,x^2,root(x)) ``` Base on Pairwise, we count and build 9 test cases, and 1 test case by Myer's. We check the constants(pi, e) and use it by putting them as input values. We just test three of algebra operations, which are x!, x^2, root(x).More tests are needed to cover the other functions of the algebra feature.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test
Candidate 8.2 1 Pass TestInvalidInputs:

We can not input letters(a-Z) to do algebra operation.

2009/03/26

Candidate 8.2 9 Pass TestValidInputs:

When the input number is negative, root(x) of algebra operation produce error as expected. When a double input is used for x!, the result is zero.

2009/03/26

## Boolean and Label Test

Test case: BooleanAndLabelTest
How to report results

 Stream Category 8.2 Activity Calculate Calculate http://wiki.laptop.org/go/Calculate Test the boolean and the label features for the Calculate activity n/a n/a 1. Open the XO machine 2. Run the calculate activity on XO machine 3. Test invalid inputs 4. Test valid inputs When testing invalid inputs, it was expected that tests will fail by informing the user by an error message. When testing valid inputs, it was expected that tests will pass returning the correct values. 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 (AND(&), OR , EQUAL(=), NOT EQUAL(!=)), label (valid labels, invalid, no labels) ``` Based on Pairwise, we use TConfig to count and produce 12 test cases. In addition, based on Myer's, we build 3 test cases for invalid inputs for the test suite.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test
Candidate 8.2 3 Pass TestInvalidInputs:

The invalid inputs for boolean features are letters from a to z. The invalid inputs for label name are only symbols(&,+,=,and so on), numbers(1,2,...), and truth value(true, false). We can name labels by these invalid values, but once you call these labels, then we can not get the value of these labels stand for. The calculation still work out, but the result is not right as you expect to get. We think here is a bug for label.However, We have not done any test for calling invalid label in this test suite. Therefore, more tests are needed.

2009/03/26

Candidate 8.2 12 Pass TestValidInputs:

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

2009/03/26

## Calculate Four Arithmetic Operations Tests

Test case: FourArithmeticOperationsTest
How to report results

 Stream Category 8.2 Activity Calculate Calculate http://wiki.laptop.org/go/Calculate Test the calculate activity basic functionalities n/a n/a 1. Open the XO machine. 2. Run the Calculate Activity on XO machine. 3. Test invalid inputs for the four arithmetic operations. 4. Test valid inputs for the four arithmetic operations. 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. 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 12 test cases using pairwise method and 2 test cases using Myer's method.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test
Candidate 8.2 2 Pass TestInvalidInputs:

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.

The invalid inputs values are from a to z.

2009/03/26

Candidate 8.2 12 Pass TestValidInputs:

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.

2009/03/26

## Calculate Sin Test

Test case: sin
How to report results

 Stream Category Activity calculate numbers http://wiki.laptop.org/go/Calculate passed calculator and numbers warning.pngEmpty strings are not accepted. 1. turn on the calculator. 2. click on number 1. 3. click on sin button. 4.click on = button. number 0.8414 test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test

## Calculate Division Test

Test case: division
How to report results

 Stream Category Activity calculate numbers http://wiki.laptop.org/go/Calculate passed calculator and numbers warning.pngEmpty strings are not accepted. 1. turn on the calculator. 2. click on 6 button. 3. click on / button. 4. click on 2 button. 5. click on = button. number 3. test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test

```== Calculate Square Root Test ==
```

Test case: squareroot
How to report results

 Stream Category Activity calculate numbers http://wiki.laptop.org/go/Calculate passed calculater and numbers warning.pngEmpty strings are not accepted. 1. turn on the calculator. 2. click on number 1. 3. click on number 6. 4. click on square root button. 5. click on = button. number 4. test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test

## Calculate Turn Off Test

Test case: turnoff
How to report results

 Stream Category Activity calculate numbers http://wiki.laptop.org/go/Calculate passed calculator and numbers warning.pngEmpty strings are not accepted. 1. click on the exit button of the calculator application. 2. check whether the application is off or not. application is off. test has passed.
Release Stream Build Pass/Fail Trac Ticket(s) Comment(s) Date of Test
 Build number 760  +, 2  +, 12  +, warning.png"" is not a number. , 1  +, 9  +, and 3  + Build stream Any  +, 8.2  +, Joyride  +, and warning.png"" cannot be used as a page name in this wiki. Comments calculate-24, TestInvalidInputs: When we test by inputin … 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. The invalid inputs values are from a to Z., 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., warning.pngEmpty strings are not accepted. , alsdfjasjsadlfksaflsdfkaslfdds, TestInvalidInputs: We can not input letters(a-Z) to do algebra operation., TestValidInputs: When the input number is negative, root(x) of algebra operation produce error as expected. When a double input is used for x!, the result is zero., TestInvalidInputs: The invalid inputs for … TestInvalidInputs: The invalid inputs for boolean features are letters from a to z. The invalid inputs for label name are only symbols(&,+,=,and so on), numbers(1,2,...), and truth value(true, false). We can name labels by these invalid values, but once you call these labels, then we can not get the value of these labels stand for. The calculation still work out, but the result is not right as you expect to get. We think here is a bug for label.However, We have not done any test for calling invalid label in this test suite. Therefore, more tests are needed. t suite. Therefore, more tests are needed., TestValidInputs: The valid inputs for boolean feature are numbers(0,1,2,...) and truth value(true, false). The valid inputs for label name are letters or combination of letters and numbers., TestInvalidInputs: When we test by inputt … TestInvalidInputs: 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. The invalid inputs values are from a to z. The invalid inputs values are from a to z., and TestValidInputs: 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. Created warning.pngThe date "" was not understood (support for dates is still experimental). , and 26 March 2009  + More notes warning.pngEmpty strings are not accepted. , test has passed., The following is the case sequence to test … 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. d 14 tests for this test case by pairwise., The following is the test suite for algebr … The following is the test suite for algebra and constant test: ```inputs(invalid, int, double, constants), sign(+,-), algebra(x!,x^2,root(x)) ``` Base on Pairwise, we count and build 9 test cases, and 1 test case by Myer's. We check the constants(pi, e) and use it by putting them as input values. We just test three of algebra operations, which are x!, x^2, root(x).More tests are needed to cover the other functions of the algebra feature. he other functions of the algebra feature., The following is the test sequence for tes … 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 (AND(&), OR , EQUAL(=), NOT EQUAL(!=)), label (valid labels, invalid, no labels) ``` Based on Pairwise, we use TConfig to count and produce 12 test cases. In addition, based on Myer's, we build 3 test cases for invalid inputs for the test suite. ses for invalid inputs for the test suite., and The following is the case sequence to test … 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 12 test cases using pairwise method and 2 test cases using Myer's method. thod and 2 test cases using Myer's method. Pass criteria warning.pngEmpty strings are not accepted. , number 0.6663, 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., number 4., screen is clear., number 0.3010, number 2., calculator screen is open., number 1.5574, number 6., number 8., number 3., number 0.5143., number 0.5403, When using invalid inputs like letters, it is expected that the tests to fail by informing the user with an error message. When using valid inputs, it is expected that the tests will pass by returning the correct values., When testing invalid inputs, it was expected that tests will fail by informing the user by an error message. When testing valid inputs, it was expected that tests will pass returning the correct values., 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., number 0.8414, and application is off. PassFail Pass  + Short name Calculate Activity  +, cossin  +, FourArithmeticOperationsTest  +, square  +, clear  +, log  +, subtraction  +, turnon  +, tan  +, multiplication  +, cube  +, addition  +, sincos  +, cos  +, AlgebraAndConstantTest  +, BooleanAndLabelTest  +, sin  +, division  +, squareroot  +, and turnoff  + Software release Candidate  +, 7.1.0 (650)  +, and warning.pngEmpty strings are not accepted. System component Calculate  +, numbers  +, and calculator and numbers  + System feature http://wiki.laptop.org/go/Calculate  +, and Tests/Activity/Calculate/SquareTest  + Test category Activity  + Test objective basic activity testing  +, passed  +, warning.pngEmpty strings are not accepted. , addition of numbers  +, Test three functions for the algebra feature, also test the constants of the Calculate activity  +, Test the boolean and the label features for the Calculate activity  +, and Test the calculate activity basic functionalities  + Test procedure # Activity installs from download (if not … # Activity installs from download (if not part of default installation) from website or USB key Activity starts up You can re-name the activity User specific data can be created You can force a save Activity closes properly from inside the activity You can resume the activity from the Journal You see the user specific data after resume You can close the activity from the Sugar frame an close the activity from the Sugar frame, 1. turn on the calculator. 2. type cos(sin(1)). 3. click on = button., 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, #turn on the calculator. click on 2 button. click on x^2 button. click on = button., 1. turn on the calculator. 2. click on any number. 3. click on clear button., 1. turn on the calculator. 2. click on 2 button. 3. click on log button. 4. click on = button., 1. turn on the calculator. 2. click on number 5. 3. click on - button. 4. click on number 2. 5. click on = button., 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., 1. turn on the calculator. 2. click on number 1. 3. click on tan button. 4. click on = button., 1. turn on the calculator. 2. click on 2 button. 3. click on * button. 4. click on 3 button. 5. click on = button., 1. turn on the calculator. 2. click on 2 button. 3. click on x^3 button. 4. click on = button., 1. turn on the calculator. 2. click on 1 button. 3. click on + button. 4. click on 2 button. 5. click on = button, 1. turn on the calculator. 2. type sin(cos(1)). 3. click on = button or ans button., 1. turn on the calculator. 2. click on number 2. 3. click on cos button. 4. click on = button., 1. Open the XO machine 2. Run the Calculate Activity on XO machine 3. Test invalid inputs for algebra operation 4. Test valid inputs for algebra operation. Constants are checked and used as valid inputs., 1. Open the XO machine 2. Run the calculate activity on XO machine 3. Test invalid inputs 4. Test valid inputs, 1. Open the XO machine. 2. Run the Calculate Activity on XO machine. 3. Test invalid inputs for the four arithmetic operations. 4. Test valid inputs for the four arithmetic operations., 1. turn on the calculator. 2. click on number 1. 3. click on sin button. 4.click on = button., 1. turn on the calculator. 2. click on 6 button. 3. click on / button. 4. click on 2 button. 5. click on = button., 1. turn on the calculator. 2. click on number 1. 3. click on number 6. 4. click on square root button. 5. click on = button., and 1. click on the exit button of the calculator application. 2. check whether the application is off or not. Test setup n/a, and warning.pngEmpty strings are not accepted. Test subcategory Calculate  +, calculate  +, and addition  + Test tools n/a  +, calculator and numbers  +, calculater and numbers  +, and calculator an dnumbers  +