As an author, I want to make questions. - CMPUT301F14T06/Team06MapleSyrup GitHub Wiki

Use Case: Author makes a question

Use Case Name: MakeAQuestion

Participating Actors: Author

Goal: Author successfully creates a question that other users can read it.

Trigger: Author click on the add question button in main activity

Precondition: Author has login

Postcondition: Author created and post a question so other users can read it.

Basic Flow:

 1. Author click ask question button to go to the make question activity
 
 2. Author enter the question's title and details.

 3. Author click on submit button.

 4. Question is posted and user is now able to read it.

 5. Author is returned to the main page.

 6. To make more questions, repeat the process

Exceptions: 1.0 User has not login yet

    -1.1 The app will go to login page automatically.

 3.0 No text in the title text field

    - 3.1 A toast is poped and asks Author to fill in the title

 4.0 Author is offline

    - 4.1 Question is saved to be posted 

Test:

  • the apps will allow Author make Questions.
  • Create a question list
  • Login as an Author
  • Create A Question
  • Insert the Question into the question list
  • Click the Question
  • Are the Question And Author Name correctly displayed?