Tests/Implode

From OLPC

Jump to: navigation, search
It has been suggested that this article or section be merged with Tests/Activity/Implode. (Discuss)

Contents

Implode Tests

Test results from March 2008

Action Result
Opening the activity: click on the activity icon.
The icon appears in the activity donut, and pulses during activity startup. pass
The activity opens properly. pass
Closing the activity: click the stop button in the upper-right-hand corner of the activity.
The activity closes properly. pass
The icon disappears from the activity donut. pass
Journal functionality: open the journal activity.
A journal entry for the previous activity session appears. pass
Clicking on the journal entry restores the activity to an appropriate state. fail: A new game is created instead of restoring the previously keep game from the journal.
Black and white functionality: set the screen to black and white mode.
The game is still easily viewable and playable in black and white mode. fail: Green blocks disappear into the background and are not visible in black and white mode.
The game is still easily viewable and playable in colour mode. pass
New game: a new game is shown.
A new random game is generated with the correct difficulty pass
Select the difficulty: test that a new game is created with the correct difficulty setting.
a new game is created with the correct difficulty setting. pass
Block selection: test which groups of block selections are valid.
Non selectable blocks do nothing when clicked. pass
Selectable blocks disappear as expected when clicked. pass
Replay a game: test that the game is returned to its original start state.
The game is returned to the same state as when it was created. pass
Undo a move: Test that the last valid block selection is undone. Test that invalid boundary cases do nothing.
The valid selection of blocks is undone and the group of blocks is returned to there previous state. pass
When there is nothing to undo nothing happens. fail: When a game is completed the game is reset to it's previous state. This should not happen if the game has been finished.
Redo a move: That a valid selection that has been undone can be redone.
the previous undo operation has been undone. pass
no new blocks are added or removed in the process of the redo operation. pass
Finish a game: Test that a game finishes correctly for all difficulty levels.
you are greeted with a smiley face once all the blocks have been removed and it is not currupted in any way. pass
you can click the difficulty and new game button once finished and a new game is created and the smiley face is removed. fail: If you click on the new game button before the smiley face has finished forming the smiley face is not removed when a new game is created.


Opening the activity

Justification: HIG, The activity opens correctly and conforms to the OLPC Human Interface Guidelines.

Actions:

  1. start the Implode activity by clicking on the corresponding icon on the taskbar.

Verify:

  • that the Implode icon is added to the activity doughnut.
  • that the Implode icon pulses to indicate the activity starting up.
  • that the Implode activity starts properly.
  • that the window shows a new board and the game tab is selected.


Close the activity

Justification: HIG, The activity closes correctly.

Actions:

  1. switch to the Activity tab.
  2. click the Stop button in the top right corner.
  3. you can use as well the shortcuts (ctrl+q) or (ctrl+esc) to quit the activity

Verify:

  • that clicking the Stop button closes the Implode activity.
  • that the Implode icon disappears from the activity doughnut.


Journal functionality

Justification: HIG, The activity can be resumed from the journal.

Actions:

  1. open the journal activity.
  2. select the an Implode activity from the list of activities.
  3. resume the Implode activity by doing one of the following:
    • click on the 'direct launcher' button to the right side of the entry.
    • click on the entry and use the "Resume" button to resume the entry with the desired activity.
    • click on the Implode activity icon.

Verify:

  • A journal entry for the previous activity session appears.
  • Clicking on the journal entry restores the activity to an appropriate state. ie the activity should look like the image found in the journal when an implode activity is selected.


Black and white functionality

Justification: HIG, The game can be viewed and played in black and white mode.

Actions:

  1. set the screen to black and white mode.

Verify:

  • The game can still be viewed and played.

Actions:

  1. set the screen to colour mode.

Verify:

  • The game can still be viewed and played.


New game

Justification: A new game is created using the correct difficulty.

Action:

  1. select the game difficulty from one of the three difficulty buttons.
  2. click the new game button.

Verify:

  • the previous game is removed.
  • a new randomly generated game is displayed in the block selection area.
  • the correct game is formed based on the difficulty selection.
  • the game can be solved.

