Tests/Activity/TurtleArt
From OLPC
This Turtle Art page is an amalgamation of test of the Turtle Art feature tests. Most of the tests date from 2009.
Contents |
[edit] Turtle Art Tests
Test case: TurtleArt Activity
How to report results
| Stream | Any | ||
|---|---|---|---|
| Category | Activity | Sub-category | TurtleArt |
| Component | Turtle Art | ||
| Feature | http://wiki.laptop.org/go/Turtleart | ||
| Objective | basic functional testing | ||
| Tools | n/a | ||
| Setup | n/a | ||
| Procedure | # Activity installs from download (if not part of default installation) from website or USB key
| ||
| Expected Results and Pass Criteria | The first time you run Turtle Art, it takes about 30 seconds to load. You'll see a mostly blank screen after the initial flashing of the icon. Subsequently, the loading time is ~5 seconds (on an OLPC-XO-1 laptop).
When you click on the print brick as per the procedures above, you should see the mic light flash on (on an OLPC-XO-1 laptop) and the current volume displayed in the lower-left corner of the screen. | ||
| Comments | warning.pngEmpty strings are not accepted. | ||
| Release | Stream | Build | Pass/Fail | Trac Ticket(s) | Comment(s) | Date of Test |
|---|---|---|---|---|---|---|
| Candidate | 8.2 | 763 | Pass | turtleart-26 | 2009/01/04
|
[edit] Turtle Art Boolean Logic Tests 2
Test case: Boolean Logic 2
How to report results
| Stream | |||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Category | Activity | Sub-category | TurtleArt | ||||||||||||||||||||||||||||||||||||||||||||
| Component | TurtleArt | ||||||||||||||||||||||||||||||||||||||||||||||
| Feature | http://wiki.laptop.org/go/Turtleart | ||||||||||||||||||||||||||||||||||||||||||||||
| Objective | Tests AND, OR and NOT blocks. | ||||||||||||||||||||||||||||||||||||||||||||||
| Tools | None | ||||||||||||||||||||||||||||||||||||||||||||||
| Setup | --
| ||||||||||||||||||||||||||||||||||||||||||||||
| Procedure | Test Procedure (repeat for all test values below):
For a 'true' block, place an 'Equals' block on the field with the numbers '100' and '100'. For a 'false' block, place an 'Equals' block on the field with the numbers '100' and '1'.
Test Values:
| ||||||||||||||||||||||||||||||||||||||||||||||
| Expected Results and Pass Criteria | The direction of movement by the turtle matches each direction specified in the test values table. | ||||||||||||||||||||||||||||||||||||||||||||||
| Comments | Rationale:
| ||||||||||||||||||||||||||||||||||||||||||||||
| Release | Stream | Build | Pass/Fail | Trac Ticket(s) | Comment(s) | Date of Test |
|---|---|---|---|---|---|---|
| 8.2.0 (767) | warning.png"" cannot be used as a page name in this wiki. | 45 | Pass | All logic operators work as expected. | 2009/03/29
|
[edit] Turtle Art Arithmetic Tests
Test case: Arithmetic
How to report results
| Stream | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Category | Activity | Sub-category | TurtleArt | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Component | TurtleArt | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Feature | http://wiki.laptop.org/go/Turtleart | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Objective | Tests basic arithmetic operations | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Tools | None | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Setup | --
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Procedure | Test Procedure (repeat for all test values below):
Test Values:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Expected Results and Pass Criteria | All outputs from the 'print' command match the expected values listed in the table. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comments | Assumptions:
Rationale
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Release | Stream | Build | Pass/Fail | Trac Ticket(s) | Comment(s) | Date of Test |
|---|---|---|---|---|---|---|
| 8.2.0 (767) | warning.png"" cannot be used as a page name in this wiki. | 45 | Fail | Failures:
| 2009/03/29
|
[edit] Turtle Art Movement Tests
Test case: Movement
How to report results
| Stream | |||
|---|---|---|---|
| Category | Activity | Sub-category | TurtleArt |
| Component | TurtleArt | ||
| Feature | http://wiki.laptop.org/go/Turtleart | ||
| Objective | Tests basic turtle movement | ||
| Tools | None | ||
| Setup | warning.pngEmpty strings are not accepted. | ||
| Procedure | [NOTE: Each block should be connected immediately below the previous block]
| ||
| Expected Results and Pass Criteria | Confirm that the drawing surface:
| ||
| Comments | Rationale:
| ||
| Release | Stream | Build | Pass/Fail | Trac Ticket(s) | Comment(s) | Date of Test |
|---|---|---|---|---|---|---|
| 8.2.0 (767) | warning.png"" cannot be used as a page name in this wiki. | 45 | Fail | Failures
These results are traced to steps 11 and 12: when the turtle is moved off the screen by a large number and then instructed to come back by the same amount, it doesn't come back. Using the 'print' block to show the x or y co-ordinate will print the expected value and the turtle then returns to that position upon executing the print command. Also, clicking the 'clear' button immediately after running the test sequence does not recenter the turtle at (0, 0) however using the 'setyx' command works as expected. | 2009/03/29
|
[edit] Turtle Art Boolean Logic 1 Tests
Test case: Boolean Logic 1
How to report results
| Stream | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Category | Activity | Sub-category | TurtleArt | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Component | TurtleArt | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Feature | http://wiki.laptop.org/go/Turtleart | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Objective | Tests 'Greater Than', 'Less Than' and 'Equals' functional blocks. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Tools | None | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Setup | --
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Procedure | Test Procedure (repeat for all test values below):
Test Values:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Expected Results and Pass Criteria | --
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comments | Rationale:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Release | Stream | Build | Pass/Fail | Trac Ticket(s) | Comment(s) | Date of Test |
|---|---|---|---|---|---|---|
| 8.2.0 (767) | warning.png"" cannot be used as a page name in this wiki. | 45 | Pass | All blocks exhibit the expected behavior | 2009/03/29
|
| Build number | 763 +, and 45 + |
| Build stream | Any +info.pngLink to builds in stream, Packages in stream, ChangeLog, Differences vs joyride , 8.2 +info.pngLink to builds in stream, Packages in stream, ChangeLog, Differences vs joyride , and warning.png"" cannot be used as a page name in this wiki. |
| Comments | turtleart-26, All logic operators work as expected., Failures:
|
| Created | 4 January 2009 +, and 29 March 2009 + |
| More notes | warning.pngEmpty strings are not accepted. , Rationale:
Rationale
|
| Pass criteria | The first time you run Turtle Art, it take … The first time you run Turtle Art, it takes about 30 seconds to load. You'll see a mostly blank screen after the initial flashing of the icon. Subsequently, the loading time is ~5 seconds (on an OLPC-XO-1 laptop).
When you click on the print brick as per the procedures above, you should see the mic light flash on (on an OLPC-XO-1 laptop) and the current volume displayed in the lower-left corner of the screen. ed in the lower-left corner of the screen., The direction of movement by the turtle matches each direction specified in the test values table., All outputs from the 'print' command match the expected values listed in the table., Confirm that the drawing surface:
<table border="1" cellspacing="0"> … -- <table border="1" cellspacing="0"> <tr><th>Block</th><th>'Equal' Partition</th><th>'Left > Right' Partition</th><th>'Left < Right' Partition</th></tr> <tr><td>">" </td><td>down </td><td>up </td><td>down</td></tr> <tr><td>"<" </td><td>down </td><td>down </td><td>up</td></tr> <tr><td>"=" </td><td>up </td><td>down </td><td>down</td></tr> </table> ;down</td></tr> </table> |
| PassFail | Pass +, and Fail + |
| Short name | TurtleArt Activity +, Boolean Logic 2 +, Arithmetic +, Movement +, and Boolean Logic 1 + |
| Software release | Candidate +, and 8.2.0 (767) + |
| System component | Turtle Art +, and TurtleArt + |
| System feature | http://wiki.laptop.org/go/Turtleart + |
| Test category | Activity + |
| Test objective | basic functional testing +, Tests AND, OR and NOT blocks. +, Tests basic arithmetic operations +, Tests basic turtle movement +, and Tests 'Greater Than', 'Less Than' and 'Equals' functional blocks. + |
| Test procedure | # Activity installs from download (if not … # Activity installs from download (if not part of default installation) from website or USB key
For a 'true' block, place an 'Equals' block on the field with the numbers '100' and '100'. For a 'false' block, place an 'Equals' block on the field with the numbers '100' and '1'.
Test Values: <table border="1" cellspacing="0"> <tr><th>#</th><th>Left Truth Value</th><th>Right Truth Value</th><th>Expected Movement Direction</th></tr> <tr><td colspan="4">[AND]</td></tr> <tr><td>1.</td><td>False</td><td>NOT True</td><td>down</td></tr> <tr><td>2.</td><td>True</td><td>False</td><td>down</td></tr> <tr><td>3.</td><td>False</td><td>NOT false</td><td>down</td></tr> <tr><td>4.</td><td>True</td><td>True</td><td>up</td></tr> <tr><td colspan="4">[OR]</td></tr> <tr><td>5.</td><td>False</td><td>NOT True</td><td>down</td></tr> <tr><td>6.</td><td>True</td><td>False</td><td>up</td></tr> <tr><td>7.</td><td>False</td><td>NOT false</td><td>up</td></tr> <tr><td>8.</td><td>True</td><td>True</td><td>up</td></tr> </table> gt;up</td></tr> </table>, Test Procedure (repeat for all test values … Test Procedure (repeat for all test values below):<br />
Test Values: <table border="1" cellspacing="0"> <tr><th>#</th><th>Top Value</th><th>Bottom Value</th><th>Expected Result</th></tr> <tr><td colspan="4">[Addition]</td></tr> <tr><td>1.</td><td>23.2</td><td>12.3</td><td>135.5</td></tr> <tr><td>2.</td><td>-32.4</td><td>2.8</td><td>70.4</td></tr> <tr><td>3.</td><td>5.6</td><td>-9.8</td><td>95.8</td></tr> <tr><td>4.</td><td>-07</td><td>-2</td><td>91.0</td></tr> <tr><td>5.</td><td>0.0</td><td>3.5</td><td>103.5</td></tr> <tr><td>6.</td><td>4.6</td><td>0.0</td><td>104.6</td></tr> <tr><td>7.</td><td>0.0</td><td>0.0</td><td>100.0</td></tr> <tr><td colspan="4">[Subtraction]</td></tr> <tr><td>8.</td><td>23.2</td><td>12.3 </td><td>110.9</td></tr> <tr><td>9.</td><td>-32.4</td><td>2.8 </td><td>64.8</td></tr> <tr><td>10.</td><td>5.6</td><td>-9.8</td><td>115.4</td></tr> <tr><td>11.</td><td>-07</td><td>-2</td><td>95.0</td></tr> <tr><td>12.</td><td>0.0</td><td>3.5</td><td>96.5</td></tr> <tr><td>13.</td><td>4.6</td><td>0.0</td><td>104.6</td></tr> <tr><td>14.</td><td>0.0</td><td>0.0</td><td>100.0</td></tr> <tr><td colspan="4">[Multiplication]</td></tr> <tr><td>15.</td><td>2.2</td><td>2</td><td>104.4</td></tr> <tr><td>16.</td><td>-2.4</td><td>3</td><td>92.8</td></tr> <tr><td>17.</td><td>5</td><td>-9.8</td><td>51.0</td></tr> <tr><td>18.</td><td>-07</td><td>-2</td><td>114.0</td></tr> <tr><td>19.</td><td>0.0</td><td>3.5</td><td>100.0</td></tr> <tr><td>20.</td><td>-4.6</td><td>0.0</td><td>100.0</td></tr> <tr><td>21.</td><td>0.0</td><td>0.0</td><td>100.0</td></tr> <tr><td colspan="4">[Division]</td></tr> <tr><td>22.</td><td>2.2</td><td>2</td><td>101.1</td></tr> <tr><td>23.</td><td>-2.4</td><td>3</td><td>99.2</td></tr> <tr><td>24.</td><td>5</td><td>-9.8</td><td>99.4</td></tr> <tr><td>25.</td><td>-07</td><td>-2</td><td>103.5</td></tr> <tr><td>26.</td><td>0.0</td><td>3.5</td><td>100.0</td></tr> <tr><td>27.</td><td>-4.6</td><td>0.0</td><td>Error message</td></tr> <tr><td>28.</td><td>0.0</td><td>0.0</td><td>Error message</td></tr> <tr><td colspan="4">[Modulo Values]</td></tr> <tr><td>29.</td><td>18</td><td>8</td><td>102.0</td></tr> <tr><td>30.</td><td>-2.4</td><td>3</td><td>100.6</td></tr> <tr><td>31.</td><td>5</td><td>-9.8</td><td>95.2</td></tr> <tr><td>32.</td><td>-07</td><td>-2</td><td>99.0</td></tr> <tr><td>33.</td><td>0.0</td><td>3.5</td><td>100.0</td></tr> <tr><td>34.</td><td>-4.6</td><td>0.0</td><td>Error message</td></tr> <tr><td>35.</td><td>0.0</td><td>0.0</td><td>Error message</td></tr> <tr><td colspan="4">[Square Root Values]</td></tr> <tr><td>36.</td><td colspan="2">-1 </td><td>Error message</td></tr> <tr><td>37.</td><td colspan="2">0 </td><td>100.0</td></tr> <tr><td>38.</td><td colspan="2">1 </td><td>101.0</td></tr> <tr><td>39.</td><td colspan="2">4 </td><td>102.0</td></tr> <tr><td>40.</td><td colspan="2">7 </td><td>102.6</td></tr> </table> 102.6</td></tr> </table>, [NOTE: Each block should be connected imme … [NOTE: Each block should be connected immediately below the previous block]
Test Values: <table border="1" cellspacing="0"> <tr><th>#</th><th width="80">Left</th><th width="80">Right</th></tr> <tr><td colspan="3">[Equal]</td></tr> <tr><td>1.</td><td>-999</td><td>-999</td></tr> <tr><td>2.</td><td>234</td><td>234</td></tr> <tr><td>3.</td><td>0</td><td>0</td></tr> <tr><td colspan="3">[Left > Right]</td></tr> <tr><td>4.</td><td>-34</td><td>-56</td></tr> <tr><td>5.</td><td>0</td><td>-56</td></tr> <tr><td>6.</td><td>23</td><td>-56</td></tr> <tr><td>7.</td><td>23</td><td>0</td></tr> <tr><td>8.</td><td>23</td><td>3</td></tr> <tr><td colspan="3">[Left < Right]</td></tr> <tr><td>9.</td><td>-78</td><td>-34</td></tr> <tr><td>10.</td><td>-78</td><td>0</td></tr> <tr><td>11.</td><td>-78</td><td>11</td></tr> <tr><td>12.</td><td>0</td><td>11</td></tr> <tr><td>13.</td><td>4</td><td>11</td></tr> </table> gt;11</td></tr> </table> |
| Test setup | n/a, --
|
| Test subcategory | TurtleArt + |
| Test tools | n/a +, and None + |

