Develop > Presentation layer > Management Center test automation framework


wcfAutoCreateNewObjectAction

The wcfAutoCreateNewObjectAction action creates a new instance of a business object.


Parameters

This action accepts the following parameters:

objectType

Required: The object type that identifies the object definition used to create the new business object.

parentObject

The name of the parent business object. This name must match the objectKey parameter of a previous action that created or located the parent business object. You must specify this parameter when the objectType parameter matches an instance of the wcfChildObjectDefinition class. Do not specify this parameter when creating primary objects.

referencedObject

The name of the business object to add as a child of the new business object. This name must match the objectKey parameter of a previous action that created or located the object that is referenced by the new business object. You must specify this parameter when the objectType parameter matches an instance of the wcfReferenceObjectDefinition class. Do not specify this parameter when creating primary objects or simple child objects.

templateObject

The name of the business object that is copied when creating the new business object. This name must match the objectKey parameter of a previous action that created or located the template object.

objectKey

Optional: The name that is used to keep a reference to the new business object so it can be used by other actions.

abortOnError

Specifies whether to continue the automated testing when the wcfAutoCreateNewObjectAction 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 snippet shows an example of these parameters used in the wcfAutoCreateNewObjectAction action:

<!-- Create a new dialog activity based on a Blank Activity template --> 
<action name="wcfAutoCreateNewObjectAction"> 
<param name="objectType" value="DialogActivity"/> 
<param name="templateObject" value="blankActivityTemplate"/> 
<param name="objectKey" value="dialogActivity"/> 
<param name="abortOnError" value="false"/> 
</action> 


Related concepts

Object definitions

Related reference

wcfAutoRunTestCaseAction

wcfAutoOpenToolAction

wcfAutoSetValueAction

wcfAutoSelectStoreAction

wcfAutoSetPropertyAction

wcfAutoDeleteObjectAction

wcfAutoFindObjectAction

wcfAutoGetChildObjectAction

wcfAutoLoadChildrenAction

wcfAutoSaveAllAction

wcfAutoRefreshAllAction

wcfAutoVerifyObjectAction

wcfAutoVerifyNoObjectAction

wcfAutoVerifyPropertyAction

wcfAutoRunCustomServiceAction


+

Search Tips   |   Advanced Search