Mujahed Sebai
Interactive Secure Communication      
Main
University
iPIX Folder
Cover Abstract  Introduction Research Design Implementation Testing Conclusion Bibliography Class Definitions

Chapter 5: Testing 

5.1.      ISC Client Application

In this section, the result of performing the testing procedures, which were set to ensure a fully functioning client application that is ready for distribution, are listed.

5.1.1.      Sign-on Screen

Test ID

Test Procedure

Expected Result

Actual Result

5.1.1.1.

Sign-on process

Establish a connection with the ISC Server, transfer entered sign-on details, and direct to the public communication screen if the authentication was successful.

Pass

5.1.1.2.

No connection was found

Display a message stating that the connection cannot be established.

Pass

5.1.1.3.

No sign-on details were found

Display a message asking to enter the sign-on details.

Pass

5.1.1.4.

Connecting

Display a message stating that the application is attempting to connect to the server.

Pass

5.1.1.5.

Sending sign-on details

Display a message stating that the application is now sending client’s details

Pass

5.1.1.6.

Waiting for verification result

Display a message stating that the application is waiting for the verification result

Pass

5.1.1.7.

The screen-name is being used by someone else

Display a message stating that the server denied access because the screen-name used is already signed-on.

Pass

5.1.1.8.

Invalid sing-on details

Display a message stating that the server denied access because the details provided did not match.

Pass

5.1.1.9.

Exit application

Once the exit button is clicked, an ISC dialog is loaded to confirm whether or not the client wants to exit.

Pass

5.1.1.10.

Cancel exit

The application remains.

Pass

5.1.1.11.

Approve exit

The application terminates

Pass

 5.1.2.      Public Communication Screen

5.1.2.1.

The screen is loaded

Display current online users in the online users list and display the screen-name of the application user.

Pass

5.1.2.2.

Click on the send button

Transmit public message to the server.

Pass

5.1.2.3.

Hit “Enter” key after typing a public message

Transmit public message to the server after it has been encapsulated in to a “Message” object.

Pass

5.1.2.4.

A public message is received

Display message on the public communication window and update the last received message time.

Pass

5.1.2.5.

A new signed-on client

Display client’s screen-name in the online users list, update the number of clients, and display a message on the public communication window stating that a new client has been signed-on.

Pass

5.1.2.6.

Select a client listed in the online users list

The intended client is selected.

Pass

5.1.2.7.

Double click on a client listed in the online users list.

An ISC private session request is sent to the clicked client and a message stating that a request has been sent is displayed in the public communication window.

Pass

5.1.2.8.

Double click on the current application user’s screen-name listed in the online users list

Display an error message in the public communication window stating that the user can not issue a private session request to himself/herself.

Pass

5.1.2.9.

Receive a positive private session reply

Load an ISC private session window.

Pass

5.1.2.10.

Receiver a negative private session reply

Display a message in the public communication session stating that the request has been rejected by the other party.

Pass

5.1.2.11.

Incoming private session request

Load an ISC dialog to approve the request.

Pass

5.1.2.12.

Deny an incoming private session request

Issue a denial ISC command to deny the incoming request and send it to the server.

Pass

5.1.2.13.

Accept an incoming private session request

Issue an acceptance ISC command to accept the incoming request and load an ISC private session window

Pass

5.1.2.14.

Select “File Transfer” from “Options” in the menu bar without selecting a client from the online users list

Display a message stating that the user is required to select a client from the online users list before using this function.

Pass

5.1.2.15.

Select “File Transfer” from “Options” in the menu bar after selecting a client from the users list

An ISC file transfer request is sent to the selected client and a message stating that a request has been sent is displayed in the public communication window.

Pass

5.1.2.16.

Select “File Transfer” from “Options” in the menu bar after selecting the current application user from the online users list

Display an error message in the public communication window stating that the user can not issue a file transfer session request to himself/herself.

Pass

5.1.2.17.

Select “Voice Conferencing” from “Options” in the menu bar without selecting a client from the online users list

Display a message stating that the user is required to select a client from the online users list before using this function.

Pass

5.1.2.18.

Select “Voice Conferencing” from “Options” in the menu bar after selecting a client from the online users list

An ISC voice conferencing session request is sent to the selected client and a message stating that a request has been sent is displayed in the public communication window.

Pass

5.1.2.19.

Select “Voice Conferencing” from “Options” in the menu bar after selecting the current application user from the online users list

Display an error message in the public communication window stating that the user can not issue a voice conferencing session request to himself/herself.

Pass

5.1.2.20.

Incoming file transfer session request

Load an ISC dialog to approve the request.

Pass

5.1.2.21.

