Test Cases For Amazon Shopping Cart

Test Cases For Amazon Shopping Cart: Shopping carts are one of the most popular and easy-to-use tools on the internet. You can find them on almost every website, and they make it easy for you to purchase items from the website you’re on. In this article, we’ll see different test scenarios of shopping carts.

Post On:Test Cases For Amazon Shopping Cart
Post Type:Test Case Example For Web Application
Published On:www.softwaretestingo.com
Applicable For:Freshers & Experience

Online shopping has become a common habit for many people. This is because it is convenient, fast, and hassle-free. In addition, shopping carts are an excellent way to keep track of your shopping transactions and keep track of your inventory. This is because they allow you to easily compare prices and find the best deal for your purchase items.

Test Cases For Shopping Cart

In this article, we are going to cover all the possible test scenarios of the test cases for the Amazon shopping cart:

Shopping Cart Test Cases: Single Product Add To Cart

Are you looking to add a single product to your shopping cart? Then, for that, you need to:

  • Select any product.
  • Select the Add to Cart icon.

Amazon Add To Cart Test Cases: Single Product Add To Cart

  • Verify that the correct PDP page contains all the necessary links and information.
  • Verify that the product has been successfully added to the cart, and in the Cart icon, one should be displayed.

Test Cases For Amazon Add To Cart: Multiple Products Add To Cart

When you are trying to add multiple products to your cart

  • Select any product.
  • Select the Add to Cart icon for the First Product.
  • Select the Add to Cart icon for the Second Product.

Shopping Cart Test Cases

  • Verify that the correct PDP page contains all the necessary links and information.
  • Verify that the product should be successfully added to the cart.
  • Verify that both the products should be shown in the cart and the cart icon two should be displayed.
Test Cases For Amazon Shopping Cart 1

Test Case For Amazon Shopping Cart: Edit Quantity Validation Cart

Now, we will check the test scenario Edit Quantity Validation Cart.

  • Select any product.
  • Select the Add to Cart icon for the First Product.
  • Select the Add to Cart icon for the Second Product.
  • Try editing the item quantity in the cart with valid and invalid quantities(only spaces, negative values, 0, characters, etc.).

Test Scenarios:

  • Verify that the correct PDP page contains all the necessary links and information.
  • Verify that the product should be successfully added to the cart.
  • Verify that the quantity of the items should be successfully edited if the user gives an integer value; otherwise, a warning message should be displayed to the user.

Test Case For Shopping Cart: Edit Quantity Cart Boundry Value

Test steps for Edit Quantity Cart Boundry Value:

  • Select any product.
  • Select the Add to Cart icon for the Product.
  • Try editing the item quantity in the cart with a value greater than five, and try checkout.

Test Scenarios:

  • Verify that the correct PDP page contains all the necessary links and information.
  • Verify that the product should be successfully added to the cart.
  • Verify that checkout is not allowed if the item quantity count exceeds 5, and an appropriate error should be presented to the user.

Test Case For Amazon Shopping Cart: Cart – Backend Sync Validation of Shopping Cart Page

  • Select any product whose inventory count is less than 5 (to be validated at the backend)
  • Select the Add to Cart icon for the Product.
  • Try editing the product quantity in the cart with a five and try checkout.

Test Scenarios:

  • Verify that the correct PDP page contains all the necessary links and information.
  • Verify that the product should be successfully added to the cart.
  • Verify that checkout should not be allowed if the item’s quantity exceeds its actual inventory count, and an appropriate error should be presented to the user.

Test Case For Amazon Shopping Cart: Single Product Remove From Cart

  • Select any product.
  • Select the Add to Cart icon.
  • Select the Cart icon.
  • Select the Cross symbol to remove the product from the cart.

Test Scenarios:

  • Verify that the correct PDP page contains all the necessary links and information.
  • Verify that the product should be successfully added to the cart and that the Cart Icon should show 1 item.
  • Verify that the product added to the cart should be displayed.
  • Verify that the Product should be removed from the cart, and the Cart icon should show 0 items.

Test Cases For Shopping Cart: Multiple Products Remove From Cart

  • Select any product.
  • Select the Add to Cart icon for the First Product.
  • Select the Add to Cart icon for the Second Product.
  • Select the Cross symbol to remove any of the products from the cart.

