Test Case 22

Requirement Traceability:

 

Requirement 8, 45

 

Purpose:

Verify the user add a high score and view the high scores list.

 

Procedure:

 

     1.  Delete the "scores.dat" file if it exists
     2.  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 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 RIGHT direction button 10 times

 

The robot moves right 10 spaces.  The Moves field reads 10.

Press the UP direction button 1 time

 

The robot moves up 1 space.  The Moves field reads 11.

Press the RIGHT direction button 1 time

 

The robot moves right 1 space.  The Moves field reads 12.

Press the DOWN direction button 7 times

 

The robot moves down 7 spaces.  The Moves field reads 19.  The crate is incinerated and the level is completed.

Press the Enter key

 

The next level is loaded.

Click on the End Game button

 

The end game dialog is displayed.

Click on the Yes button

 

The add high score dialog is displayed requesting the user's name.

Type a user name

 bob

The default name "Player" is replaced by the name bob.

Press the OK button

 

The add high score dialog is removed and the program returns to the main menu.

Click the View High Scores button

 

The High Scores list is displayed.

Select Game | Exit

 

The program terminates.

Inspect scores.dat

 

The first line contains "bob 81"