Shared Attributes - Sample Test Scenarios
This section describes the simple cases to test shared attributes in different scenarios.
- Publish Product Model. The processes must be running in Test harness.
Here is an example for shared attributes with values of one reflecting in the other.
Scenario 1:
For the above product model structure, submit orders for SharedAttribute_B and SharedAttribute_B1. Refer to the Order Submission topic for more information on the order submission process. Send new value for the shared attribute in the user-defined field format and values for both the attributes.
The value of B must reflect in B1, which conforms to the explanation of the Shared Attributes.
Scenario 2:
Submit order and send new value for the shared attribute (in the user-defined field format). Through order submission, send values for both the attributes, SharedAttribute_B and SharedAttribute_B1. Using SetPlanItemRequest service, set Shared Attributes value of B.
In this case also, the value of B must reflect in B1. Using the GetPlanItemrequest service for B1 returns a new value, which is reflected in B, thus corresponding value and an update in the value of one is reflected in the other.