Functional test cases of shopping cart.

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

SingleProductAddToCart
1. Select any product.
2. Select Add to Cart icon.

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 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.

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.
3. 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).

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.
3. 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
links and information.
2. Verify that product should be successfully added to cart.
3. Verify that if the items quantitiy count is greater then 5 then chekout 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 inventry 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
links and information.
2. Verify that product should be successfully added to cart.
3. Verify that if the items quantitiy count is greater then its actual inventry count then chekout 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
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 the product added in cart should be displayed.
4. 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
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 all the 3 products should be shown in the cart and Cart Icon should show 3 items in it.
4. 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.
1. Try completing the check out process by leaving any mandatory field blank in shipping or billing address.

1. Application should pop up a corresponding error message.

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

1. Verify that the product title should be  of uniform string at all the pages.

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

1. Verify that application should give a warning message that “Change delivery area”.

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.

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

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

1. Verify that the checkout page should have product Code for each of the product with ‘Click To Call’ button.
2. Verify that the Call should made to the test shopping call centre.

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

1. Verify Gift Coupon availability along with its code should be tagged with the product in a user friendly manner.
2. Verify that Gift Coupon amount should be successfully deducted during checkout.

OneTimeDiscountCoupon
1. 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
1. 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
1. Select a product and entering an Invalid discount coupon code / GiftCoupen in the field specified at the checkout page.

1. Verify that app should pops up warning message stating “Invalid code”.

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

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

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

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

PaymentOptions
1. Open the PDP page for any of the Product.
2. Select the Payment option link.

1. Verify that the PDP page should be displayed correctly.
2. Verify that all 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

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

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

ValidateUnavailabilityOfCODforExpensive items-SingleProduct
1. Launch the application
2. Try checkout of an expensive product via COD method.

1. Verify that app is successfully launched.
2. 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 availble for it.
2. Try checkout you cart.

1. Verify that app is successfully launched.
2. Verify that products are added to the user’s cart.
3. Verify that the product is added to the user’s cart.
2. Verify that an appropriate error message should be dispalyed to either remove the product without COD option or chnage the payment mode.

PaymentModeCheck
1. Open the PDP page for any of the Product.
2. 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

1. Verify that the PDP page should be displayed correctly.
2. 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.

 

Advertisements

One thought on “Functional test cases of shopping cart.

  1. There are few more cases and may be considered while testing (Ignore if already covered and I missed reading):

    1. Verify if the cart keeps track of its state across instances of browser by adding products to cart, closing the browser instance and opening it again.
    If the state is maintained by browser cookies, verify the same having cookies disabled.

    2. Browser Compatibility: Most of the websites use CSS scripts. Verify all the test cases in all commonly used browser versions as there may be a chance of browser not supporting the script.

    3. Verify the maximum limit of items that can be added to cart. Try adding as much as possible if there is no limit. Verify if the paging is used if the items are more to render on a page.

    4. Out of stock scenario: Generally, if an item is out of stock the “Add to cart” option would not be available. Now think about this scenario:

    I have added an item to my cart but logged out before proceeding to check out.
    Logged-in again after some time and that item got out of stock. Will the cart still show the item? If no, will there be any notification to user that the item(s) that was added to cart is out of stock and will not be shown anymore. If yes, will it show that message at the time of check out?

    Another scenario is that if a user has added an item to cart and later the Item price has changed, will the cart reflect the changes?

    5. Duplicate Items: Verify the cart does not hold duplicate items if user has added same item in different instances.

    Load testing is also very important aspect of a shopping website in my opinion. I see popular websites keep coming with “Flash Sales” for a certain period of time. Lot of times I observed/heard the cases of website crashes if lot of users tried to add same item into their cart. We should definitely test making concurrent connections to the system and add the same item to the cart.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s