Select the difficulty

Justification: A new difficulty setting can be selected.

Actions:

  1. select a difficulty button.
  2. click the new game button.
  3. for each difficulty check that a valid game has been created with roughly the correct number of blocks for the difficulty setting.
  4. repeat this process for all difficulty buttons.

Verify:

  • for the easy difficulty a valid game has been created and there are fewer blocks than the other difficulty levels.
  • for the medium difficulty check that a valid game has been created and the number of blocks is between the easy difficulty and the hard difficulty.
  • for the hard difficulty check that a valid game has been created and the number of blocks is greater than the other two difficuly settings.


Block selection

justification: Test which groups of block selections are valid. Blocks are divided into two categories, those that can be selected and those that can not be selected.

NOTE: The currently selected block is shown with a white dot in the center of it. This does not sometimes correspond to where the mouse is if the mouse is outside the block selection area. When the mouse is clicked it is the block with the white dot in it that is acted upon. This is also true of empty spaces within the block selection area.

Non selectable blocks

Actions:

  1. move the mouse over any single block that is not directly next to any other block of the same colour both in the verticle and horizontal positions and click on it. ie blocks that are on a diagonal and are the same colour or single blocks.
  2. click the block.

Verify:

  • there is no white border around the block as the mouse moves over it.
  • clicking the block does not remove the block or any surrounding blocks.


Actions:

  1. move the mouse over two blocks that are the same color and are directly next to each other in either the verticle or horizontal positions.
  2. click either one of the blocks.

Verify:

  • there is no white border around the block as the mouse moves over it.
  • clicking the block does not remove the block or any surrounding blocks.


Selectable blocks

Actions:

  1. select at least three blocks that are the same colour and are directly next to each other in either the verticle or horizontal positions.
  2. click one of the blocks within the test group of blocks.

Verify:

  • when the mouse is hovered over the blocks there is a white border shown around all the connected blocks that are selectable within this group of blocks.
  • when clicked the blocks disappear and the blocks directly above slide down and then if possible slide to the left if a gap has formed vertically where the group of blocks used to be.
  • there is no empty space between blocks.


Replay a game

Justification: The game is returned to a state that is the same as when the game was created.

Actions:

  1. click on the new game button to create a new instance of a game.
  2. make a note of how the blocks are laid out in the block selection area.
  3. select some blocks so that they disappear so that the game does not look the same as when it was started.
  4. click on the replay button.

Verify:

  • after clicking the replay button that the game now looks the same as when it was started.
  • there is no empty spaces between any of the blocks.


Undo a move

Justifiction: Test that the last valid block selection is undone. Test that invalid boundary cases do nothing.

Actions:

  1. click on any selectable group of blocks.
  2. click the undo button.

Verify:

  • the valid selection of blocks is undone and the group of blocks is returned to there previous state.

Actions:

  1. click on the new game button.
  2. click the undo button.

Verify:

  • Nothing happens to the block selection area.

Actions:

  1. complete a game so that the smiley face shows on the screen.
  2. click the undo button.

Verify:

  • nothing happens.


Redo a move

Justifiction: That a valid selection that has been undone can be redone.

Actions:

  1. click on a selectable group of blocks.
  2. click the undo button.
  3. click the redo button.

Verify:

  • the previous undo operation has been undone and the blocks are returned to there previous state before the undo.
  • no new blocks are added or removed in the process of the redo operation.


Finish a game

Justification: Test that a game finishes correctly for all difficulty levels.

Actions:

  1. select a difficulty level.
  2. click the new game button.
  3. click on valid groups of blocks until there are no more blocks.
  4. repeat for all difficulty levels.

Verify:

  • you are greeted with a smiley face that is not currupted in any way once all the blocks have been removed.
  • you can click the difficulty and new game button once a game is finished and a new game is created and the smiley face is removed.
  • the undo and redo buttons do nothing.
Personal tools
  • Log in
  • Login with OpenID
About OLPC
About the laptop
About the tablet
Projects
OLPC wiki
Toolbox
In other languages