As an author, I want to author replies, questions and answers offline. - CMPUT301F14T06/Team06MapleSyrup GitHub Wiki

Use Case: Author can author replies, questions, and answers offline

Use Case Name: AuthorOffline

Participating Actors: Author

Goal: Author is able to author replies, questions, and answers while offline

Trigger: On pressing the Ask A Question button in main activity while offline. On pressing the Answer button below a Question while offline. On pressing the Reply button below a Question while offline. On pressing the Reply button below an Answer while offline.

Precondition: Author has login, if the author want to answer/reply offline the author must has local cached/favoriated/authored the question for himself/herself to answer/reply.

Postcondition: Author will have a cache of replies, questions and answers that will be posted once internet is connected.

Basic Flow:

1. Author uses the app offline

2.0 Author authors a Question and submit, the Question will be added to waiting list on the device

2.1 Author enters Local cached/favoriate/my questions list, choose a Question to answer, author an
answer for the question and submit, the Answer will be added to waiting list on the device

2.2 Author enters Local cache/favoriate/my questions list, choose a Question to reply, author reply
for the question and submit, the reply will be added to waiting list on the device

2.3 Author enters Local cache/favoriate/my questions list, choose a Question's Answer to reply, author
reply for the Answer and submit, the reply will be added to waiting list on the device

3. Questions,replies and answers will be saved locally on the Author's phone and once the internet
is connect, the Questions,replies and answers will be pushed autometically and been delete from the
waiting list.

Exceptions:

1. Author has not login
- 1.1 No add question/answer/reply button will show on the screen

Constraints:

Has memory on device for cache.

Test:

  • the apps will allow user save author's questions, replies, answers.
  • Login as an Author
  • Shut down the Internet
  • Create some Questions
  • resume the Internet and let it push the questions
  • Shut down the Internet
  • Create some answers and replies
  • Connect the Internet
  • Are the Questions, Replies, and Answers available and at the correct position?