As a user, I want to view the replies to a question or answer. - CMPUT301F14T06/Team06MapleSyrup GitHub Wiki

Use Case: User views replies to an answer or question

Use Case Name: ReplayToAnswerOrQuestions

Participating Actors: User

Goal: User is able to read replies to a question or answer.

Trigger: On user click on the question from any question list, and click on the reply expandable list to see the reply to the question. And click on the answer to see the reply list to the answer.

Precondition: User knows which questions or answer he wants to view the replies

Postcondition: On success, user is able to read replies to an answer or question.

Basic Flow:

1. User click the expandable list below the question content after enter the question detail activity. 

2. A expandablelist of replies to the Question shows below the Question content.

3. User click on the specific answer to expand the replies list for the answer.

4. A expandablelist of replies to the answer shows below the answer content.

5. Scroll down to see more if there is any.

6. User has successfully read replies to answers or question.

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 on profile button and choose local questions to view saved questions and answers

2.0/4.0 no replies

- 2.1 no replies appears

Test:

  • the apps shows the Reply under the Question or Answer.
  • Create a Question list
  • Create a Question
  • Insert the Question into the Question list
  • Create an Answer for this Question
  • Insert the Answer under the Question
  • Create a Reply for this Question
  • Create a Reply for the Answer
  • Insert the Replies.
  • Are the two Replies correctly displayed?

Constraints:

User has Wi-Fi or is viewing a locally cached question.