Test Case 12

Requirement Traceability:

 

Requirement 2

 

Purpose:

Verify the user is able to replay all previous moves.

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 Instant Replay button

 

The Time field is paused and the robot and crate are placed at their level starting positions. The robot replays every move made (see above steps) up to the point where instant replay was used.  The user then regains control of the robot and the Time field starts counting again from where it was paused.