In this article, we discuss test cases for online book shopping. Recently we had one request where the user wanted to know how the process of the book shopping online is tested. Now there are plenty of book selling websites. And almost every one of them have their own flow of shopping. However despite having different flow, there are few common things among them. So for the sake of simplicity let’s take a look at the generalized flow of the book shopping and test it’s steps.
Flow of Purchase
Let’s assume user lands on the webpage through search engine. You can also say the user landed through bookmark or any other means. After landing on the shopping website. User checks on the website if there is his specified book available on front page. If not, then he’ll naturally search for the book by typing it’s name. If the bookshop is something like Amazon then user may get search recommendation. If it’s not Amazon then it’s possible that he may need to hit the search button. And this way he goes to the search results page. Here user can find the specified book. And then that book can be clicked for more information. And in this step the user lands on the dedicated page for the book. Here user can choose “buy now” option by clicking on it. Some website may have “Buy” button. There is also going to be option for quantity. And in some cases you may find “Add to wishlist” and “Add to favorites”. Let’s discard those non buyer options. And now that book is added to the “shopping cart”. Let’s proeed with the flow of the payment.
Flow of Payment
When your product is added to the cart. In this case the product is book. That book will show it’s price and also the quantity. You can see the total price of the product in this cart page too. Here you can click on pay now button. In some cases you may find the page has the check out button.
On the next page you get the option to choose the payment method. In case of the payment gateway you may find different payout methods.
Test Scenarios for Cart
1. Confirm if the item is added to the cart.
2. Confirm if the quantity is as expected for the order.
3. Confirm if the delivery charges are added into the cart page.
4. Check the amount payable is correct.
5. Check if the cart has the place order and continue shopping buttons.
6. Check if the shopping cart shows the total savings amount.
7. Check the delivery date of the item.
After you continue the process on this page your order goes for the delivery page. And here you have to either use the existing address of yours or add new address. This way you can allow the website to deliver your product.
Test Scenarios for Delivery Address
1. Check if the delivery address page shows your address proper.
2. Check if the delivery address page has option to add or remove your address.
3. Check if the delivery options include the different prices for different dates.
After confirmation from this delivery address page, you’d be prompted for the payment options. Depending on your site you’d get different options. In my case the payment page has the following options.
Test Scenarios for Payment options
1. Check if the payment option phonepe, credit card, debit card and netbanking is given.
2. Check if the phonepe option allows UPI or balance option.
3. Check if the EMI option is enabled or disabled.
4. Check if the cash on delivery option is available or not.
5. Check if the bank offers are accepted in this process.
6. Check if the process allows you to add gift card code into this.
After this step you can find the process moves to the final stage where you’re supposed to pay. And here the testing options are different. But you get the idea of the flow of the payment and other options. Your options for managing the payment will be different. The scenarios for the test will vary depending on the site under test. So I have given mostly the generic scenarios so that you can get the idea of what you can test. If you want more deep tests then you may have to pick specific website and then cover the scenarios respectively. You may want to check out test cases for payment gateway.
I hope you found the information above useful. You can let me know if you have any questions. You can share the URL of this article on Facebook groups and friends. I’d appreciate if you can let freshers know about this website.
Shiv teja says
Its gud. Now I got clarification about all these but adding negative cases would give us a better understanding.thank u