Test Case For Discount Offer (Shopping Scenarios): It is infrequent that in an interview, we get such real-time scenario test cases like the below we will discuss. And for more test cases, you can visit our manual test case posts.
Three girls in the shopping mall offer ” Rs 10 off on purchases of Rs 50 or above”. Now they all bought some good{girl 1- Rs 67, girl 2- 43, girl 3 – 17}. Now, what they do is they combine their good (girl three and girl 2), and they together pay rs- (57+50= 117), so girl three and girl 2 satisfy the criteria and get Rs 10 off. The amount that can be used is between 1-99. Write the test cases on the above statement.
Post On: | Test Case For Shopping Scenario |
Post Type: | Test Case Template |
Published On: | www.softwaretestingo.com |
Applicable For: | Freshers & Experience |
Join: | Our Telegram Group |
Rs 57 – because the cost of girl 1 is 67 hence 10 rs off
Rs 50- because the cost of a good girl bought (43+17=60) therefore ten off, i.e., 50]

Shopping Scenario Test Cases
- Verify girl A good price is above 50 rupees.
- Verify girl A should get an offer price because Girl As a good price is above 50 rupees.
- Verify the offer price should deduct from the good price of Girl A and should display 57 rupees.
- Verify girl’s good price is less than 50 rupees.
- Verify offer price should not be applicable because girl Bs good price is less than 50 rupees.
- Verify girl C’s good price is less than 50 rupees.
- Verify offer price should not be applicable because the girl’s good price is less than 50 rupees. The constant price should display as 17 rupees.
- Verify the combination of girl B’s and girl C’s goods price is above 50 rupees. The total price is 60rupees. They should get an offer price of 10 rupees.
- Verify the combination of total girl B and Girl C good price should deduct 10 rupees from the total price. And it will display for 50 rupees.
- Verify the combination of girl A and girl B + Girl C should get an offer price of 10 rupees, and the total rupees should be 117.
- Verify they should not get an offer price again from 117 rupees.
Test Cases For Adding Coupon Codes
In this section, I detail the test scenarios for another e-commerce application feature: a coupon or promotional code. This will help you understand what needs to be tested and how to test it.
What is Coupon code Functionality?
- Coupon/Promo Code is used in e-commerce and online shopping websites.
- These codes are generated using programs and consist of letters or numbers
- These codes are used by customers to enter the coupon code text field to get the discount during the purchase.
Coupon code admin pages Test scenarios
- Verify administrator can add the various coupon codes(single or in bulk) and that others are not able to add it
- Verify while adding or removing coupons
- Verify right error messages during adding/generating or removing coupons while adding coupon name or code
Coupon code Customer pages Test scenarios
- Verify for the active/inactive coupon code usage
- Verify for coupon code – restrict coupons based on the date /invalid/expiry dates.
- Verify for each coupon-associated product list both successful and unsuccessful cases
- Verify the coupon code can be used to buy the same product
- Verify the usage of the coupon code for the invalid codes(invalid or special characters or character limits, case sensitive)
- Verify for the email/SMS message follow-ups
Test Cases For Adding Coupon Codes
If you’re looking to use coupon codes on your e-commerce site, here are some test cases to check the functionality of your coupons.
- Check that Admin can add coupon codes.
- Check that users other than Admin do not have permission to add coupon codes.
- Check that Admin can add coupon codes through
- Store Administration–>Coupons—>Add new Coupon
- Check that Admin can add coupon code by directly opening the node id
e.g., Sitename/Admin/store/coupons/add - Check that an error message will be displayed if mandatory fields leave empty.
- Check that Admin can add Coupon Name.
- Check that Admin can add Coupon Code.
- Check that Admin can select the Payment information required field.
- Check that if the Payment information required field is selected, an error message will be displayed if we apply to apply coupon code for products which doesn’t contain payment information.
- Check that Admin can generate bulk coupon codes.
- Check that Admin can select many coupon codes to be generated.
- Check that Admin can select the code length.
- Check that Admin can select coupon codes as active/inactive.
- Check that Admin can add a discount as a Fixed price discount.
eg, enter “15” for $15.00 off. - Check that Admin can add a discount as a Percentage discount.
E.g., enter “15%” for 15% off. - Check that Admin can add discount as Set product price.
E.g., enter “=15” to make all matching products $15.00 after a discount. - Check that Admin can add Apply discount to:
Order subtotal
Total of the matching product(s)
All matching product(s)
The cheapest matching product(s)
The most expensive matching product(s) - Check that Admin can select ‘Restrict coupon by date’.
- Check that an error message will be displayed for invalid /expired dates.
- Check that Admin can select a Maximum number of redemptions (per code).
- Check that the error message will be displayed after the maximum redemptions per code.
- Check that Admin can select a Maximum number of redemptions (per user).
- Check that the error message will be displayed after the maximum redemptions per user.
- Check that Admin can select the Minimum Order limit [minimum amount for discount to apply].
- Check that the error message will be displayed after the maximum redemptions per user.
- Check that Admin can select the Minimum order quantity [Minimum order quantity for discount to apply].
- Check that the error message will be displayed after the Minimum order quantity.
- Check that Admin can select the Applicable product classes.
- Check that the error message will be displayed for other than the Applicable product classes.
- Check that Admin can select the Applicable products.
- Check that the error message will be displayed for other than the Applicable products.
- Check that Admin can select the Applicable SKUs.
- Check that the error message will be displayed for other than the Applicable SKUs.
- Check that Admin can select the Applicable taxonomy terms.
- Check that the error message will be displayed for other than the Applicable taxonomy terms.
- Check that Admin can apply User restrictions.
- Check that the error message will be displayed for others other than the specified users.
- Check that Admin can apply Role restrictions.
- Check that the error message will be displayed for other than the specified user roles.
- Check that Admin can see active/inactive coupon codes.
- Check that Admin can delete coupons.
If you feel that we can add more missed test cases, then you can feel free to drop them in the comment section so that we can help other testers with your contribution.
thanks for this post , its very usefull for me, crystal explanation.
1.DUPLICTE COUPON CODE SHOULD NOT ALLOW