As a user, I want to see how many answers a question has received. - CMPUT301F14T06/Team06MapleSyrup GitHub Wiki
Use Case: Display the number of Answers for each question
Use Case Name: AnswerCount
Participating Actors: User
Goal: Display the number of answers for the question users choose from the question list
Trigger: Go to the main activity/ View a Question Detail
Precondition: User go to main screen or User click on the question on the main screen
Postcondition: You can see the number of answer below the question detail or below the upvote button.
Basic Flow: 1. User goes to the main activity
2. Sees the number of answers below each question detail.
3. User click one question to see the question details.
4. System will load the detail information about that question, including the number of answers containing in that question.
3. User may see the number of answers for that question below the question content view.
Exceptions:
1.0 No question recorded in the database
- Nothing will be displayed on the question list on the main screen.
1.0/3.0 Internet is not connected
- 1.1/3.1 Return to the main fragment, the List become empty
- 1.2/3.2 A Toast shows no internet access
- 1.3/3.3 Go to profile fragment and click local questions button to view saved questions and answers
Test:
- the apps will allow user see the number of Answers for each question
- Create a Question list
- Create some Questions
- Insert Questions into Question list
- Create some Answers for some of these Questions
- Insert Answers under the Questions
- Check the number of Answers
- Are the number of Answers for each question correctly displayed?