Setting Attributes
It is possible to set attributes on object without having to create it. In order to do that, you will use the "set" action.
It is possible to set both simple type attributes and object attributes (provided that they are referenced in the provtest environment).
Simple type attributes
<test name="test_action_set_1"> <description>Test action set with valid object and attributes</description> <action> <createSo orderId="1"/> <set object="1"> <attr name="priority" value="12"/> </set> </action> </test>
Object attributes
<test name="test_action_set_7"> <description>Test action set with a valid object as attribute</description> <action> <create object="1" type="sodata::ServiceOrderData"> <attr name="orderId" value="test_action_set_7@@1"/> </create> </action> <action> <createSo orderId="2"/> <set object="2"> <attr name="sodata" object="1"/> </set> </action> </test>
Copyright © Cloud Software Group, Inc. All rights reserved.