AutoRunCustomServiceAction

The AutoRunCustomServiceAction action invokes a custom service on the specified business object.

Declare the AutoRunCustomServiceAction 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/AutoRunCustomServiceAction">
...
</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 attempted to locate the business object.
url
Required: The url attribute value for the custom service definition, which is defined in the object definition file for the business object.
abortOnError
Specifies whether to continue the automated testing when the AutoRunCustomServiceAction 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 when used in the AutoRunCustomServiceAction action:

<!-- Run custom service to activate the promotion object. -->
<action name="cmc/automation/AutoRunCustomServiceAction">
  <param name="object" value="promotion"/>
  <param name="url" value="/cmc/ActivatePromotion"/>
</action>