# Test Case For Shopping Scenario

What We Are Learn:

Test Case For Discount Offer (Shopping Scenarios): Getting such real-time scenario test cases in an interview like the one discussed below is infrequent. 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, they combine their good (girl three and girl 2) and pay rs- (57+50= 117) together, 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.

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 be deducted from the good price of Girl A and should display 57 rupees.
• Verify girl’s good price is less than 50 rupees.
• Verify that the offer price should not be applicable because girl B’s good price is less than 50 rupees.
• Verify girl C’s good price is less than 50 rupees.
• Verify that the offer price should not be applicable because the girl’s good price is less than 50 rupees. The constant price should be displayed 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. The good price should be deducted 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

This section details 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 Codes are used in e-commerce and online shopping websites.
• These codes are generated using programs and consist of letters or numbers
• Customers use these codes to enter the coupon code text field to get the discount during the purchase.

## Coupon code admin pages Test scenarios

• Verify that the administrator can add coupon codes(single or in bulk) and others cannot.
• Verify while adding or removing coupons.
• Verify the right error messages when adding/generating or removing coupons while adding coupon names or codes.

## 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 both successful and unsuccessful cases for each coupon-associated product list.
• 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 users other than Admin do not have permission to add coupon codes.
• Check that the Admin can add coupon code by directly opening the node ID
• Check that an error message will be displayed if mandatory fields are left empty.
• Check that the Admin can select the Payment information required field.
• If the Payment information required field is selected, an error message will be displayed if we apply coupon codes for products that don’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 the Admin can select the code length.
• Check that Admin can select coupon codes as active/inactive.
e.g., enter “15” for \$15.00 off.
• Check that Admin can add a discount as a Percentage discount.
E.g., enter “15%” for 15% off.
For, enter “=15” to make all matching products \$15.00 after a discount.
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 is displayed after the minimum order quantity.
• Check that the Admin can select the Applicable product classes.
• Check that the error message will be displayed for other than the Applicable product classes.
• Check that the Admin can select the Applicable products.
• Check that the error message will be displayed for products other than the applicable products.
• Check that the Admin can select the Applicable SKUs.
• Check that the error message will be displayed for other than the Applicable SKUs.
• Check that the Admin can select the Applicable taxonomy terms.
• Check that the error message will be displayed for anything other than the applicable taxonomy terms.
• Check that the Admin can apply User restrictions.
• Check that the error message will be displayed for others other than the specified users.
• Check that the 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 the 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.

I love open-source technologies and am very passionate about software development. I like to share my knowledge with others, especially on technology that's why I have given all the examples as simple as possible to understand for beginners. All the code posted on my blog is developed, compiled, and tested in my development environment. If you find any mistakes or bugs, Please drop an email to softwaretestingo.com@gmail.com, or You can join me on Linkedin.

### 2 thoughts on “Test Case For Shopping Scenario”

1. thanks for this post , its very usefull for me, crystal explanation.