Test Case 21

Requirement Traceability:

 

Requirement 18, 19, 36, 43, 46

 

Purpose:

Verify the user can load a previously created level.

 

Procedure:

 

     1.  Run Test Case 19.
     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 Level Editor button

 

The level editor loads with an empty level ready for the user to begin designing a level

Click on the wall button

 

The wall icon becomes selected.

Click on the map

 

A wall is placed and visible on the map.

Select Level | Load Level

 

The level is cleared and all squares are empty.

Enter a name for the level

 test1

The level name is visible in the dialog box.

Select Level | Save Level

 

The level save dialog is displayed.

Enter a name for the level

 test3

The level name is visible in the dialog box.

Press Enter

 

The level save dialog is no longer visible and the level is saved.

Select Level | Exit

 

The program returns to the main menu.

Select Game | Exit

 

The program terminates.

Inspect test3.lvl

 

The level file contains all 0's except for the locations where a wall, crate, incinerator and robot were placed.