Use Case Testing 31010922037 ST Practical
Use Case Testing 31010922037 ST Practical
Class:- Ty.bsc.IT.
Problem Statement:
Construct the use case testing for the user registration scenario
Testing Scenarios:
Weak Password Unique username, valid Error message for weak
email, weak password. password.
Password Mismatch Unique username, valid Error message for password
email, password, and mismatch.
nonmatching confirm
password.
Conclusion:
This scenario outlines a comprehensive use case for user registration, detailing the main flow,
alternative flows, testing scenarios, and expected outcomes. It can be used to ensure that the
registration feature functions correctly under various conditions.
Practical no:
Problem Statement:
Construct the use case testing for the online shopping cart scenario
Testing Scenarios:
Test case Input Expected Output
Successful Addition of Item User clicks on add to cart System displays “Item
to Cart button added to cart”
View Cart Functionality The user clicks on the "Cart" The system displays a list of
icon to view their selected items in the cart with details
items. such as:
- Product name
- Quantity
- Price
- Total price
Update Item Quantity in User adds or subtracts item The system updates the total
Cart quantity from the cart price accordingly.
Remove Item from Cart User clicks remove item System removes the item
button in the cart from the cart
Apply Valid Discount Code The user enters a valid The system validates the
discount code in the code and applies the
designated field. discount to the total price.
Apply Invalid Discount User enters invalid discount The system displays an error
Code code message “Invalid discount
code”
Successful Checkout The user clicks the System proceeds to
Process "Checkout" button. checkout the items
Out of Stock Item Attempt User clicks on the checkout System displays an error
button while an item in the message “Item out of stock”
cart is out of stock
Exceeding Quantity Limit User clicks on the checkout System displays an error
button while items exceeds message “Exceeding
the limit of cart quantity limit”
Conclusion:
This detailed use case scenario outlines the complete shopping cart functionality, including
the main flow, alternative flows, postconditions, and specific testing scenarios. This
comprehensive approach ensures that all aspects of the shopping cart feature are thoroughly
tested.