Test Case 23

Requirement Traceability:

 

Requirement 16, 17

 

Purpose:

Verify the user can send and receive chat messages in multiplayer.

 

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 New Multiplayer Game

 

The New Multiplayer Game dialog box is displayed.

Click Host Game

 

The Host new multiplayer game dialog box is displayed.

Type a user name

 server

The user name "server" appears in the User Name field.

Click the Start button

 

The waiting to start dialog is displayed.

Start a second Sokoban game

 

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

Click on New Multiplayer Game

 

The New Multiplayer Game dialog box is displayed.

Click on Join Game

 

The join game dialog box is displayed.

Type a user name

 Player2

The user name "join" appears in the User Name field.

Press the TAB key

 

The Connect IP field gains focus.

Type the connect ip

 localhost

The address "localhost" appears in the Connect IP field.

Click the Join button   The waiting to start dialog is displayed.
Press ALT-TAB   The host program is brought to the foreground.
Click the Start Game button The game is started in both programs.

Click on the chat text field

 

The chat text field gains focus.

Type a message hello The chat text field contains "hello."
Click the Send button   The chat text field is cleared.  The message appears in the chat box proceeded by the username "server(Host)."
Press ALT-TAB   The join program is brought to the foreground.

Click on the chat text field

 

The chat text field gains focus.

Type a message hello The chat text field contains "hello."
Click the Send button   The chat text field is cleared.  The message appears in the chat box proceeded by the username "Player2."
Select Game | Exit   The join program terminates.
Copy text from chat box   The text from the chat box is copied to the clipboard.
Save text into file "chatlog.txt"   The text is saved to the file "chatlog.txt".

Select Game | Exit

 

The program terminates.

Inspect chatlog.txt

 

The first line contains "server(Host): hello"

The second line contains "Player2: hello"