If you were testing a “my cart” webpage, what three test cases would you perform first? Share them!
I had some experience with this when I was testing our store ahead of the TestBash Brighton pick ups. I also like to randomly test carts on different sites to see how they compare. I’m not really one for test cases so these are more ideas that might inspire you in your own test case creation.
My approach was:
Try selecting a greater quantity of items than we had available. Once I got to the cart, was I told that we didn’t have that quantity available and I could order X (the quantity in stock) instead and the price was adjusted accordingly.
On eBay recently, I was trying to buy a large quantity of different items. I tried to add 5 different items to my cart, I was on to my 6th when I noticed that my basket only had 4 items. I tested this a few different ways once I noticed it. I explored what happened if I was purchasing everything from the same seller, 5 different sellers, the same item in a quantity of 5 etc.
I always always try negative numbers. If I see an update cart option I will always see if I can purchase a negative amount of items.
The sanity test I consider to perform first on a "my cart webpage is –
Add a few items to cart with multiple quantities. Check if quantities and total price is correct (Simply case Total = Quantity * Unit price, or more complicated cases with discounts for large quantity purchase)
Decrease the quantity of multiple items down to zero. Check if the items with zero quantities are automatically removed
Perform check out to test if
The total cost is correct
Shipment price is correct included and displayed to customer
Estimated arrival date is correctly shown
it can automatically forward to payment page after the purchase is confirmed by user
My cart webpage would include exhaustive test cases, since you have asked for top3…here goes my list
Add multiple items of multiple count which may include bracketed negative scenarios as well (even add 0 to check if its not added or throws error message, to order above the available count to check if it intimates the user, add negative number which the application should not allow)
To check if discounts, promos, coupons are applied
Check out and finish the transaction to see if its successful
I’d test the basic functioniality of a shopping cart first, e.g. :
Can I add articles to the shopping cart?
Can I leave the shopping cart and the articles are still there when I re-enter it?
Can I change or remove articles from the cart?
(of course there are many more, but if I have to confine myself to the first three, these sound reasonable to me; all of these I’ve seen fail at real shopping carts…)