Functionality | Test | Type | Status | Results |
---|---|---|---|---|
create_user | Use login id with alphanumeric characters | Positive | Pass | Login id accepted |
Use login id with extended characters (e.g., ') | Positive | Pass | Login id accepted | |
Use alphanumeric password | Positive | Pass | Password accepted | |
Use password with extended characters (e.g., !) | Positive | Pass | Password accepted | |
Attempt to use empty user name | Negative | Pass | Got correct message: "Must provide username" | |
Attempt to use empty password | Negative | Pass | Got correct error message: "Must enter a password" | |
login | Login with valid userid and password | Positive | Pass | User is logged in |
Attempt to login with invalid user id | Negative | Pass | Got correct error message: Failed to login as username | |
Attempt to login with invalid password | Negative | Pass | Got correct error message: Failed to login as username | |
add_image | Add images with different path lenghts, name lenghts | Positive | Pass | File uploaded |
Add image with complex path image name (nested directories) | Positive | Pass | File uploaded | |
Add image using relative path for image name | Positive | Pass | File uploaded | |
Add image with invalid path (non existing image file) | Negative | Pass with limitation | Server terminates connection with client if the protocol diverges (e.g., expects image but gets integer) This is a limitation: client connection will be severed and client must be restarted |
|
Attempt to add a non image file (e.g., file.txt) | Negative | Pass | Got correct error message: Unknown image file format | |
Attempt to add a non image file with image extension name (e.g., file.jpeg) | Negative | Pass | Got correct error message: Unknown image file format | |
Add image that has name with spaces | Positive | Pass | File uploaded | |
Add image that has name with special characters | Positive | Pass | File uploaded | |
Add image again | Negative | Pass | Got correct error message: Image <image_name> could not be added | |
Add image with price expressed as positive integer | Positive | Pass | File uploaded | |
Add image with price expressed as decimal | Positive | Pass | File uploaded | |
Add image with prices expressed as negative number | Negative | Pass | Got correct error message: minimum cost is zero | |
Add image with prices expressed = 0 | Positive | Pass | Accept "free" images (design decision) | |
Add image with quantity expressed as a positive integer | Positive | Pass | File uploaded | |
Add image with quantity expressed as decimal number | Negative | Pass | Got correct error message: invalid int value | |
Add image with quantity =0 | Positive | Pass | Image is uploaded with 0 quantity | |
Add image with quantity expressed as negative number | Negative | Pass | Got correct error message: "Minimum quantity is 0" | |
Add image with one valid tag | Positive | Pass | File uploaded | |
Add image with several valid tags | Positive | Pass | File uploaded | |
Add image with invalid tag | Negative | Pass | Message indicating choice is invalid | |
update_image | Change quantity | Positive | Pass | Quantity is updated |
Change price | Positive | Pass | Price is updated | |
browse_images | Run command | Positive | Pass | All images are listed |
Empty repository | Positive | Pass | Got message: No images found in the repository | |
browse_by_tag | Browse image with valid tag (one match) | Positive | Pass | Valid image appears |
Browse image with valid tag (multiple matches) | Positive | Pass | Valid image appears | |
Browse image with multiple valid tags | Positive | Pass | Valid images appear | |
search_by_image | Search image | Positive | Pass | Images are displayed by order of relevance |
Search image with path that is not an image | Negative | Pass | Got correct error message: Unknown image file format | |
Add several images sequentially | Positive | Pass | Images added to cart | |
Add to cart functionality | Positive | Pass | Cart is loaded with right amounts, prices, image | |
Add to cart wrong product id | Negative | Pass | Got correct error message: invalid choice | |
Add to cart -- quantity exceeds | Negative | Pass | Got correct error message: Quantity entered for <image_id> exceeds existing stock of | |
delete_image | Delete valid image | Positive | Pass | Image is deleted |
Delete image in cart | Pass | Warning: Product is in shopping cart, do you want to continue and remove it? (design decision) | ||
Delete invalid image_id | Got correct error message: image <image_id> could not be deleted | |||
update_in_cart | Update item in shoppping cart changing price | Positive | Pass | Price is updated |
Update item in shoppping cart changing quantity | Positive | Pass | Quantity is updated | |
Update item in shoppping cart changing quantity so it is 0 | Positive | Pass | Item is removed from shopping cart | |
Attempt to update non existing item | Negatiive | Pass | Got correct error message: Product <image_id> not in the cart | |
Update item in shoppping cart with invalid quantity (negative) | Negative | Pass | Got correct error message: Product <image_id> cannot have a negative quantity | |
Update cart with quantity > stock | Negative | Pass | Got correct error message: requested quantity exceeds stocked amount | |
view_cart | Ensure cart reflects items add to it with right price and quantity | Positive only | Pass | Shopping cart displays correct information |
remove_from_cart | Remove existing item from shopping cart | Positive | Pass | Item is removed from shopping cart |
Remove non existing item from shopping cart | Negative | Pass | Warning: Product {id] was not in the cart | |
exit | Ability to logout | Positive | Pass | client exit; and servers disconnects client |
help | Able to see help | Positive | Pass | Help is diplayed |