Scenario 10 - Testing with Multiple Minimum Number of Products in a Group Not Reached
Send a validation request when multiple products with a required minimum number are not reached in a group.
- Procedure
- Create a hierarchy of products within a group. Name the group Bundle_1. Make Bundle_1 ProductComprisedOf Phone_Service with AUTOPROVISION=false and with a restriction of minimum and maximum number one.
- Make the Phone_Service ProductComprisedOf of the following four products:
- Phone_1 with a restriction of minimum and the maximum number of one.
- Sim_Card with a restriction of minimum and the maximum number of one.
- Phone_Case with a restriction of a minimum of zero and a maximum of one.
- Charger_Pack with a restriction of a minimum of zero and a maximum of one.
- Make the Charger_Pack ProductComprisedOf of the following two products:
- Charger_1 with a restriction of minimum and the maximum number of one.
- Charger_2 with a restriction of minimum and the maximum number of one.
- Add Bundle_1 to your basket without including the Phone_Service, Phone_1, or the Sim_card.
ResultDuring validation, a cascade of validateOffer errors occurs for the missing Phone_Service, Phone_1, and sim_card. With the same hierarchy of products, if you include Bundle_1 in your basket along with Phone_Service, Phone_1, sim_card, and the Charger_Pack, without Charger_1 and Charger_2, a cascade of validation errors occur for the missing Charger_1 and the missing Charger_2.