Skip to content

Use Cases

Amber(Heyue) Huang edited this page Feb 16, 2017 · 45 revisions

Catalogue

UC Menu

  • 01.01 Add Mood Event
  • 01.02 Delete Mood Event
  • 01.03 Edit Mood Event
  • 01.04 View Mood Event
  • 01.05 View all mood history list
-----------------------------
  • 02.01 Add textual explanation
  • 02.02 Add photo
  • 02.03 Add social situation
-----------------------------
  • 03.01 Sign up
  • 03.02 Sign in
-----------------------------
  • 04.01 Filter Mood Event
------------------------------
  • 05.01 View another participant following permission.(Follower)
  • 05.02 View the followers list
  • 05.03 View the follow list
------------------------------
  • 06.01 Add location
  • 06.02 View filtered mood map
------------------------------
  • 07.01 Offline

UC 01.01

Item Description
Title Add Mood Event
Primary Actor User
Goal Add a mood event for the user
Trigger Click on add mood event button
Precondition Want to record a mood event
Postcondition Mood event added and shows the date and time, a required emotional state, optional trigger, and optional social situation. Emotional states has been chosen(anger, confusion, disgust, fear, happiness, sadness, shame, and surprise).
Basic Flow
  1. System start a new activity which allows user to input text, add pic, choose mood state, social situation, trigger and location.
  2. User input text
  3. User add picture
  4. User click on the pull down menu
  5. System shows the items in the pull down menu for user to choose
  6. User choose a mood state given by the system
  7. User click on the Social Situation pull down menu
  8. System shows the social situation for user to choose
  9. User choose a social situation
  10. User input the trigger
  11. User click on the Location
  12. System switch to a new activity which shows the map and the current location of the user
  13. User choose to use the current location or to change the location
  14. System save the location
  15. User click on the ‘check’ button on the top right corner
  16. System change the activity to the main activity and shows the current mood event of the user
Exceptions
  • Can’t add mood event
  • The size of picture exceeds the limit
Related Use Cases UC 02.01.01 & UC 02.02.01 & UC 02.03.01 & UC 02.04.01
Related User Stories US 01.01.01 & US 01.01.02 & US 02.04.01
Test Cases

UC 01.02

Item Description
Title Delete Mood Event
Primary Actor User
Goal Delete a mood event for the user
Trigger Click on delete event button
Precondition Want to delete the mood event
Postcondition Selected mood will be removed from the Mood History list.
Basic Flow
  1. The delete button of a selected mood is pressed in the Main page or View Details page
  2. The selected mood will be removed from Mood History List
  3. Refresh the Mood History List
Exceptions
  • The mood doesn’t belong to the user, cannot be deleted
Related Use Cases UC 01.04
Related User Stories US 01.06.01
Test Cases

UC 01.03

Item Description
Title Edit Mood Event
Primary Actor User
Goal Edit the details of a given mood event of mine
Trigger Click the menu and select the edit
Precondition User wants to edit one of his/her own post
Postcondition The selected moods are available to change and save on Mood History.
Basic Flow
  1. Clicked the menu button at the right top corner
  2. Go to the add_activity
  3. The posted text and picture will be sent to this activity and show on the screen
  4. Users are available to change the picture and posted information
  5. Update the changed data to the Mood History List
  6. Refresh the Mood History List
Exceptions
  • If the mood doesn’t belong to the user, cannot be edited
Related Use Cases UC 01.01 & UC 01.04
Related User Stories US 01.05.01
Test Cases

UC 01.04

Item Description
Title View Mood Event
Primary Actor User
Goal View the details of a given mood event of mine
Trigger Press the Mood which the user want to view.
Precondition The user wants to view the details and the mood exits.
Postcondition The details/attributes of a mood will be shown in a new page.
Basic Flow
  1. The mood is selected in the Main page
  2. The available details will be shown in a new page
