Test Case 2

Requirement Traceability:

Requirement 6

Purpose:

  1. Verify that the users can load a previously saved game.

Procedure:

       Run Test Case number 1 and then 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.

Click Game | Load Game

 

A dialog box asking you if you want to quit the current game is displayed.

Click Yes

 

The Load Game menu appears with possible saved games to select from.

Select “A testSave” and then click Load.

 

The Load Game menu disappears and the saved game is loaded. With the Score and Crates Incinerate fields both reading 0, the Moves field reading 27, the Pushes field reading 19, and the Level Name field reads Level 1.  The crate is in the bottom left corner of the screen and the robot is directly to the right of it.

Press the Undo button in the bottom right side of the application window three times

 

The robot and the crate move to the right one space each.  The Moves field now reads 24 and the Pushes field now reads 16.

Click Game | Save Game

 

The Save Game window opens.  “A testSave” is saved in slot number 1.

 

 

Click on the radio button next to slot number two

 

Slot2 is selected.

Click on the text field labeled “Enter New Description” and enter save game name

Another testSave

The text field reads “Another testSave”.

Click the Ok button

 

The Save Game window closes and returns to the game screen.  The system creates GAME1.sav

Click End Game

 

A dialog box asking you if you want to end the current game is displayed.

Click Yes

 

The main menu is displayed.

Click Game | Exit

 

The application closes.

Inspect GAME1.sav

 

The first line of the file reads “Another testSave”

The second line of the file reads “Level 1”