As an author, I set my username. - CMPUT301F14T06/Team06MapleSyrup GitHub Wiki
Use Case: Author can set username.
Use Case Name: SetUsername
Participating Actors: Author
Goal: The author is able to set a unique username so others can identify them
Trigger: The author login as a new author or click on User Name in profile fragment.
Precondition: The author knows the new name he/she wants to change to, the username must be unique.
Postcondition: The author's username is now set and is viewable by others from the author's questions, answers and replies
Basic Flow:
1. Author enter a username and clicks on login from the login activity.
1.0.1 If the username is new, create a new Author with the username
1.0.2 If the username is exist, login as the Author with the username
1.1 If Author has login and want to set username, then click on Profile button on main activity
2. Author then clicks on the author name.
3. App require author to enter a new username in the edit text view, and click on change button.
Exceptions:
1.0 Internet is not connected
- 1.1 Return to the main activity, the List become empty
- 1.2 A Toast shows no internet access
- 1.3 Click on profile button and choose local questions to view saved questions and answers
3.0 The user tries to set their username to one already exist
- A Toast shows: "The username already exist, enter an other one"
3.0 The user don't want to change the username
- Click on cancel
Test:
- the apps will allow author change username
- Login as an Author
- change the username
- are the new username correctly displayed?