• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

SoftwareTestingo - Interview Questions, Tutorial & Test Cases Template Examples

SoftwareTestingo - Interview Questions, Tutorial & Test Cases Template Examples

  • Home
  • Interview Questions
  • Java
  • Java Programs
  • Selenium
  • Selenium Programs
  • Manual Testing
  • Test Cases
  • Difference
  • Tools
  • SQL
  • Contact Us
  • Search
SoftwareTestingo » Manual Testing » Test Cases Example » Test Cases For Shopping Cart

Test Cases For Shopping Cart

Last Updated on: April 6, 2022 By Softwaretestingo Editorial Board

What We Are Learn On This Post

  • Test Cases For 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 Shopping Cart
Post Type:Test Case Template
Published On:www.softwaretestingo.com
Applicable For:Freshers & Experience
Join Here:Telegram Group Software Testingo

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 the items that you are purchasing.

Test Cases For Shopping Cart

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

Similar Test Cases

SoftwareTestingo Test Cases
  • Test Case For Online Money Transactions
  • Test Case For Online Payment
  • Test Case For Payment Functionality
  • Test Case For Payment Gateway Template
  • Test Case For Shopping Scenario
  • Test Case For Telecom Billing System

Single Product Add To Cart:

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

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

Test Scenario For Single Product Add To Cart

  • Verify that the correct PDP page is shown with all the necessary links and information.
  • Verify that product should be successfully added to the cart and in the Cart icon, 1 should be displayed.

Multiple Products Add To Cart:

When you are trying to add multiple products to your cart

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

Test Scenario:

  • Verify that the correct PDP page is shown with all the necessary links and information.
  • Verify that product should be successfully added to the cart.
  • Verify that both the products should be shown in the cart and in the cart icon, 2 should be displayed.
Test Cases For Shopping Cart
Test Cases For Shopping Cart

Edit Quantity Validation Cart:

Now we are going to check the test scenario Edit Quantity Validation Cart.

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

Test Scenarios:

  • Verify that the correct PDP page is shown with all the necessary links and information.
  • Verify that 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.

Edit Quantity Cart Boundry Value:

Test steps for Edit Quantity Cart Boundry Value:

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

Test Scenarios:

  • Verify that the correct PDP page is shown with all the necessary links and information.
  • Verify that product should be successfully added to the cart.
  • Verify that if the item quantity count is greater than 5 then checkout is not allowed and an appropriate error should be presented to the user for the same.

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 Add to Cart icon for the Product.
  • Try Editing the quantity of the product in the cart with a 5 and try checkout.

Test Scenarios:

  • Verify that the correct PDP page is shown with all the necessary links and information.
  • Verify that product should be successfully added to the cart.
  • Verify that if the item’s quantity count is greater than its actual inventory count then checkout should not be allowed and an appropriate error should be presented to the user for the same.

Single Product Remove From Cart:

  • Select any product.
  • Select 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 is shown with all the necessary links and information.
  • Verify that product should be successfully added to cart and Cart Icon should show 1 item in it.
  • 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.

Multiple Products Remove From Cart:

  • Select any product.
  • Select Add to Cart icon for the First Product.
  • Select 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 is shown with all the necessary links and information.
  • Verify that product should be successfully added to cart and Cart Icon should show 1 item in it.
  • Verify that both the products should be shown in the cart and Cart Icon should show 2 items in it.
  • Verify that the Product should be removed from the cart and the Cart icon should show 1 item.

Multiple Products Remove From Cart:

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

Test Scenarios:

  • Verify that the correct PDP page is shown with all the necessary links and information.
  • Verify that product should be successfully added to cart and Cart Icon should show 1 item in it.
  • Verify that all the 3 products should be shown in the cart and Cart Icon should show 3 items in it.
  • Verify that the 2 Products should be removed from the cart and the Cart icon should show 1 item.

Buy Now Option of Shopping Cart Page:

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

Test Scenarios:

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

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 successfully launched and Hello, Guest should be shown at the top of the app.
  • Verify that the correct PDP page with all the payment methods should be shown to the user and it should ask for the user to Sign In.
  • Verify that the user should successfully checkout the product.

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 successfully launched and Hello, Username should be shown at the top of the app.
  • Verify that the correct PDP page with all the payment methods should be shown to the user.
  • Verify that the user should successfully checkout the product.

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.

Product Title Max String Length in Shopping Cart:

  • Observe the uniformity in Product title maximum string length for any particular product at various pages like PDP, wishlist, cart, Checkout, etc.

Test Scenarios:

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

Delivery Location Warning:

  • Try Checkout for the product which 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 that “Change delivery area”.

Order Confirmation Msg OrderId Validation:

  • Do check out any of the products.
  • Check for the order Id (received from the order confirmation message) is 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 should be correct and OMS should have an entry for that.

Order Confirmation Msg Links Validation:

  • Do check out any of the products.
  • Check for the different links (share, continue shopping) available in the order confirmation message.

Test Scenarios:

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

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 of the products with the ‘Click To Call’ button.
  • Verify that the Call should be made to the test shopping call center.

Gift Coupon:

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

Test Scenarios:

  • Verify Gift Coupon availability along with 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.

One Time Discount Coupon:

  • Select a product and use the discount coupon while checkout 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.

One Time Discount Coupon Duplicacy:

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

Test Scenarios:

  • Verify that the app should pop up a warning message stating “The coupon has been already used”

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 pop up a warning message stating “Invalid code”.

Delivery Duration Estimation On Check out:

  • While performing checkout for any of the products, 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.

Product Checkout Based On Quantity:

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

Test Scenarios:

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

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

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 Product

  • Launch the application.
  • Move multiple products having the COD method available with them into the Cart.
  • Move an expensive product having COD not available for it.
  • Try checkout 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 either remove the product without the COD option or change the payment mode.

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 should be working fine

Across Platform Cart Update

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

We hope these test cases help to validate the various test scenarios of the shopping carts. If you still found any missing test scenarios then you can inform us about those in the comment section.

    Filed Under: Test Cases Example

    Reader Interactions

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    Primary Sidebar

    Join SoftwareTestingo Telegram Group

    Categories

    Copyright © 2022 SoftwareTestingo.com ~ Contact Us ~ Sitemap ~ Privacy Policy ~ Testing Careers