Sequence Diagram - bounswe/bounswe2016group8 GitHub Wiki
Sequence Diagrams
Sequence Diagram 1
Name: Sign Up
Actor: Guest
Goal: Registering to the system
Steps:
- Guest opens the website and clicks "Sign Up" button.
- Guest enters a unique username, email and a password.
- Guest chooses a user type: teacher or student.
- Guest is directed to the homepage
- Guest receives an email from the system.
Post Conditions:
- Guest is now a user of the system.
Sequence Diagram 2
Name: Login
Actor: Registered Users
Goal: Login to the System
Preconditions: The user must have been registered.
Steps:
- User opens the website and clicks "Login" button.
- User enters his username or email and password.
- The system checks the validity of the inputs.
Post Conditions:
- If the user's inputs are valid, the user is directed to the homepage.
- If the user's inputs are not valid, the user receives an error message, and stays on the login page.
Sequence Diagram 3
Name: Search
Actor: Registered Users
Goal: Search a topic.
Preconditions: The user must have been registered.
Steps:
- User opens the website.
- User enters the search text on the search box and clicks the search button.
- The system finds the relevant topics.
Post Conditions:
- If at least one topic is found according to the search keyword, the system lists these topics.
- If no topic is found, the user receives an error message.
Sequence Diagram 4
Name: Create Topic
Actor: Teacher
Goal: Create a topic.
Preconditions: The user must have been registered and must have a teacher account.
Steps:
- User opens the profile page or homepage.
- User click the "Create a Topic" button.
- User is directed to the create topic page.
- User enters the inputs for the new topic.
- User enters the "Create the Topic" button.
- The system checks the validity of the inputs.
Post Conditions:
- If all the inputs correct, the topic is created.
- If not all inputs are entered, the user receives an error and the system doesn't create a new topic.
Sequence Diagram 5
Name: Add Comment
Actor: Registered User
Goal: Add Comment.
Preconditions: The user must have been registered.
Steps:
- User opens a topic page and clicks the discussion page.
- User chooses "Reply" button on a comment or enters the comment text on the comment box.
- If reply button is chosen, the comment text box opens and user enters the comment text.
- User clicks "Send Comment" button.
- The system creates the comment.
Post Conditions:
- If the comment is a reply to another comment, the new comment is displayed under the replied comment.
- If the comment is a new comment in the discussion page, the new comment is displayed under other comments.
Sequence Diagram 6
Name: Follow a Topic
Actor: Registered User
Goal: Follow a topic
Preconditions: The user must have been registered.
Steps:
- User opens homepage or search page.
- User chooses a topic and click "View Topic" button.
- User is directed to the topic page and
- If the user is not following the topic yet, user can see "Follow Topic" button.
- User clicks "Follow Topic" button.
- The system makes the necessary updates.
Post Conditions:
- The user is now following the topic.
Sequence Diagram 7
Name: Add a New Tag
Actor: Teacher
Goal: Add a New Tag to Topic
Preconditions: The user must be a Teacher.
Steps:
- Teacher opens profile page.
- Teacher chooses a topic created by him.
- Teacher is directed to the topic page
- Teacher clicks "Add Tag" button.
- Add New Tag Window will be open.
- Teacher writes the New Tag and clicks "Add" button.
- The system checks whether the Tag is used before.
Post Conditions:
- If the New Tag is used before an error window will be shown to User.
- If the New Tag is not used before the tag will be added and a window will be shown about success.