Develop > Presentation layer > Management Center test automation framework


wcfAutoSetValueAction

The wcfAutoSetValueAction action sets a value that can be used by other actions. This action is typically run during the setup portion of a test case so that other actions in the test case can refer to the value by way of the valueKey parameter.


Parameters

This action accepts the following parameters:

valueKey

Required: The name of the value. This name is also used by other actions to refer to the new value. If the value key is already in use, the value is updated.

value

Optional: The new value that is assigned to the specified value key. If this parameter is not specified, a new value is automatically generated and assigned to the value key.

object

Optional: Used with the propertyName parameter to assign a value to the specified value key. This object must match the objectKey parameter of a previous action that created or located the object. If the value parameter is used, the object parameter and the propertyName parameter are ignored.

propertyName

The name of the property value in the object parameter that is assigned to the specified value key. The propertyName parameter is only required if the object parameter is specified.

valuePrefix

Optional: A prefix that is inserted at the start of the value to customize test data.


Example

The following code snippet shows an example of these parameters used in the wcfAutoSetValueAction action:

<!-- Set the product name --> 
<action name="wcfAutoSetValueAction"> 
 
<param name="valueKey" value="productName"/> 
 
<param name="value" value="prod001"/> 
 
<param name="prefix" value="dept1_" 
</action>

Related reference

wcfAutoRunTestCaseAction

wcfAutoOpenToolAction

wcfAutoSelectStoreAction

wcfAutoCreateNewObjectAction

wcfAutoSetPropertyAction

wcfAutoDeleteObjectAction

wcfAutoFindObjectAction

wcfAutoGetChildObjectAction

wcfAutoLoadChildrenAction

wcfAutoSaveAllAction

wcfAutoRefreshAllAction

wcfAutoVerifyObjectAction

wcfAutoVerifyNoObjectAction

wcfAutoVerifyPropertyAction

wcfAutoRunCustomServiceAction


+

Search Tips   |   Advanced Search