Deny an incoming file transfer session request

Issue a denial ISC command to deny the incoming request and send it to the server.

Pass

5.1.2.22.

Accept an incoming file transfer session request

Issue an acceptance ISC command to accept the incoming request and load an ISC file transfer session window

Pass

5.1.2.23.

Incoming voice conferencing session request

Load an ISC dialog to approve the request.

Pass

5.1.2.24.

Deny an incoming voice conferencing session request

Issue a denial ISC command to deny the incoming request and send it to the server.

Pass

5.1.2.25.

Accept an incoming voice conferencing session request

Issue an acceptance ISC command to accept the incoming request and load an ISC voice conferencing session window

Pass

5.1.2.26.

Click on the sign-off button

Load an ISC dialog to confirm action.

Pass

5.1.2.27.

Cancel sign-off

The screen remains.

Pass

5.1.2.28.

Approve sign-off

The application attempts to sign-off the system by issuing an ISC sign-off command. In addition, all private, file transfer, and voice conferencing sessions will be terminated and the sign-on screen will load.

Pass

5.1.2.29.

Attempt to close window

Load an ISC dialog to confirm action.

Pass

5.1.2.30.

Cancel exit

The screen remains.

Pass

5.1.2.31.

Approve exit

The application attempts to sign-off the system, then, the application terminates.

Pass

5.1.2.32.

Save log is clicked

The save log component is ticked and the communication log is saved to disk once the session is ended.

Pass

5.1.3.      Private Communication Screen

Test ID

Test Procedure

Expected Result

Actual Result

5.1.3.1.

Send button is clicked after a private message has been typed

The typed message will be encapsulated into a “Message” object along with other private session’s details, then, the object is transmitted.

Pass

5.1.3.2.

The “Enter” key is hit inside the message field after a private message has been typed

The typed message will be encapsulated into a “Message” object along with other private session’s details, then, the object is transmitted.

Pass

5.1.3.3.

Click on the send button and/or hit the “Enter” key with no message typed in the message field

Do nothing

Pass

5.1.3.4.

A private message is received

The message is displayed in the private session window and the last received message time is updated.

Pass

5.1.3.5.

Click on the file transfer option

A file transfer request is issued then transmitted to the other party and a message is displayed in the private window stating that a file session request was sent.

Pass

5.1.3.6.

Click on the voice conferencing option

A voice conference request is issued then transmitted to the other party and a message is displayed in the private window stating that the request was sent.

Pass

5.1.3.7.

Incoming file transfer request

An ISC command is issued to approve the request and an ISC file transfer session is loaded.

Pass

5.1.3.8.

Incoming voice conferencing request

An ISC command is issued to approve the request and an ISC voice conferencing session is loaded.

Pass

5.1.3.9.

Save log is clicked

The save log component is ticked and the communication log is saved to disk once the session is ended.

Pass

5.1.4.      File Transfer Screen

5.1.4.1.

Close file transfer session

The communication channel between two parties is closed, all system resources is freed, and session is terminated.

Pass

5.1.4.1.      Sender’s Side of Application

5.1.4.1.1.

Session is loaded

The system attempts to establish a connection with the receiver’s application and a file dialog is loaded in order for the client to select the file he/she wishes to transfer to his/her peer.

Pass

5.1.4.1.2.

File is selected

Start the “startSending” method, compress the selected file, and then, start file transfer.

Pass

5.1.4.1.3.

File transfer has started

The “OK” button is disabled during the transmission of the compressed file and the progress bar is updated every time a stream of bytes has been transferred.

Pass

5.1.4.1.4.

File transfer is complete

An ISC command is issued to close the communication channel, connection is terminated, and the “OK” button is enabled. In addition, a message is displayed stating that file transmission is complete, and the compressed file is deleted.

Pass

5.1.4.1.5.

Click on the “OK” button

The session is terminated and system resourced is freed.

Pass

 5.1.4.2.      Receiver’s Side of Application

5.1.4.2.1.

Session is loaded

A “ServerSocket” is initialised and the application halts waiting for a connection from the sender’s application

Pass

5.1.4.2.2.

Incoming connection from the sender

Wait for file details from the sender and disable the “OK” button.

Pass

5.1.4.2.3.

File transmission has started

Update the progress bar every time a stream of byte has been received.

Pass

5.1.4.2.4.

File transmission is complete

Receive an ISC command from the sender to close the communication session, a message is displayed stating that file transfer is complete, and the “OK” button is enabled.

Pass

5.1.4.2.5.

Click on the “OK” button

The session is terminated and system resourced is freed.

Pass

 5.2.      ISC Server Application

