Requirement Traceability:
Requirement 12
Purpose:
Procedure:
Delete
the “save”
directory if it exists.
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 solo 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 is continually counting upward. |
|
Press
the UP directional button once |
|
The robot moves up one space. The Moves field now reads 1. |
|
Press the RIGHT directional button five times |
|
The robot moves to the right five spaces and is directly
above the crate. The Moves
field now reads 6. |
|
Press the DOWN button twelve times |
|
The robot pushes the crate down twelve
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 once |
|
The robot moves to the right one space. The Moves field now reads 19. |
|
Press the DOWN directional button once |
|
The robot moves down one space and is directly to the
right of the crate. The Moves
field now reads 20. |
|
Press the LEFT directional button seven times |
|
The robot pushes the crate seven spaces to the left. The crate is now in the bottom left corner
of the screen with the robot directly to its right. The Moves field reads 27, the Pushes field reads
19. The Crates Incinerated and
Score fields both read 0. |
|
Click Game | Save Game |
|
Save Game window opens up and displays
fifteen save slots to choose from. |
|
Click on the radio button next to the first slot. |
|
Slot1 becomes selected. |
|
In
the text field labeled “Enter New Description” type in save game name |
A testSave |
The text field reads “A testSave” |
|
Click the Ok button |
|
The Save Game menu closes and returns to the game screen. The system creates GAME0.sav. |
|
Click End Game |
|
A
dialog box asking you if you want to end the game is displayed |
|
Click the Yes button |
|
The main menu is displayed |
|
Click Game | Exit |
|
The application closes. |
|
Inspect GAME0.sav |
|
The first line of the file reads “A
testSave” The second line of the file reads
“Level 1” |