AutoSetPropertyAction
The AutoSetPropertyAction action sets a property value.
Parameters
This action accepts the following parameters:- object
- Required: The name of the business object to update. This name must match the objectKey parameter of a previous action that created or found the business object.
- propertyName
- Required: The name of the property to update with the specified value.
- value
- The new property value. This parameter is required when the valueKey parameter is not specified.
- valueKey
- The name of the value set by the AutoSetValueAction action that is used as the new property value. This parameter is required when the value parameter is not specified.
- abortOnError
- Specifies whether to continue the automated testing when the wAutoSetPropertyAction action
cannot be performed. By default, this parameter is set to
true
to stop automated testing when this action cannot be performed.
Example
The following code snippets show examples of these parameters when used in the AutoSetPropertyAction action:
<!-- Set the attachment code property -->
<action name="cmc/automation/AutoSetPropertyAction">
<param name="object" value="attachment"/>
<param name="propertyName" value="identifier"/>
<param name="valueKey" value="code"/>
</action>