Test Scenarios:

  • Verify that the correct PDP page contains all the necessary links and information.
  • Verify that the product should be successfully added to the cart and that the Cart Icon should show 1 item.
  • Verify that the cart and Cart Icon products should show two items.
  • Verify that the Product should be removed from the cart, and the Cart icon should show 1 item.

Shopping Cart Test Cases: Multiple Products Remove From the Cart

  • Select any product.
  • Select the Add to Cart icon for the First Product.
  • Select the Add to Cart icon for the Second and third Products.
  • Select the Cross symbol to remove any of the two products from the cart.

Test Scenarios:

  • Verify that the correct PDP page contains all the necessary links and information.
  • Verify that the product should be successfully added to the cart and that the Cart Icon should show 1 item.
  • Verify that all three products are in the cart, and the Cart Icon should show three items.
  • Verify that the 2 Products should be removed from the cart, and the Cart icon should show 1 item.

Test Case For Amazon Shopping Cart: Buy Now Option of Shopping Cart Page

  • Select any product.
  • Select the Buy Now option.

Test Scenarios:

  • Verify that the correct PDP page contains all the necessary links and information.
  • Verify that the Product purchase page with all the available payment methods should be shown to the user.

Amazon Add To Cart Test Cases: Guest Checkout of Shopping Cart Page

  • Launch the test app. Do not sign in.
  • Select any product to purchase.
  • Sign In and Checkout.

Test Scenarios:

  • Verify that the test app should be launched successfully, and Hello, Guest should be shown at the top.
  • Verify that the correct PDP page with all the payment methods should be shown to the user, and it should ask the user to Sign In.
  • Verify that the user should successfully check out the product.

Test Case For Shopping Cart: Registered Check Out of Shopping Cart Page

  • Launch the test app. Sign in.
  • Select any product to purchase.
  • Checkout.

Test Scenarios:

  • Verify that the test app should be launched successfully, and Hello, Username should be shown at the top.
  • Verify that the correct PDP page with all the payment methods should be shown to the user.
  • Verify that the user should successfully check out the product.

Amazon Shopping Cart Test Cases: Check Out Mandatory Field Validation

  • Try completing the check-out process by leaving any mandatory field blank in the shipping or billing address.

Test Scenarios:

  • The application should pop up a corresponding error message.

Test Case For Shopping Cart: Product Title Max String Length in Shopping Cart

  • Observe the uniformity in the product title’s maximum string length for any product on various pages like PDP, wishlist, cart, checkout, etc.

Test Scenarios:

  • Verify that the product title should be of uniform string on all the pages.

Amazon Add To Cart Test Cases: Delivery Location Warning

  • Try Checkout for the product that is not deliverable in your area (cross-verify it through Check delivery area options)

Test Scenarios:

  • Verify that the application should give a warning message: “Change delivery area”.

Test Cases For Add To Cart: Order Confirmation Msg OrderId Validation

  • Do check out any of the products.
  • Check for the order ID (received from the order confirmation message) generated in the OMS.

Test Scenarios:

  • Verify that the Order Confirmation message should be shown to the user.
  • Verify that the order ID shown in the Order confirmation message is correct, and OMS should have an entry for that.
  • Do check out any of the products.
  • Check for the different links (share, continue shopping) in the order confirmation message.

Test Scenarios:

  • Verify that the Order Confirmation message should be shown to the user.
  • Verify that the links are direct to the appropriate pages.

Test Case For Shopping Cart: Click To Call Validation

  • Observe the checkout page for any of the Products.
  • Click on the ‘Click to call button.

Test Scenarios:

  • Verify that the checkout page should have a product code for each product with the ‘Click To Call’ button.
  • Verify that the Call should be made to the test shopping call center.

Test Case For Shopping Cart: Gift Coupon

  • Select a product with a Gift Coupon associated with it.
  • Observe the validity of the Coupon during the checkout process.

Test Scenarios:

  • Verify Gift Coupon availability, and its code should be tagged with the product in a user-friendly manner.
  • Verify that the Gift Coupon amount should be successfully deducted during checkout.