Exceptions
    Related Use Cases
    Related User Stories US 01.04.01
    Test Cases

    UC 01.05

    Item Description
    Title View all mood history list
    Primary Actor User
    Goal View all mood history list (include mine and followers)
    Trigger Click home button
    Precondition User want to see all mood history about list himself/herself and his/her follower(s)
    Postcondition User see the all mood history list
    Basic Flow
    1. User clicked the home button in the main menu
    2. System shows mood history list includes User and followers
    Exceptions
      Related Use Cases UC 01.01 & UC 01.02 & UC 01.03 & UC 01.04 & UC 04.01
      Related User Stories US 01.02.01 & US 01.03.01 & US 01.05.01 & US 01.06.01
      Test Cases

      UC 02.01

      Item Description
      Title Add textual explanation
      Primary Actor User
      Goal Add textual explanation to explain the mood
      Trigger Click on the input box
      Precondition The input box is blank
      Postcondition Shows the input of the user
      Basic Flow
      1. User click on the text box
      2. User input text(20 characters or 3 words)
      3. System store the text in the database
      Exceptions
      • Text too long
      Related Use Cases UC 01.01
      Related User Stories US 01.01.01
      Test Cases

      UC 02.02

      Item Description
      Title Add photo
      Primary Actor User
      Goal Add a picture to express the reason why for a mood event
      Trigger Click on add picture button
      Precondition There is no picture in the activity
      Postcondition A picture added for the user
      Basic Flow
      1. User click on the add picture button
      2. System open the photograph album
      3. User choose a photo
      4. System check the size of the photo, raise an exception if the size is too large
      5. System shows the picture in the add activity
      Exceptions
      • Photo size larger than 65536 bytes
      Related Use Cases UC 01.01.01
      Related User Stories US 02.02.01 & US 02.03.01
      Test Cases

      UC 02.03

      Item Description
      Title Add social situation
      Primary Actor User
      Goal Add a social situation for the user
      Trigger Click on the pull down menu of Social Situation
      Precondition The social situation is blank
      Postcondition The social situation is chosen by the user
      Basic Flow
      1. User click on the pull down menu of Social Situation
      2. System stores the social situation of the user into the database
      Exceptions
      • The social situation is unselected
      Related Use Cases UC 01.01
      Related User Stories US 02.04.01
      Test Cases

      UC 03.01

      Item Description
      Title Sign up
      Primary Actor User
      Goal Add new account for user
      Trigger Click sign up
      Precondition new user or exist user who want a new account
      Postcondition get a new account with unique username
      Basic Flow
      1. System prompt “No account yet? Create one
      2. User clicks the link of “No account yet? Create one”
      3. System shows the EditText Username
      4. User type in his/her unique username
      5. User clicks sign up button
      Exceptions
      • the Username which User sign up is used by other user
      Related Use Cases
      Related User Stories US 03.01.01
      Test Cases

      UC 03.02

      Item Description
      Title Sign in
      Primary Actor User
      Goal Sign in the user’s account
      Trigger Click the sign in button
      Precondition User already had a account
      Postcondition sign in the account of user
      Basic Flow
      1. System shows the EditText where user enter the username
      2. User enter the username
      3. System check the username show all the user’s data in next screen
      Exceptions
      • Can’t find the username
      Related Use Cases
      Related User Stories US 03.01.01
      Test Cases

      UC 04.01

      Item Description
      Title Filter Mood Event
      Primary Actor User
      Goal Filter the mood history event in new order.
      Trigger Click the filter button in main page
      Precondition User wants to filter the mood history list in a new order.
      Postcondition The mood history will be filtered in a new order.
      Basic Flow
      1. Clicked the filter button
      2. Choose from two options: 1. My History List; 2. Following List.
      3. Display the list of the most recent mood events, sorted by date and time, in reverse chronological order (most recent coming first).
      4. Choose from three options(checkbox): 1. Show Latest Moods; 2. Show Moods with particular emotional state; 3. Show Moods whose reason contains a given word.
      5. Page refresh and show the mood list after filtering.
      Exceptions
        Related Use Cases
        Related User Stories US 04.02.01 & US 04.03.01 & US 04.04.01 &US 05.03.01 & US 05.04.01 & US 05.05.01 & US 05.06.01
        Test Cases

        UC 05.01

        Item Description
        Title View another participant following permission.(Follower)
        Primary Actor User
        Goal Accept or decline the participant’s permission.
        Trigger Click the notification tab.
        Precondition Another participant ask to follow the user.
        Postcondition A new follower is added/ isn’t added.
        Basic Flow
        1. Clicked the notification button
        2. Show a list of pending permission from other participants
        3. Each participant with two options: Accept and Decline
        4. Once the Accept option is chosen: A new follower is added. Once the Decline option is chosen: stay the same
        Exceptions
          Related Use Cases
          Related User Stories US 05.02.01
          Test Cases

          UC 05.02

          Item Description
          Title View the followers list.
          Primary Actor User
          Goal Check the followers who are following the user.
          Trigger Click the friends menu from the drawer, and click the Follower tap.
          Precondition User on the other interface.
          Postcondition Jump to user’s follower’s list.
          Basic Flow
          1. Clicked the filter button
          2. Choose from the friends option
          3. Click the Follower tab
          Exceptions
            Related Use Cases
            Related User Stories US 04.02.01 & US 04.03.01 & US 04.04.01 & US 05.02.01
            Test Cases

            UC 05.03

            Item Description
            Title View the follow list.
            Primary Actor User
            Goal Check the follow that the user are following to.
            Trigger Click the friends menu from the drawer, and click the Follower tap.
            Precondition User on the other interface.
            Postcondition Jump to user’s follower’s list.
            Basic Flow
            1. Clicked the filter button
            2. Choose from the friends option
            3. Click the Following tab
            Exceptions
              Related Use Cases
              Related User Stories US 04.02.01 & US 04.03.01 & US 04.04.01 & US 05.01.01
              Test Cases

              UC 06.01

              Item Description
              Title Add location
              Primary Actor User
              Goal Add the current location of the user
              Trigger Click on location button
              Precondition The location will not be shown
              Postcondition The current location of the user will be shown
              Basic Flow
              1. User click on the Location button
              2. System starts a new activity shows the map and the current location of the user
              3. User choose to use the current location or change to another location
              Exceptions
              • Lost connection
              Related Use Cases UC 01.01& UC 06.02
              Related User Stories US 06.01.01 & US 06.02.01
              Test Cases

              UC 06.02

              Item Description
              Title View filtered mood map
              Primary Actor User
              Goal Display all the mood from the filtered list
              Trigger Click on the location button on top right of the home page
              Precondition User want to see own filtered mood history list/following list/from 5km of the current location in map form
              Postcondition Display change to map showing filtered mood list
              Basic Flow
              1. User clicks the location button on main view, a map will show with the current filtered list
              2. a filtered list could be a. my filtered history, b.my filtered following list
              3. c.from within 5km of user’s location, this list contains user that is neither a follower or a followee of the user.(nearby)
              4. User will see those moods in pin form
              5. The user will have to click on the pin to see the detail information of the selected mood
              6. To change the view,user could click the filter button on top right corner in the map view.
              7. A dialog will show to ask if the user want to see his/her own filtered list or a nearby list
              8. User can click on the home button (in house shape, on top of the page) if the user want to go back to home page and change filter option.
              Exceptions
              Related Use Cases UC 04.01& UC 01.05
              Related User Stories US 06.01.01& US 06.02.01 &US 06.03.01& US 06.04.01
              Test Cases

              UC 07.01

              Item Description
              Title Offline
              Primary Actor Admin
              Goal Save the data of the current user in local memory and post the changes when the internet is connected
              Trigger Offline
              Precondition The content of the posts are the same with when the application is online
              Postcondition User’s own posts has been edited and stored in the local database, will be posted automatically when the internet is connected.
              Basic Flow
              1. System stores the data in the local database
              2. System allow the user to edit and delete their own posts
              3. User edit the content of their posts
              4. System stores the changed data in the database
              5. User connect the application to the internet
              6. System automatically post the changes
              Exceptions
              • Text too long
              • Photo size too big
              Related Use Cases UC 01.01 & UC 01.02 & UC 01.03 & UC 01.04 & UC 02.01 & UC 02.02 & UC 02.03
              Related User Stories US 07.01.01
              Test Cases
              Clone this wiki locally