AutoVerifyPropertyAction
The AutoVerifyPropertyAction action verifies that the specified property matches a specified value.
<testcase>
element by using the <action>
element. Set the
value for the name
attribute of the <action>
element to
identify the name and package of the action.
<testcase>
<action name="cmc/automation/AutoVerifyPropertyAction">
...
</action>
</testcase>
Parameters
This action accepts the following parameters:- object
- The name of the business object. This name must match the objectKey parameter of a previous action that created or located the business object.
- propertyName
- Required: The name of the property to verify.
- value
- The value against which to test the property value. You must specify this parameter when the valueKey parameter is not specified.
- valueKey
- The name of a value set by the AutoSetValueAction that is used to test the value of the specified property. You must specify this parameter when the value parameter is not specified.
- type
- Optional: The type of the value against which to test the property value, such as number or string. To ensure that the value is verified as a number, specify the type as number. If this parameter is not specified, the property value is verified as a string value.
- start
- Optional: An integer that indicates the start index from which to begin the string comparison. Characters that precede the start index in the specified verification value and the property value are ignored. If this parameter is not specified, the default value is zero.
- startKey
- Optional: The name of an integer value set by the AutoSetValueAction action that indicates the start index from which to begin the string comparison. Characters that precede the start index in the specified verification value and the property value are ignored. If the start parameter is specified, this parameter is ignored.
- end
- Optional: An integer that indicates the end index plus one of the string comparisons. Characters that are at or after the end index in the specified verification value and the property value are ignored. If this parameter is not specified, the comparison proceeds from the start index to the end of the comparison strings.
- endKey
- Optional: The name of an integer value set by the AutoSetValueAction action that indicates the end index and one of the string comparisons. Characters that are at or after the end index in the specified verification value and the property value are ignored. If the end parameter is specified, this parameter is ignored.
Example
The following code snippet shows an example of these parameters when used in the AutoVerifyPropertyAction action:
<!-- Verify the path property of the asset -->
<action name="cmc/automation/AutoVerifyPropertyAction">
<param name="object" value="punchoutAsset"/>
<param name="propertyName" value="path"/>
<param name="value" value="http://[cmsHost]/test"/>
</action>