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

  1. Create a group that has the restriction of minimum and maximum number of one and ProductComprisedOf two products: Phone and SIM_Card.
  2. Make the phone product have a ProductRequiredFor relationship for the products Data1 and Data2.
  3. In the relationship with Data1 and Data2, define the maximum number of one.
  4. Add Data1 and Data2 to your basket.

Result

During validation when you add both products to your basket, an error occurs because the maximum number is defined as one.