Test Case 19

Requirement Traceability:

 

Requirement 18-23, 43, 46

 

Purpose:

Verify the user can create and save a new level

 

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 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 in 2 different places

 

2 walls are placed and visible on the map.

Click on the crate button

 

The crate icon becomes selected.

Click on the map

 

An crate is placed and visible on the map.

Click on the incinerator button

 

The incinerator icon becomes selected.

Click on the map

 

An incinerator is placed and visible on the map.

Click on the robot button

 

The robot icon becomes selected.

Click on the map

 

An robot is placed and visible on the map.

Click on the empty square button

 

The empty square icon becomes selected.

Click on a wall on the map

 

The wall disappears and becomes an empty square.

Select Level | Save Level

 

The level save dialog is displayed.

Enter a name for the level

 test1

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 test1.lvl

 

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