USE CASE DOCUMENT

·  Name: Sign up

·  Actors: User/Administrator

·  Goal: Register of user/administrator in the system

·  Reference to requirements: 6.b.i

·  Pre-conditions:

1.  The application was installed on the station.

·  Description:

1.  User calls for registration.

2.  Application displays registration form.

3.  User fills details and calls for confirmation.

4.  Registration confirmation message will be sent to user.

5.  Application registers user in the system.

6.  Application shows main form to user.

·  Post-conditions:

1.  The user is registered in the system and application allows him to login as described in “Login UC”.

·  Exceptions:

1.  3a: User cancels.

§  Application continues to item 6 without registration.

·  Name: Log in

·  Actors: User/Administrator

·  Goal: Entering the application

·  Reference to requirements:11.a.i

·  Pre-conditions:

1.  The application was installed on the station.

·  Description:

1.  User calls for logging in

2.  Application displays “Login” form.

3.  User enters nick and password and confirms.

4.  Application displays main window.

·  Post-conditions:

1.  The user logged in to the system, main window is displayed.

·  Exceptions:

1.  3a: User cancels:

§  Application closes “Login” form.

2.  3a1: The nick or password is not correct:

§  Application displays appropriate message and goes back to 2.

·  Name: Archiving

·  Actors: Chat host

·  Goal: Save chats history

·  References to requirements:

·  Pre-conditions: Main window is displayed.

·  Description:

1.  Chat host calls for archiving.

2.  Application asks for confirmation.

3.  Chat host confirms.

4.  Application saves all chats history.

5.  Application displays main window.

·  Post-conditions: Chat history is saved.

·  Exceptions:

1.  3a: Administrator cancels:

Application continues to 5 without saving.

·  Name: Creating chat room

·  Actors: User/Administrator

·  Goal: Creating a chat room.

·  Reference to requirements: 6.b.x, 6.c.ii

·  Pre-conditions:

1.  Main window of is displayed.

·  Description:

1.  User calls for creating chat room.

2.  Application prompts user for chat room details and asks user for confirmation.

3.  User confirms

4.  Application displays new chat room window.

·  Post-conditions:

1.  New chat room is created.

·  Exceptions:

1.  3a: User cancels.

§  The application displays main window without creating chat room.

·  Name: Finding user.

·  Actors: User.

·  Goal: Addition users to friends list.

·  Reference to requirements: 6.b.iv, 6.b.v

·  Pre-conditions:

1.  Main window is displayed.

·  Description:

1.  User calls for addition.

2.  Application displays “Add to Friends List” form.

3.  User enters needed details and confirms.

4.  Application displays list of found users and their details.

5.  User chooses wanted user and confirms.

6.  Application displays main window.

·  Exceptions:

1.  3a: User cancels.

§  Main window is displayed.

·  Name: Changing user details

·  Actors: User/Administrator

·  Goal: Change user’s own details

·  References to requirements: 6.b.xvii

·  Pre-conditions: Application main window is displayed.

·  Description:

1.  User calls for changing details.

2.  Application displays “changing details” form with old details.

3.  User changes his details and confirms.

4.  Application closes “changing details” form.

·  Post-conditions:

The details are updated.

·  Exceptions:

1.  3a:User cancels:

Application continues to 4 without updating details.

·  Name: Removing chat room

·  Actors: Chat host/Administrator

·  Goal: Remove existing chatroom

·  References to requirements: 6.b.viii

·  Pre-conditions:

Normal course of “Create chat room” UC is completed.

·  Description:

1.  Chat host/Administrator calls for removing chat room.

2.  Application asks confirmation from chat host/Administrator.

3.  Chat host/Administrator confirms.

4.  Application displays confirmation message.

5.  Application displays main window.

·  Post-conditions:

The chat room is removed.

·  Exceptions:

1.  3a: Chat host/Administrator cancels:

Application continues to 5 without removing.

·  Name: Blocking user

·  Actors: Chat host/Administrator

·  Goal: Block user (to forbid user entering chat room/system)

·  References to requirments:6.b.vii

