As an author, I want to attach a picture to my questions or my answers. - CMPUT301F14T06/Team06MapleSyrup GitHub Wiki
Use Case: Author want to attach a picture to questions or answers
Use Case Name: AttachPicture
Extends Use case 4 (Author creates a question) Use case 5 (Author creates an answer for a question)
Participating Actors:
- Author
- Camera or Gallery App
Goal: Author add a picture while creating question/answers
Trigger: Author selects Add picture button/take Photo button when creating a question or answer.
Precondition: Author is creating a question or answer, and has either a picture available on the device, or has camera hardware on the device to take a new picture.
Postcondition: Picture is added to the question or answer the author is creating
Basic Flow:
1. The Author selects Add picture button/take Photo button while authoring a question/answer
2. The system prompts the Author to select a method of obtaining the photo
3. The Author selects an appropriate application to get the photo.
4. The system passes control to the external camera or Gallery app to get data.
5. The external app gives the system a picture.
6. The picture is added to the new question or answer.
Exceptions:
4.0 The external app failed to get a new photo
- The action of adding a pictrue is canceled
Test:
- the apps will allow Author make Questions and Answers with pictures.
- Create a Question list
- Login as an Author
- Create a Bitmap
- Create A Question with the Bitmap
- Insert the Question into the Question list
- Create an Answer of the Question with the Bitmap
- Insert the Answer under the Question
- Are the pictures correctly displayed?