Scenario 6 - Testing with ProductRequiredFor with a Group and One Element Passed
Send a validation request with a product group and one element that is not passed.
- Procedure
- Create a group that has the restriction of minimum and the maximum number of one and ProductComprisedOf two products: Phone and SIM_Card.
- Make the phone product have a ProductRequiredFor relationship (
ocvValidationReq=true
) for the products Data1 and Data2. - In the relationship between Data1 and Data2, define the maximum
number of
one
. (Also, the group has the restriction of minimum and maximum number of one) - Add phone, Data1, and Data2 to your basket.
ResultDuring validation when
you add Data1 and Data2 products to your basket, an error occurs because the maximum
number is defined as one for the group.