Requirement Traceability:
Requirement
4
Purpose:
Verify that user can restart
the current level.
Procedure:
1. Follow the steps below:
Test
Data:
|
Action |
Input |
Expected Output |
|
Start Sokoban game |
|
The program will begin
with the opening graphics sequence and display the main menu. |
|
Click on the New Solo Game button |
|
The single player game
begins on the first level with “Level 1” displayed in the Level Name
field on the right side of the application window. The level has one crate and one incinerator. Score, Moves, Pushes,
and Crates Incinerated are all set to 0. The timer, starting at 0, is continually counting upward. |
|
Press
the UP directional button twice |
|
The robot moves up two
spaces. The Moves field now
reads 2. |
|
Press the RIGHT
directional button two times |
|
The robot moves to the
right three spaces. The Moves
field now reads 4. |
|
Press the DOWN button two
times |
|
The robot pushes the crate down two spaces. The crate is now against the bottom of the
screen The Moves field now
reads 18 and the Pushes field now reads 12. |
|
Press the RIGHT
directional button eight times |
|
The robot moves to the
right eight spaces. The crate also
moves when it is pushed by the robot.
The Moves field now reads 14.
The Pushes field now reads 6. |
|
Press the Up directional
button once |
|
The robot moves up one
space. The Moves field now
reads 15. |
|
Press the RIGHT
directional button once |
|
The robot moves one space
to the right. The Moves field
reads 16. |
|
Press the DOWN button six
times |
|
The robot pushes the crate down six spaces, one
space away from the incinerator. The Moves
field now reads 22. The Pushes
field now reads 12. The Score
field reads 0. The Crates Incinerated Field reads 0. Level Name
reads Level 1. |
|
Press the Restart button |
|
The field’s, Time, Score, Pushes, Crates
Incinerated, and Moves are all read 0. The robot and the crate are back to the positions they were at
when the level was first started. The
Level field reads Level 1. |
|
Click Game|Exit |
|
The program terminates. |