Day 6 - If you were testing a “my cart” webpage, what three test cases would you perform first?


 For my day 6 of 30 days challenge I have wrote test cases for "my cart" feature . I considered the following three conditions.

1) Add (Single / Multiple) product/s to cart.

2) Edit Quantity in cart.

3) Remove (single/Multiple) product/s from cart.

Test Case 1- Add single product to cart

1.Select any product.

2.Select Add to Cart icon.


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

Test Case 2- Add multiple products to cart

a .Select any product.

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

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


  • Verify that the 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.


Test Case 3- Edit Quantity in cart


a. Select any product.

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

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

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


  • Verify that the product should be successfully added to cart.

  • Verify that the item's quantity should be successfully edited if the user gives an integer value otherwise a warning message should be displayed to the user.


Test Case 4- Remove single product from cart


a. Select any product.

b. Select Add to Cart icon.

c. Select the Cart icon.

d. Select the Cross symbol to remove the product from the cart.


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


Test Case 5- Remove multiple products from cart


a. Select any product.

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

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

d. Select the Cross symbol to remove both  of the products from the cart.


  • Verify that both the products added successfully  in  cart and the Cart icon should show 2 items in it.

  • Verify that the Products should be removed from the cart and the Cart icon should  show 0 items.







Comments

Popular posts from this blog

Software Testing Heuristics and mnemonics.

Day 13 Share three testing ideas for an ecommerce website.

What is Quality