As a user, I want to view a question and its answers. - CMPUT301F14T06/Team06MapleSyrup GitHub Wiki

Use Case: User views a question and its answers

Use Case Name: ViewQuestionAnswers

Participating Actors: User

Goal: User can view a question and its answers.

Trigger: On user click on the specific question from any question list.

Precondition: The question is exists.

Postcondition: User was competent to read the question, its presentation and all answers.

Basic Flow: 1. User click on the specific question from any question list.

2. The screen for a detailed question (QuestionDetailActivity) is displayed, showing the description and any answers, replies to the question.

3. User scroll down to see the answers and replys.

4. Using return button to go back to the previous Question list.

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

Test:

  • The apps shows the Question content and it's answers

  • 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

  • Assert that the answer is on the screen beneath the question.

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