Professional Documents
Culture Documents
Jeremiah Mcgrath Project02 Use Case
Jeremiah Mcgrath Project02 Use Case
Table of contents
Database Diagram 3
PASS
https://imgur.com/vQLlniZ
Use Case 02: Persistence
PASS
https://imgur.com/GDYicIt
https://imgur.com/xk2StDn
Use Case 03: Add A User
PASS
https://imgur.com/AsxQCsr
Use Case 04: Delete A User
PASS
Delete user is only possible when logged into an admin account, deletes user account from the
application
1. Login as admin2
2. Display the username ‘admin2’
3. User clicks the ‘admin’ button
4. Application displays the admin functions screen
5. User clicks the ‘delete user’ button
6. User types in username of account they wish to delete
7. A toast message is displayed indicating the successful deletion of an account
8. Use case ends (Pass)
https://imgur.com/Gz5beFx
Use Case 05: Add An Item
PASS
Add item is only possible when logged into an admin account, adds an item to the application
1. Login as admin2
2. Display the username ‘admin2’
3. User clicks the ‘admin functions’ button
4. Application displays the admin functions screen
5. User clicks the ‘add item’ button
6. Application displays the add item screen
7. User types in item name
8. User types in item description
9. User types in item price
10. User clicks the ‘add’ button
11. A toast message is displayed indicating the successful creation of an item
12. Use case ends (Pass)
● User enters a price for an item that is not valid (not a number or is not above zero)
● Starting at 10 from {add item}
https://imgur.com/zoRwVrw
Use Case 06: Modify An Item
PASS
Modify item is only possible when logged into an admin account, modifies an item in the application
1. Login as admin2
2. Display the username ‘admin2’
3. User clicks the ‘admin functions’ button
4. Application displays the admin functions screen
5. User clicks the ‘modify item’ button
6. Application displays the modify item screen
7. User types in item name
8. User clicks the ‘modify item’ button
9. Application displays the second modify item screen
10. User types in updated item description
11. User clicks the ‘modify’ button
12. A toast message is displayed indicating the successful modification of an item
13. Use case ends (Pass)
● User enters a price for an item that is not valid (such as less than or equal to zero)
● Starting at 12 from {modify item}
https://imgur.com/x9pcire
Use Case 07: Delete An Item
PASS
Delete item is only possible when logged into an admin account, deletes an item to the application
1. Login as admin2
2. Display the username ‘admin2’
3. User clicks the ‘admin functions’ button
4. Application displays the admin functions screen
5. User clicks the ‘delete item’ button
6. Application displays the delete item screen
7. User types in item name
8. User clicks the ‘delete’ button
9. User is returned to the admin functions screen
10. A toast message is displayed indicating the successful deletion of an item
11. Use case ends (Pass)
https://imgur.com/JwfmTvR
Use Case 08: Search For An Item
PASS
1. Login as testuser1
2. Display the username ‘testuser1’
3. User clicks the ‘search for item’ button
4. Application displays the search for item screen
5. User types in item name
6. User clicks the ‘search for item’ button
7. Application displays result item screen
- Screen displays item that the user has searched for
- Item name
- Item description
- Item price
8. Use case ends (Pass)
https://imgur.com/8pAGc9q
Use Case 09: Search For A User
PASS
Search for a user is only possible when logged into an admin account, searches for a user in the
application
1. Login as admin2
2. Display the username ‘admin2’
3. User clicks the ‘admin functions’ button
4. Application displays the admin functions screen
5. User clicks the ‘search for user’ button
6. Application displays the search for user screen
7. User types in username
8. User clicks the ‘search for user’ button
9. TextView displays user information
- Username
- Password
- Admin Status (true/false)
10. Use case ends (Pass)
https://imgur.com/7diBRir
Use Case 10: List In-Stock Items
PASS
List in-stock items is only possible when logged into an admin account, lists all in-stock items in the
application
1. Login as admin2
2. Display the username ‘admin2’
3. User clicks the ‘admin functions’ button
4. Application displays the admin functions screen
5. User clicks the ‘list in-stock items’ button
6. Application displays the list items screen
- Screen displays a list of all in-stock items
- Item name
- Item description
- Item price
7. Use case ends (Pass)
https://imgur.com/ci1E3FJ
Use Case 11: List All Users
PASS
List all users is only possible when logged into an admin account, lists all existing users in the
application
1. Login as admin2
2. Display the username ‘admin2’
3. User clicks the ‘admin functions’ button
4. Application displays the admin functions screen
5. User clicks the ‘list users’ button
6. Application displays the list users screen
- Screen displays a list of all users
- Username
- User password
- Admin Status (true/false)
7. Use case ends (Pass)
https://imgur.com/MRJywvP
Use Case 12: Delete All In-Stock Items
PASS
Delete all in-stock items is only possible when logged into an admin account, deletes all in-stock items
from the application
1. Login as admin2
2. Display the username ‘admin2’
3. User clicks the ‘admin functions’ button
4. Application displays the admin functions screen
5. User clicks the ‘delete all in-stock items’ button
6. A toast message is displayed indicating the successful deletion of all in-stock items
7. Use case ends (Pass)
https://imgur.com/sh77kZN
Use Case 13: Delete All Users
PASS
Delete all users is only possible when logged into an admin account, deletes all existing user accounts
from the application besides the default accounts ‘testuser1’ and ‘admin2’
1. Login as admin2
2. Display the username ‘admin2’
3. User clicks the ‘admin functions’ button
4. Application displays the admin functions screen
5. User clicks the ‘delete all users’ button
6. A toast message is displayed indicating the successful deletion of all existing user accounts
besides the default accounts
7. Use case ends (Pass)
https://imgur.com/hDoqwIp
Use Case 14: Display Order History
PASS
1. Login as testuser1
2. Display the username ‘testuser1’
3. User clicks the ‘order history’ button
4. Application displays the order history screen
- Screen displays a list of all items this user has purchased
- Item name
- Item description
- Item price
5. Use case ends (Pass)
https://imgur.com/2wqM6xE
Use Case 15: Return Item
PASS
Removes an item from the current user’s order history, places the item back into the in-stock inventory
of items
1. Login as testuser1
2. Display the username ‘testuser1’
3. User clicks the ‘return item’ button
4. Application displays the return item button
5. User types in item name
6. User clicks the ‘return item’ button
7. A toast message is displayed indicating the successful return of the item
8. Use case ends (Pass)
https://imgur.com/eBRTLW8
Use Case 16: Purchase In-Stock Item
PASS
Removes an item from the list of in-stock items, adds the item to the current user’s order history
1. Login as testuser1
2. Display the username ‘testuser1’
3. User clicks the ‘purchase item’ button
4. Applications displays the purchase item screen
5. User types in item name
6. User clicks the ‘purchase’ button
7. A toast message is displayed indicating the successful purchase of an item
8. Use case ends (Pass)
https://imgur.com/AF9Fjow