p2 Android App Use Case-1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 19

Christopher McMichael

Project 02: Ecommerce app


CST 338 Fall 2022 Semester. Cohort 15

Ecommerce app
This is a simple ecommerce app that allows a user to search, order, and cancel orders.
The administrator can add, modify, or remove items from the store

Please mark each use case as 'pass' Or 'fail'. The use case passes if it does what it intended to do. It
fails if it does not. See the example below for more information.

Full Video Link: https://youtu.be/PziVPR_NmO4

Table of contents
Database Diagram 3

Use Case 01: Predefined Users 4


pass 4

Use Case 02: Persistence 5


pass 5

Use Case 03: Add a user 6


pass 6

Use Case 04: Delete a user 7


pass 7

Use Case 05: add an item 8


pass 8

Use Case 06: modify an item 9


pass/fail 9

Use Case 07: Delete an item 10


pass 10

Use Case 08: Place an order 11


pass 11

Use Case 09: Cancel an order 12


pass 12
Use Case 10: View current items list 13
pass 13

Use Case 11: Access admin tools 14


pass 14

Use Case 12: Search for an item 15


pass 15

Use Case 13: View Order history 16


pass 16

Use Case 14: In memory login persistence 17


pass 17

Use Case 15: Force close username persistence 18


pass 18

Use Case 16: Purchase history saving 19


pass 19
Database Diagram
Use Case 01: Predefined Users

pass

1. Force quit the application1


2. Login as testuser1
3. Display the username 'testuser1'
4. Logout
5. Login as admin2
6. Display the username 'admin2'
7. Display something specific to the admin user.
a. Something like an admin button or a link to edit items.

This use case passes if all of these conditions are met. It fails otherwise.

[Link to video timestamp]

1
How to force quit an application in Android:
https://www.digitaltrends.com/mobile/how-to-force-close-apps-android/
Use Case 02: Persistence

pass

1. Add an item to the database


2. Force quit the application2
3. Show the item added in step 1 is still in the database
4. Change an item in the database
5. Force quit the application
6. Show the item modifications from step 4 have been saved

[Link to video timestamp]

2
How to force quit an application in Android:
https://www.digitaltrends.com/mobile/how-to-force-close-apps-android/
Use Case 03: Add a user

pass

1. User selects ‘Add new user’ button


2. System brings user to the account creation page
3. User enters desired username
4. User enters desired password
5. User selects ‘Create Account’ button
6. System brings the user back to the main login page
7. Success message shows

Alternate: {Bad username}


3. User enters a username that is already in use.
5. Even with a password entered, user cannot continue forward with the error message displayed
6. User may enter a valid username or select ‘Back’ button to cancel

[Link to video timestamp]


Use Case 04: Delete a user

pass

1. Login as user to be deleted.


2. Navigate to the settings menu
3. Find the account management section
4. Select ‘Delete Account’ button
5. System prompts user for their password
6. User enters their password
7. System brings user to the main login screen
8. System displays “Account deleted successfully’ message

{Alternative: Incorrect password}


6. User enters an incorrect password
7. System reprompts for password

[Link to video timestamp]


Use Case 05: add an item

pass
1. Log into admin account
2. Select ‘Admin’ button
3. System displays the admin menu
4. Select ‘Add new Item’
5. Enter required information
6. Select ‘Add’ button
7. ‘Successfully added item’ message appears

{Alternative: Item already exists}


6. Admin entered an item name/sku that already exists.
7. System reprompts for item information
8. System displays ‘SKU already in use’ message

[Link to video timestamp]


Use Case 06: modify an item

pass/fail

1. Log into admin account


2. Select ‘Admin’ button
3. System displays the admin menu
4. Select ‘Modify Item’ button
5. System displays a search box
6. Admin types in the desired item
7. If an item is found and selected, System displays all of an items information
8. Once finished, Admin selects ‘Apply’ button

[Link to video timestamp]


Use Case 07: Delete an item

pass
1. Log into admin account
2. Select ‘Admin’ button
3. System displays the admin menu
4. Select ‘Delete Item’ button
5. System prompts with a search bar
6. Admin types in the name of the target item
7. Admin clicks ok
8. System shows “item successfully deleted” message

{Alternative: Invalid Item name}


9. Admin types in an item name that doesn’t exist
10. Prompt states that an item with that sku doesn’t exist

[Link to video timestamp]


Use Case 08: Place an order

pass

1. User logs in
2. User selects ‘Search’ button
3. User searches for desired item.
4. User selects ‘Buy’ button
5. System displays ‘Item ordered’ message
6. User is not moved from the item page but can select the ‘back’ button

{Alternative: no stock available}


6. System prompts user that there is not enough stock
7 User is left on the item order page

[Link to video timestamp]


Use Case 09: Cancel an order

pass

1. User logs in
2. User selects ‘Cancel Order’ button
3. System shows the users ‘current orders’ page
4. User selects the desired order to cancel
5. User selects ‘cancel order’ button
6. System shows users ‘current order’ page
7. System displays ‘Order successfully canceled’ message

[Link to video timestamp]


Use Case 10: View current items list

pass

1. Log into admin account


2. Select ‘Admin’ button
3. System displays the admin menu
4. Admin selects ‘Item list’ button
5. System displays list of all currently saved items

[Link to video timestamp]


Use Case 11: Access admin tools

pass

1. Log in with admin user


2. Select ‘Admin’ button
3. System should display the admin menu with options such as ‘Add Item’ or ‘Remove item’

{alternative: Standard user}


1. Regular user logs in (not an admin)
2. ‘Admin’ button should not be displayed.

[Link to video timestamp]


Use Case 12: Search for an item

pass

1. User logs in
2. User selects ‘Search’ button
3. System displays a search bar
4. As the user types in an item, items related to their input are displayed
5. If no similar item SKUs exist, nothing is displayed

[Link to video timestamp]


Use Case 13: View Order history

pass

1. User logs in
2. User selects ‘Order History’ button
3. System displays the list of a users purchase history
4. User purchases an item
5. User selects ‘order history’ button
6. System displays an updated purchase history

[Link to video timestamp]


Use Case 14: In memory login persistence

pass

1. User logs in
2. App is closed out of but not fully stopped.
3. App is resumed
4. User must still be logged in.
5. User logs out
6. App is closed again
7. App is resumed.
8. No user should be logged in still

[Link to video timestamp]


Use Case 15: Force close username persistence

pass

1. User logs in
2. User force closes the app.
3. User opens the app
4. App should keep user logged in

[Link to video timestamp]


Use Case 16: Purchase history saving

pass

1. User logs in
2. User selects ‘Search’ button
3. User selects a target item and orders it
4. User opens ‘Purchase History’ menu
5. Item should be listed
6. User logs out
7. User logs back in
8. User selects ‘Purchase History’ button
9. Item should still be listed

[Link to video timestamp]

You might also like