As a user, I want to search for questions or answers. - CMPUT301F14T06/Team06MapleSyrup GitHub Wiki
Use Case: User want to search for questions or answers.
Use Case Name: SearchQorA
Participating Actors: Users
Goal: Users find the answers or questions relates to the key word
Trigger: Users go to main fragment by click on main button on the menu
Precondition: Users know the key word of that questions or answers he/she want to search
Postcondition: System returns the questions and the questions that has answers which fit the key word that the user searched
Basic Flow:
1. User click the search text input view beside the Search button at the bottom of the main fragment
2. User enter the keyword.
3. User click the search button.
4. System returns search results that contains the key words on the screen.
Exceptions:
3.0 No matching questions or answers
- 3.1 System display message: "No matching questions or answers"
- 3.2 System will go back to step 2
3.0 Internet is not connected
- 3.1 A Toast shows no internet access
- 3.2 Go to profile fragment and click local questions button to view saved questions and answers
Test:
- the apps will allow user to search for questions or answers
- 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
- Enter key word to search
- Are the search results correctly displayed?