·  Pre-conditions:

Chat room window is displayed/Main window is displayed.

·  Description:

1.  Chat host/Administrator calls for blocking user.

2.  Application displays “blocking user” form.

3.  Chat host/Administrator adds the user to “block list”.

4.  Application asks for confirmation.

5.  Chat host/Administrator confirms.

6.  Application closes “blocking user” form.

·  Post-conditions:

The user no longer allowed entering chat room/system.

·  Exceptions:

1.  3a: Chat host/Administrator cancels:

Application continues t 6 without adding.

2.  5a: Chat host/Administrator doesn’t confirm:

Application goes back to 2.

·  Name: Inviting users to chat room.

·  Actors: Chat host.

·  Goal: Invite users to existing chat room.

·  References to requirments:6.b.ix

·  Pre-conditions:

Chat room window is displayed.

·  Description:

1.  Chat host calls for inviting users.

2.  Application displays “inviting users” form.

3.  Chat host chooses a user to invite and confirms.

4.  Application closes “inviting users” form.

5.  Application displays “invitation” form to invited user.

6.  Invited user chooses to join chat room.

7.  Application closes “invitation” form.

8.  Application displays chat room window to joined user.

·  Post-conditions:

Invited users entered the chat room.

·  Exceptions:

1.  3a: User cancels:

Application continues to 4 without inviting users.

2. 6a: Invited user chooses not to join chat room:

Application continues to 7 without displaying chat room window to the user.

·  Name: Ignoring users

·  Actors: User

·  Goal: Ignore users (stop seeing messages from them)

·  References to requirements: 6.b.xiv

·  Pre-conditions:

Application main window is displayed.

·  Description:

1.  User calls to ignore users.

2.  Application displays “ignore users” form.

3.  User choose group of user to ignore and adds them to ignore list.

4.  Application asks for confirmation.

5.  User confirms.

6.  Application closes “ignore users” form.

·  Post-conditions:

The user no longer can see messages from ignored users.

·  Exceptions:

1.  6a: User cancels:

Application continues to 6 without adding.

·  Name: Sending pm.

·  Actors: User

·  Goal: Send private message.

·  References to requirments: 6.b.xiii

·  Pre-conditions:

Application main window is displayed.

·  Description:

1.  User calls to send a private message.

2.  Application displays “send private message” form.

3.  User chooses other user to send pm to him and confirms.

4.  Application closes “send private message” form.

5.  Application displays “private chat” window.

6.  User types message and confirms.

7.  Application displays “private chat” window with the message to other user.

·  Post-conditions:

The private chat window with message is displayed to both of users.

·  Exceptions:

1.  3a: User cancels:

Application continues to 4 without sending message.

2.  7a: User is in ignored list of other user:

The window is not displayed to other user.

·  Name: Entering chat room.

·  Actors: User.

·  Goal: Enter existing chat room.

·  References to requirments: 6.b.x

·  Pre-conditions:

Application main window is displayed.

·  Description:

1.  User calls for entering chat room.

2.  Application displays “entering chat” form with list of chat rooms.

3.  User chooses chat room to enter and confirms.

4.  Application displays “enter password” form.

5.  User types a password and confirms.

6.  Application closes “enter password” form.

7.  Application closes “entering chat” form.

8.  Application displays chat room window.

·  Post-conditions:

User entered the chat room.

·  Exceptions:

1.  3a: User cancels:

Application continues to 8 without displaying chat room window.

2.  5a: User cancels:

Application continues to 2.

5a1: The password is wrong:

Application displays appropriate message and continues to 2.

·  Name: Sending chat room message

·  Actors: User

·  Goal: Send chat room message

·  References to requirements: 6.b.xi, 6.b.xii

·  Pre-conditions:

Chat room window is displayed.

·  Description:

1.  User types a message.

2.  User chooses group of users to send them a message (to everyone by default).

3.  User confirms.

4.  Application displays the message to the group of users.

·  Post-conditions:

The message is displayed to chosen users.

·  Exceptions:

1.  3a: User cancels:

Application deletes the typed message.