top of page

Functional test cases of shopping cart.

  • Writer: khyati sehgal
    khyati sehgal
  • Feb 16, 2017
  • 7 min read

Here are some areas which we can focus on while testing shopping cart:-

SingleProductAddToCart

  1. Select any product.

  2. Select Add to Cart icon.

  3. Verify that the correct PDP page is shown with all the necessary

  4. links and information.

  5. Verify that product should be successfully added to cart and in the Cart icon, 1 should be displayed.

MultipleProductsAddToCart

  1. Select any product.

  2. Select Add to Cart icon for the First Product.

  3. Select Add to Cart icon for the Second Product.

  4. Verify that the correct PDP page is shown with all the necessary links and information.

  5. Verify that product should be successfully added to cart.

  6. Verify that both the products should be shown in the cart and in the cart icon, 2 should be displayed.

EditQuantityValidationCart

  1. Select any product.

  2. Select Add to Cart icon for the First Product.

  3. Select Add to Cart icon for the Second Product.

  4. Try editing the quantity of the item in cart with valid and invalid quantities(only spaces, negative values, 0, characters etc).

  5. Verify that the correct PDP page is shown with all the necessary

  6. links and information.

  7. Verify that product should be successfully added to cart.

  8. Verify that the items quantity should be successfully edited if user gives a integer value otherwise a warning message should be displayed to the user.

EditQuantityCartBoundryVaue

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

  1. Verify that the correct PDP page is shown with all the necessary

  2. links and information.

  3. Verify that product should be successfully added to cart.

  4. Verify that if the items 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

1. Select any product whose inventory count is less then 5 (to be validated at backend) 2. Select Add to Cart icon for the Product. 3. Try Editing the quantity of the product in cart with a 5 and try checkout.

  1. Verify that the correct PDP page is shown with all the necessary

  2. links and information.

  3. Verify that product should be successfully added to cart.

  4. Verify that if the items quantity count is greater than its actual inventory count then checkout should not allowed and an appropriate error should be presented to the user for the same.

SingleProductRemoveFromCart

1. Select any product. 2. Select Add to Cart icon. 3. Select the Cart icon. 4. Select the Cross symbol to remove the product from the cart.

  1. Verify that the correct PDP page is shown with all the necessary

  2. links and information.

  3. Verify that product should be successfully added to cart and Cart Icon should show 1 item in it.

  4. Verify that the product added in cart should be displayed.

  5. Verify that the Product should be removed from the cart and Cart icon should show 0 items.

MultipleProductsRemoveFromCart

1. Select any product. 2. Select Add to Cart icon for the First Product. 3. Select Add to Cart icon for the Second Product. 4. Select the Cross symbol to remove the any of the product from the cart.

  1. Verify that the correct PDP page is shown with all the necessary links and information.

  2. Verify that product should be successfully added to cart and Cart Icon should show 1 item in it.

  3. Verify that both the products should be shown in the cart and Cart Icon should show 2 items in it.

  4. Verify that the Product should be removed from the cart and Cart icon should show 1 items.

MultipleProductsRemoveFromCart

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

  1. Verify that the correct PDP page is shown with all the necessary

  2. links and information.

  3. Verify that product should be successfully added to cart and Cart Icon should show 1 item in it.

  4. Verify that all the 3 products should be shown in the cart and Cart Icon should show 3 items in it.

  5. Verify that the 2 Products should be removed from the cart and Cart icon should show 1 items.

BuyNow

1. Select any product. 2. Select Buy Now option.

  1. Verify that the correct PDP page is shown with all the necessary links and information.

  2. Verify that Product purchase page with all the available payment methods should be shown to the user.

GuestCheckout

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

  1. Verify that the test app should be successfully launched and Hello, Guest should be shown in the top of the app.

  2. Verify that the correct PDP page with all the payment methods should be shown to the user and it should ask for user Sign In.

  3. Verify that user should successful checkout the product.

RegisteredCheckOut

