Tests/BlockParty: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 33: Line 33:
Actions:
Actions:
# start the Block Party activity by clicking on the corresponding icon on the taskbar.
# start the Block Party activity by clicking on the corresponding icon on the taskbar.

Verify:
Verify:
* that the Block Party icon is added to the activity doughnut.
* that the Block Party icon is added to the activity doughnut.
Line 45: Line 46:
# click the X button in the top right corner.
# click the X button in the top right corner.
# you can use as well the shortcuts (ctrl+q) or (ctrl+esc) to quit the activity
# you can use as well the shortcuts (ctrl+q) or (ctrl+esc) to quit the activity

Verify:
Verify:
* that clicking the X button (or using keyboard shortcuts) closes the Block Party activity.
* that clicking the X button (or using keyboard shortcuts) closes the Block Party activity.
Line 59: Line 61:
* Clicking on the journal entry restores the activity to an appropriate state.
* Clicking on the journal entry restores the activity to an appropriate state.


==Piece Generation==
== Activity functionality ==
Justification:


Actions:
# start a new game.
# drop piece.

Verify:
* A random piece is spawned at the top of the well.
* A random piece is generated in the next piece window.
* When the piece is dropped, the next piece spawned is the one from the next piece window.

==Piece Movement==
Justification:

Actions:
# move the piece left and right using the arrow keys or arrow pad.
# rotate the piece using the up arrow or up pad direction.
# drop the piece using the space key or down pad direction.

Verify:
* Tetromino moves accordingly to the key pressed if it can.
* Tetromino rotates in the same direction whenever rotated if it can.
* O-piece tetromino doesn't rotate at all.
* Tetromino doesn't move/rotate through existing blocks or walls/floor.
* Tetromino falls at a set rate depending on the level of speed, regardless of actions taken, until it cannot fall anymore.

==Final Sliding==
Justification:

Actions:
# move the piece left or right if it can when the piece is resting on a block or floor.
# rotate the piece if it can when the piece is resting on a block or floor.

Verify:
* Piece can still be moved/rotated for a specific amount of time depending on the level if it can.
* Points are awarded once the piece is fixed based on how long the piece has been falling.

==Line Completion==
Justification:

Actions:
# place a piece so that it completely fills a line/s horizontally.

Verify:
* The line/s disappear.
* All blocks above the line/s are shuffled down.
* The line/s score increments by the number completed.
* Points are awarded for the piece.

==Game Over==
Justification:

Actions:
# Fill the well with blocks, so a new piece spawned collides with existing blocks.

Verify:
* If the newly spawned piece collides with existing blocks, that the game is over.


[[category:tests]]
[[category:tests]]

Revision as of 23:48, 20 March 2008

Block Party 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 X in the upper-right-hand corner of the activity.
The activity closes properly. fail: No X icon on screen
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. pass
Activity functionality: functional tests.
Additional tests will be placed here soon -

Opening the activity

Justification: HIG

Actions:

  1. start the Block Party activity by clicking on the corresponding icon on the taskbar.

Verify:

  • that the Block Party icon is added to the activity doughnut.
  • that the Block Party icon pulses to indicate the activity starting up.
  • that the Block Party activity starts properly.
  • that the window shows a new game screen and the game is paused.

Close the activity

Justification: HIG

Actions:

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

Verify:

  • that clicking the X button (or using keyboard shortcuts) closes the Block Party activity.
  • that the Block Party icon disappears from the activity doughnut.

Journal functionality

Justification: HIG

Actions:

  1. open the journal activity.

Verify:

  • A journal entry for the previous activity session appears.
  • Clicking on the journal entry restores the activity to an appropriate state.

Piece Generation

Justification:

Actions:

  1. start a new game.
  2. drop piece.

Verify:

  • A random piece is spawned at the top of the well.
  • A random piece is generated in the next piece window.
  • When the piece is dropped, the next piece spawned is the one from the next piece window.

Piece Movement

Justification:

Actions:

  1. move the piece left and right using the arrow keys or arrow pad.
  2. rotate the piece using the up arrow or up pad direction.
  3. drop the piece using the space key or down pad direction.

Verify:

  • Tetromino moves accordingly to the key pressed if it can.
  • Tetromino rotates in the same direction whenever rotated if it can.
  • O-piece tetromino doesn't rotate at all.
  • Tetromino doesn't move/rotate through existing blocks or walls/floor.
  • Tetromino falls at a set rate depending on the level of speed, regardless of actions taken, until it cannot fall anymore.

Final Sliding

Justification:

Actions:

  1. move the piece left or right if it can when the piece is resting on a block or floor.
  2. rotate the piece if it can when the piece is resting on a block or floor.

Verify:

  • Piece can still be moved/rotated for a specific amount of time depending on the level if it can.
  • Points are awarded once the piece is fixed based on how long the piece has been falling.

Line Completion

Justification:

Actions:

  1. place a piece so that it completely fills a line/s horizontally.

Verify:

  • The line/s disappear.
  • All blocks above the line/s are shuffled down.
  • The line/s score increments by the number completed.
  • Points are awarded for the piece.

Game Over

Justification:

Actions:

  1. Fill the well with blocks, so a new piece spawned collides with existing blocks.

Verify:

  • If the newly spawned piece collides with existing blocks, that the game is over.