Scenario 11 - Testing with Products of the Same Name but Different Parents
Send a validation request with two products that have the same name but different parents.
Procedure
Create a hierarchy of products within a group. Name the group Bundle_1. Make Bundle_1 ProductComprisedOf Phone_Service.
Make Phone_Service ProductComprisedOf the following four products:
Phone_1 with a restriction of minimum and maximum number of one.
Sim_Card with a restriction of minimum and maximum number of one.
Phone_Charger with a restriction of a minimum of zero and a maximum of one.
Landline_Pack with a restriction of a minimum of zero and a maximum of one.
Make Landline_Pack ProductComprisedOf the following two products:
Phone_1 with a restriction of minimum and maximum number of one.
Phone_2 with a restriction of minimum and maximum number of one.
Add Bundle_1 to your basket with Phone_Service, Phone_Charger, Landline_Pack, and Phone_2.
Result
During validation a cascade of validateOffer errors occur for Phone_1 with Phone_Service parent, Sim_Card with Phone_Service parent, and Phone_1 with Landline_Pack parent.