Functional test cases of shopping cart.
- khyati sehgal
- Feb 16, 2017
- 7 min read
Here are some areas which we can focus on while testing shopping cart:-
SingleProductAddToCart
Select any product.
Select Add to Cart icon.
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 in the Cart icon, 1 should be displayed.
MultipleProductsAddToCart
Select any product.
Select Add to Cart icon for the First Product.
Select Add to Cart icon for the Second Product.
Verify that the correct PDP page is shown with all the necessary links and information.
Verify that product should be successfully added to cart.
Verify that both the products should be shown in the cart and in the cart icon, 2 should be displayed.
EditQuantityValidationCart
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 cart with valid and invalid quantities(only spaces, negative values, 0, characters etc).
Verify that the correct PDP page is shown with all the necessary
links and information.
Verify that product should be successfully added to cart.
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.
Verify that the correct PDP page is shown with all the necessary
links and information.
Verify that product should be successfully added to cart.
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.
Verify that the correct PDP page is shown with all the necessary
links and information.
Verify that product should be successfully added to cart.
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.
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 in cart should be displayed.
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.
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 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.
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 Cart icon should show 1 items.
BuyNow
1. Select any product. 2. Select Buy Now option.
Verify that the correct PDP page is shown with all the necessary links and information.
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.
Verify that the test app should be successfully launched and Hello, Guest should be shown in 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 user Sign In.
Verify that user should successful checkout the product.
RegisteredCheckOut
1. Launch the test app. Sign in. 2. Select any product to purchase. 3. Checkout.
Verify that the test app should be successfully launched and Hello, Username should be shown in the top of the app.
Verify that the correct PDP page with all the payment methods should be shown to the user.
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.
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 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.
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.
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
Open the PDP page for any of the Product.
Select the Payment option link.
Verify that the PDP page should be displayed correctly.
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.
Cash on Delivery-CODPages
ValidateUnavailabilityOfCODforExpensive items-SingleProduct
Launch the application
Try checkout of an expensive product via COD method.
Verify that app is successfully launched.
Verify that COD option for checkout is not available for the expensive product.
ValidateUnavailabilityOfCODforExpensive items-MultipleProduct
Launch the application.
Move multiple product having COD method available with them into the Cart.
Move an expensive product having COD not available for it.
Try checkout you cart.
Verify that 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 COD option or change the payment mode.
PaymentModeCheck
Open the PDP page for any of the Product.
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
Verify that the PDP page should be displayed correctly.
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