AutoCreateVersionAction

The AutoCreateVersionAction action creates a version of a business object, such as a sales catalog, category, or catalog entry.

Declare the AutoCreateVersionAction action as a child of a root <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/AutoCreateVersionAction">
...
</action>
</testcase>

Parameters

This action accepts the following parameters:
object
Required: The name of the business object. This name must match the objectKey parameter of a previous action that created or located the business object.
versionName
Required: The name of the version.
comment
Optional: The description of the version.

Example

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

<!-- Create Content Version -->
<action name="cmc/automation/AutoCreateVersionAction">
  <param name="object" value="category"/>
  <param name="versionName" value="content_version_category_name_0"/>
  <param name="comment" value="content_version_category_comment"/>
</action>