1. Launch the test app. Sign in. 2. Select any product to purchase. 3. Checkout.

  1. Verify that the test app should be successfully launched and Hello, Username should be shown in the top of the app.

  2. Verify that the correct PDP page with all the payment methods should be shown to the user.

  3. Verify that user should successful checkout the product.

CheckOutMandatoryFieldValidaion.

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

CheckOutMandatoryFieldValidaion

ProductTitleMaxStringLength

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

ProductTitleMaxStringLength

DeliveryLocationWarning

Try Checkout for product which is not deliverable in your area (cross verify it through Check delivery area options)

DeliveryLocationWarning

OrderConfirmationMsg OrderIdValidation 1. Do checkout for any of the product. 2. Check for the order Id (received from the order confirmation message) is generated in the OMS.

  1. Verify that the Order Confirmation message should be shown to the user.

  2. Verify that the order id shown in the Order confirmation message should be correct and OMS should have entry for that.

OrderConfirmationMsg LinksValidation 1. Do checkout for any of the product. 2. Check for the different links (share, continue shopping) available in the order confirmation message.

OrderConfirmationMsg LinksValidation

ClickToCallValidation 1. Observe the checkout page for any of the Product. 2. Click on the ‘Click to call’ button.

ClickToCallValidation

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

GiftCoupon

OneTimeDiscountCoupon

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

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

OneTimeDiscountCouponDuplicacy

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.

  1. Verify that app should pops up warning message stating “The coupon has been already used”

OneTimeDiscountCouponInvalidCode Select a product and entering an Invalid discount coupon code / GiftCoupon in the field specified at the checkout page.

OneTimeDiscountCouponInvalidCode

DeliveryDurationEstimationOnCheck out While performing checkout for any of the product, Analyse the estimated delivery time on the checkout page.

DeliveryDurationEstimationOnCheckout

ProductCheckoutBasedOnQuantity

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

ProductCheckoutBasedOnQuantity

PaymentOptions

  1. Open the PDP page for any of the Product.

  2. Select the Payment option link.

  3. Verify that the PDP page should be displayed correctly.

  4. Verify that all below options should be displayed :

  5. Internet Banking

  6. Credit Card (Visa/Master)

  7. Debit Card (Visa/MasterCard/Maestro)

  8. Paid by Gift certificate

  9. Airtel Money

  10. EMI option of the Credit Card

  11. Check/DD

CODPages

1. Open the PDP page for any of the Product. 2. Select the COD option and check all the pages associated with COD.

Cash on Delivery-CODPages

ValidateUnavailabilityOfCODforExpensive items-SingleProduct

  1. Launch the application

  2. Try checkout of an expensive product via COD method.

  3. Verify that app is successfully launched.

  4. Verify that COD option for checkout is not available for the expensive product.

ValidateUnavailabilityOfCODforExpensive items-MultipleProduct

  1. Launch the application.

  2. Move multiple product having COD method available with them into the Cart.

  3. Move an expensive product having COD not available for it.

  4. Try checkout you cart.

  5. Verify that app is successfully launched.

  6. Verify that products are added to the user’s cart.

  7. Verify that the product is added to the user’s cart.

  8. Verify that an appropriate error message should be displayed to either remove the product without COD option or change the payment mode.

PaymentModeCheck

  1. Open the PDP page for any of the Product.

  2. Check all the below payment modes one by one :

  3. Internet Banking

  4. Credit Card (Visa/Master)

  5. Debit Card (Visa/MasterCard/Maestro)

  6. Paid by Gift certificate

  7. Airtel Money

  8. EMI option of the Credit Card

  9. Check/DD

  10. Verify that the PDP page should be displayed correctly.

  11. Verify that all the payment modes should be working fine

Across Platform cart update

Open app add a product to cart(Let say from mobile app)

Login with the same credentials from different platform let say mobile website and make changes in cart – by adding/removing element from cart.

Update shall see the change happening in the cart whenever screen will be refreshed.

Commentaires


bottom of page