Test Case For Shopping Cart: One-Time Discount Coupon

  • Select a product and use the discount coupon while checking out by entering the valid discount coupon code in the field specified.

Test Scenarios:

  • Verify that the Discount Coupon amount should be successfully deducted during checkout.

Test Case For Shopping Cart: One-Time Discount Coupon Duplicacy

  • Select a product and use a duplicate discount coupon (Which was used earlier by same/other) while checkout by entering the valid discount coupon code in the specified field.

Test Scenarios:

  • Verify that the app should send a warning message stating, “The coupon has been already used.”

Shopping Cart Test Cases: One-Time Discount Coupon Invalid Code

  • Select a product and enter an Invalid discount coupon code / GiftCoupen in the field specified on the checkout page.

Test Scenarios:

  • Verify that the app should send a warning message stating “Invalid code”.

Test Cases For Amazon Shopping Cart: Delivery Duration Estimation On Checkout

  • While performing checkout for any product, Analyse the estimated delivery time on the checkout page.

Test Scenarios:

  • Verify that the app should display the estimated delivery time of the purchased product to the user in a user-friendly format.

Test Cases For Amazon Shopping Cart: Product Checkout Based On Quantity

  • Select a particular product in multiple quantities and observe the net payable amount at checkout.

Test Scenarios:

  • Verify that the net amount payable should be correct, including all replicas of the selected single product.

Test Cases For Amazon Shopping Cart: Payment Options of Shopping Cart

  • Open the PDP page for any of the Products.
  • Select the Payment option link.

Test Scenarios:

  • Verify that the PDP page should be displayed correctly.
  • Verify that all the below options should be displayed :
    Internet Banking
    Credit Card (Visa/Master)
    Debit Card (Visa/MasterCard/Maestro)
    Paid by Gift certificate
    Airtel Money
    EMI option of the Credit Card
    Check/DD

Test Cases For Amazon Shopping Cart: COD Pages for Shopping Cart:

  • Open the PDP page for any of the Products.
  • Select the COD option and check all the pages associated with COD.

Test Scenarios:

  • Verify that the PDP page should be displayed correctly.
  • Verify that all the pages associated with COD should be displayed correctly.

Validate Unavailability Of COD for Expensive items – Single Product

  • Launch the application
  • Try checkout of an expensive product via the COD method.

Test Scenarios:

  • Verify that the app is successfully launched.
  • Verify that the COD option for checkout is not available for the expensive product.

Validate Unavailability Of COD for Expensive items – Multiple Products.

  • Launch the application.
  • Move multiple products with the COD method available with them into the cart.
  • Move an expensive product with COD not available for it.
  • Try checking out your cart.

Test Scenarios:

  • Verify that the app is successfully launched.
  • Verify that products are added to the user’s cart.
  • Verify that the product is added to the user’s cart.
  • Verify that an appropriate error message should be displayed to remove the product without the COD option or change the payment mode.

Test Cases For Amazon Shopping Cart: Payment Mode Check

  • Open the PDP page for any of the Products.
  • Check all the below payment modes one by one:
    Internet Banking
    Credit Card (Visa/Master)
    Debit Card (Visa/MasterCard/Maestro)
    Paid by Gift certificate
    Airtel Money
    EMI option of the Credit Card
    Check/DD

Test Scenarios:

  • Verify that the PDP page should be displayed correctly.
  • Verify that all the payment modes are working fine.

Test Cases For Shopping Cart: Across Platform Cart Update

  • Open the app and add a product to the cart (Let’s say from a mobile app )
  • Login with the same credentials from a different platform, say a mobile website and make changes in the cart – by adding/removing elements.
  • Update shall see the change happening in the cart when the screen refreshes.

We hope these test cases help validate the shopping carts’ various test scenarios. You can inform us in the comment section if you still find any missing test scenarios.

I love open-source technologies and am very passionate about software development. I like to share my knowledge with others, especially on technology that's why I have given all the examples as simple as possible to understand for beginners. All the code posted on my blog is developed, compiled, and tested in my development environment. If you find any mistakes or bugs, Please drop an email to softwaretestingo.com@gmail.com, or You can join me on Linkedin.

Leave a Comment