To verify that users can successfully add items to their shopping cart.
Preconditions:
The user is logged in or has an active session on the e-commerce platform.
The product details page is accessible and displays available products.
Test Steps:
Navigate to the product details page of the desired product.
Verify that the product details, including the name, price, and description, are correctly displayed.
Locate the "Add to Cart" button or a similar option.
Click the "Add to Cart" button.
Expected Results:
The product should be successfully added to the user's shopping cart.
A confirmation message or visual indicator (e.g., a mini cart update) should appear, confirming the addition.
The total number of items in the cart (if displayed) should be updated to reflect the new addition.
The user should have the option to continue shopping or proceed to the cart for checkout.
Post-Conditions:
The product is in the user's shopping cart.
The user can add more items to the cart or proceed to checkout.
The user can view the contents of the cart at any time.
Test Case: Adding Multiple Items to Cart
Objective:
To verify that users can add multiple items to their shopping cart.
Preconditions:
The user is logged in or has an active session on the e-commerce platform.
The product details page is accessible and displays available products.
Test Steps:
Navigate to the product details page of one product.
Click the "Add to Cart" button.
Return to the product list or search for another product.
Navigate to the product details page of a different product.
Click the "Add to Cart" button for the second product.
Expected Results:
Both products should be successfully added to the user's shopping cart.
The confirmation message or mini cart update should accurately reflect the addition of both products.
The total number of items in the cart should be updated to include both items.
The user should have the option to continue shopping or proceed to the cart for checkout.
Post-Conditions:
Both products are in the user's shopping cart.
The user can add more items to the cart or proceed to checkout.
The user can view the contents of the cart, which should include both items.
These test cases help ensure that users can easily add products to their shopping cart and that the cart behaves as expected during the shopping process.
Test Case: Add to Cart
Objective:
To verify that users can successfully add items to their shopping cart.
Preconditions:
Test Steps:
Expected Results:
Post-Conditions:
Test Case: Adding Multiple Items to Cart
Objective:
To verify that users can add multiple items to their shopping cart.
Preconditions:
Test Steps:
Expected Results:
Post-Conditions:
These test cases help ensure that users can easily add products to their shopping cart and that the cart behaves as expected during the shopping process.