In this section, the result of performing the testing procedures, which were set to ensure a fully functioning server application that is ready for distribution, are listed.

5.2.1.      Load Application

Test ID

Test Procedure

Expected Result

Actual Result

5.2.1.1.

Load application

A “ServerSocket” is initialised and the application halts waiting for clients’ connections.

Pass

5.2.1.2.

In coming connection

The server accepts the connection and starts a new Java thread to perform the authentication process before granting access to the ISC services.

Pass

 5.2.2.      Authentication Process

5.2.2.1.

Authentication process has been started

Attempt to open the registered clients database, and when successful, wait for client’s details (screen-name and passcode).

Pass

5.2.2.2.

The registered clients database is empty

Terminate the authentication process and issue an ISC command to terminate connection.

Pass

5.2.2.3.

Client’s details have been received.

Attempt to read database records to verify them against client’s details.

Pass

5.2.2.4.

Client’s screen-name is already signed-on

Issue an “already signed-on” ISC command to terminate connection.

Pass

5.2.2.5.

Verification was unsuccessful

Issue an “invalid sign-on details” ISC command to terminate connection.

Pass

5.2.2.6.

Verification was successful

Issue an ISC command to grant the client access to the ISC services, add client to the online users list, and start a “Broadcast” thread to serve client’s commands and messages.

Pass

 5.2.3.      Private and Public Messages Handling

5.2.3.1.

“Broadcast” thread is started

Send current online users list to the new signed-on client, alert other online clients with the new client, and wait for client’s message and/or commands.

Pass

5.2.3.2.

A public message is received

Broadcast message to all online clients, including the author of the message.

Pass

5.2.3.3.

A private message is received

Forward private message to both parties of the private session.

Pass

 5.2.4.      ISC Commands Handling

5.2.4.1.

A private session request is received

Forward request to the other party.

Pass

5.2.4.2.

A positive private session reply is received

Forward reply to the author of the request.

Pass

5.2.4.3.

A negative private session reply is received

Forward replay to the author of the request.

Pass

5.2.4.4.

A file transfer session request is received

Forward request to the other party.

Pass

5.2.4.5.

A positive file transfer session reply is received

Forward reply to the author of the request.

Pass

5.2.4.6.

A negative file transfer session reply is received

Forward replay to the author of the request.

Pass

5.2.4.7.

A voice conferencing session request is received

Forward request to the other party.

Pass

5.2.4.8.

A positive voice conferencing session reply is received

Forward reply to the author of the request.

Pass

5.2.4.9.

A negative voice conferencing session reply is received

Forward replay to the author of the request.

Pass

5.2.4.10.

A sign-off command is received

Remove user from the online users list and alert other online clients with the sign-off client. In addition, the communication channel is closed.

Pass

5.2.5.      Terminate

5.2.5.1.

Connected client can not be reached

Remove client from the online users list and alert other online clients with the signed-off client.

Pass

5.2.5.2.

Close server application

All connected clients will be removed from the online users list and the “ServerSocket” is closed.

Pass

5.3.      ISC Administrative Application

In this section, the result of performing the testing procedures, which were set to ensure a fully functioning administrative application that is ready for distribution, are listed.

 5.3.1.      Application’s Funcations

Test ID

Test Procedure

Expected Result

Actual Result

5.3.1.1.

Load application

Display a welcome message in the tip box and list all registered users in the users list.

Pass

5.3.1.2.

Click on the “ADD USER” button

Add entered details to the registered users database and refresh users list.

Pass

5.3.1.3.

Hit the “Enter” key on the passcode field

Add entered details to the registered users database and refresh users list.

Pass

5.3.1.4.

Attempt to add a user without entering his/her details (screen-name and/or passcode)

Display a message in the tip box asking for user’s details before performing the addition operation.

Pass

5.3.1.5.

Attempt to add a screen-name that already exists

Display a message in the tip box stating that the selected screen-name already exist in the database and abort addition operation.

Pass

5.3.1.6.

Select a user from the registered users list

Highlight the selected screen-name.

Pass

5.3.1.7.

Click on the “DELETE USER” button

Delete the selected user from the database and refresh users list.

Pass

5.3.1.8.

Click on the “DELETE USER” button without selecting any user from the list

Display a message in the tip box asking to select a user to delete and abort the deletion operation.

Pass

 5.3.2.      Terminate

5.3.2.1

Click on the “EXIT” button

Load an ISC dialog to confirm exit operation.

Pass

5.3.2.2

Attempt to close window

Load an ISC dialog to confirm exit operation.

Pass

5.3.2.3

Cancel exit operation

The administrative application remains.

Pass

5.3.2.4

Approve exit operation

The application fees system resources and terminates.

Pass