As a user, I want to upvote the questions of other users. - CMPUT301F14T06/Team06MapleSyrup GitHub Wiki

Use Case: User want to upvote the questions of other users

Use Case Name: QuestionUpVote

Participating Actors: User

Goal: Upvote Sepcific Question

Trigger: User Presses the Upvote

Precondition: User is viewing the question list/question content, and knows which question he want to upvote for

Postcondition: Upvote attribute for that specific question +1 and Question list also updated visually to show changes.

Basic Flow:

1. User browse question list or a specific question

2. User presses upvote button

3. Question upvote attribute updates

4. Question upvote count changes on screan

Exceptions:

2.0 Internet is not connected

- 2.1 Return to the main fragment, the List become empty

- 2.2 A Toast shows no internet access

- 2.3 Click local cache button to view saved questions and answers

Test:

  • the apps will allow user upvote/downvote the Questions.
    • Create a Question list
    • Create some Questions
    • Insert the Questions
    • Click upvote/downvote button
    • Are the Questions Score(number of Upvote - number of Downvote) correctly displayed?