Tests/Implode

From OLPC
< Tests
Revision as of 20:56, 25 March 2008 by 130.217.240.32 (talk)
Jump to: navigation, search

Implode Tests

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. fail: Green blocks disappear into the background and are not visible in black and white mode.
New game: a new game is shown.
A new random game is generated with the correct difficulty 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.



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.


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.
  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 in 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.