Tests/Implode
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 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 |
Opening the activity
Justification: HIG, The activity opens correctly and conforms to the OLPC Human Interface Guidelines.
Actions:
- 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:
- switch to the Activity tab.
- click the Stop button in the top right corner.
- 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:
- open the journal activity.
- select the an Implode activity from the list of activities.
- 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:
- set the screen to black and white mode.
Verify:
- The game can still be viewed and played.
Actions:
- 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:
- select the game difficulty from one of the three difficulty buttons.
- 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.
Select the difficulty
Justification: A new difficulty setting can be selected.
Actions:
- select a difficulty button.
- click the new game button.
- for each difficulty check that a valid game has been created with roughly the correct number of blocks for the difficulty setting.
- 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:
- 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.
- 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:
- 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.
- 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:
- select at least three blocks that are the same colour and are directly next to each other in either the verticle or horizontal positions.
- 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:
- click on the new game button to create a new instance of a game.
- make a note of how the blocks are laid out in the block selection area.
- select some blocks so that they disappear so that the game does not look the same as when it was started.
- 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:
- click on any selectable group of blocks.
- click the undo button.
Verify:
- the valid selection of blocks is undone and the group of blocks is returned to there previous state.
Actions:
- click on the new game button.
- click the undo button.
Verify:
- Nothing happens to the block selection area.
Actions:
- complete a game so that the smiley face shows on the screen.
- click the undo button.
Verify:
- nothing happens.
Redo a move
Justifiction: That a valid selection that has been undone can be redone.
Actions:
- click on a selectable group of blocks.
- click the undo button.
- 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.