Skip to content
k----n edited this page Nov 19, 2015 · 12 revisions

Link to test cases

USE CASE username US02.01

Main actors: Owner

Goal: As an owner, I want to track people I know. Adding a textual username should be enough.

Trigger: create an account

Precondition: network connection

Postcondition: successfully attach a username to an account

Basic Flow:

  1. User click "sign up" in login page

  2. System jump to sign up activity

  3. User Enters usernamen and other info and click "okay"

  4. System creates a PERSON with a username

  5. return to login page

Exception

1 user don't click sign up

1.1 system stays in login page and waiting

3 user abort creating account

3.1 system jumps back to login page


USE CASE add Friend US02.02

Main actors: Owner

Goal: Add PERSON as friends and form a list

Trigger: click on "add a friend" button

Precondition: Person is in the database

Postcondition: Target person is successfully added and displayed in friend list

Basic Flow:

  1. User click "view/search person" button main page

  2. System jumps to search activity and returns a Prompt, asking for Name, or ID.

  3. User Enters Information, and click confirm

  4. system display all members are founded

  5. user click person entry

  6. system ask if user want to add him/her as a friends

  7. user confirms

  8. person is added to friendslist

Exception

2 user don't enter any of the name or ID

2.1 system keep the prompt

2.2 user click back button to return the previous activity

5 user cannot find the target person in the list

5.1 system keep the list displayed

5.2 user click back button to return the previous activity


USE CASE remove Friend US02.03

Main actors: Owner

Goal: remove a PERSON from list

Trigger: click on "delete" button

Precondition: PERSON is in your friend list

Postcondition: Target person is successfully removed from friend list

Basic Flow:

  1. user click a person entry in friendlist activity

  2. system pops up a option bar

  3. user click "delete" button

  4. System Returns a Prompt, asking to confirm

  5. User confirms

  6. System remove friends from friendlist and refresh screen

Exception:

3 user decides not to delete this person

3.1 system keep everything steady

3.2 user click back button to dismiss the option bar

5 user click cancel instead of confirm

5.1 deleting process abort


USE CASE view my profile US02.04

Main actors: Owner

Goal: As an owner or borrower, I will have a profile where by my contact information and city are recorded.

Trigger: click on "view my profile" button

Precondition: login-ed with an valid account

Postcondition: my contact information and city displayed

Basic Flow:

  1. user click My avatar

  2. system pops up option bar

  3. user clicks "view my profile"

  4. System pops up a new activity

  5. System display my contact information and city in new activity

Exception:

5 user don't add contact information and city

5.1 display nothing


USE CASE view friends profile US02.05

Main actors: Owner

Goal: As an owner or borrower, I will be able to view the profile of anyone I know of including friends.

Trigger: click on "viewprofile" button

Precondition: PERSON is in your friend list

Postcondition: Target person's profile is successfully displayed

Basic Flow:

  1. user click a person entry in friendlist activity

  2. system pops up option bar

  3. user click "viewprofile"

  4. System pops up a new activity

  5. System display my contact information and city in new activity

Exception:

5 target person don't add contact information and city

5.1 display nothing


USE CASE top traders US12.01

Main actors: Owner

Goal: View top traders of the app

Trigger: Click on "top traders" option from view

Precondition: User is in view/search person page

Postcondition: Top traders are displayed in listview

Basic Flow:

  1. User click "view/search person" button main page

  2. System jumps to search activity

  3. User selects "top traders" under view

  4. System displays top traders sorted based on number of successful (current, in-progress, and complete) trades

Exception

1 Multiple users have the same amount of trades
1.1 Randomly order users who have the same amount of trades


Clone this wiki locally