Test Case 4

Requirement Traceability:

Requirements 14 and 15

Purpose:

  1. Verify that two computers can engage in a multiplayer game.

Procedure:

For the following test case, words in italic refer to the hosting computer and underlined words refer to the client computer.  Regular typing applies to both machines.

Follow the steps below:
 

Test Data:
 

Action

Input

Expected Output

Start Sokoban game

 

Start Sokoban game

 

 

The program will begin on both machines with the opening graphics sequence and display the main menu.

Click on the New Multiplayer Game button on the main menu

 

Click on the multiplayer button on the main menu

 

The New Multiplayer Game Menu is displayed. 

 

The New Multiplayer Game Menu is displayed.

Click on the Host a Game button.

 

Click on the Join a Game button.

 

The Host Setup menu is displayed.

 

The Join Game menu is displayed.

Click on Level 1 in the Select Level box on the right hand side of dialog box

 

 

 

Level 1 is selected as the level to begin on.

In the User Name field, enter your player name

Player1

Player1 is entered as the User Name.

In the Connect Port field, enter your port number

1234

1234 is entered as the Connect Port.

Click on the Start button

 

The program displays the Waiting for Players box and is waiting for other players to join.  Player1 is the first name on the Players Connected list

In the User Name field, enter your player name

Player2

Player2 is entered as the User Name.

In the Port field, enter your port

1234

1234 is entered as the Port.

In the Connect IP (Get this # from the Host) field enter the hosting computer’s IP address

Enter whatever the hosting computer’s IP address is (varies for every computer)

The hosting computer’s IP address is entered as the Connect IP.

Click on the Join button

 

The Waiting for Host to Start Game dialog box appears and connects to the server.

 

Player2 appears second on the Users list

Click on the Start Game button

 

The multiplayer game begins

 

The multiplayer game begins for both machines 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, one incinerator, and one other robot.  Score, Moves, Pushes, and Crates Incinerated are all set to 0.  The timer is continually counting upward.

Press the UP directional button

 

Player1’s robot moves up one space and the Moves field now reads 1.

 

Player1’s robot moves up one space.

Press the DOWN directional button

 

Player2’s robot moves down one space and the Moves field now reads 1.

 

Player2’s robot moves down one space.

Press the DOWN directional button

 

Player1’s moves down one space and the Moves field now reads 2.

 

Player1’s robot moves down one space.

Press the UP directional button

 

Player2’s robot moves up one space and the Moves field now reads 2.

 

Player2’s robot moves up one space.

Press the LEFT directional button

 

Player1’s robot moves left one space and the Moves field now reads 3.

 

Player1’s robot moves left one space.

Press the RIGHT directional button

 

Player2’s robot moves right one space and the Moves field now reads 3.

 

Player2’s robot moves right one space.

Press the RIGHT directional button

 

Player1’s robot moves right one space and the Moves field now reads 4.

 

Player1’s robot moves right one space.

Press the LEFT directional button

 

Player2’s robot moves left one space and the Moves field now reads 4.

 

Player2’s robot moves left one space.

Press Game | End Game

 

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

Click Yes

 

The Main Menu is displayed.

 

A dialog box is displayed saying that the connection to the host was lost.

 

Press Ok

 

The level is still displayed but the other player’s robot is no longer on the map.

Press Game | End Game

 

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

Click Ok

 

The Main Menu is displayed.

Press Game | Exit

 

Press Game | Exit

 

The Sokoban game closes.

 

The Sokoban game closes.