Question 3 (2 points):
You are given the following use case for an online shopping system. The system allows customers to add items to their shopping cart, apply discount codes, and proceed to checkout.Your task is to create functional black-box test cases based on this use case using use-case-based testing techniques.
Use Case: Online Shopping System
Use Case Name: Place an Order
Primary Actor: Customer
Preconditions:
The customer must be logged into the system.
The shopping cart must have at least one item.
Main Success Scenario:
1. The customer adds items to their shopping cart.
2. The customer applies a discount code (optional).
3. The system validates the discount code.
4. The customer proceeds to checkout.
5. The system displays the total amount, including discounts.
6. The customer provides payment information.
7. The system processes the payment.
8. The system confirms the order and generates an order confirmation.
Alternate Scenarios:
A1: If the shopping cart is empty when proceeding to checkout, the system prompts the customer to add items to the cart.
A2: If the discount code is invalid, the system displays an error message and allows the
customer to proceed without applying the discount.A3: If the payment fails (e.g., due to insufficient funds or incorrect card details), the system notifies the customer and prompts them to retry payment.
Postconditions
+ 100%
Zoom
Close