Develop > Presentation layer > Management Center test automation framework


wcfAutoFindObjectAction

The wcfAutoFindObjectAction action searches for the specified business object and saves it for other actions to use.


Parameters

This action accepts the following parameters:

searchType

Required: The search type used to locate the wcfSearchDefinition class that is used to run the search.

searchText

Optional: The search text that is used to search for the business object.

searchKey

Optional: The name of a value set by the wcfAutoSetValueAction action that is used as the search text.

searchOption.option

Optional: The search option value that is passed to the search service, where option is the name of the search option. For example, the searchOption.catalogId parameter sets the catalogId search option. You can specify multiple search options with different names.

searchOptionKey.option

Optional: The name of a value set by the wcfAutoSetValueAction action that is used as a search option, where option is the name of the search option.

objectKey

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


Example

The following code snippets show examples of these parameters used in the wcfAutoFindObjectAction action:

<!-- Find an e-Marketing Spot object --> 
<action name="wcfAutoFindObjectAction"> 
 
<param name="searchType" value="FindEMarketingSpots"/> 
 
<param name="searchKey" value="eMarketingSpotName"/> 
 
<param name="objectKey" value="homePageSpot"/> 
</action> 

<!-- Find the saved new Web Activity object --> 
<action name="wcfAutoFindObjectAction"> 
 
<param name="searchType" value="FindActivities"/> 
 
<param name="searchText" value="bvt_web_activity"/> 
 
<param name="objectKey" value="createdWebActivity"/> 
</action>
<action name="wcfAutoFindObjectAction"> 
 
<param name="searchType" value="FindSalesCategories"/> 
 
<param name="searchKey" value="SalesCategory1_name"/> 
 
<param name="objectKey" value="SalesCategory1"/> 
 
<param name="searchOptionKey.catalogSelectionCatalogGroup" value="SalesCategory1_OwningCatalogId"/> 
 
<param name="searchOptionKey.catalogSelectionCatalogGroupStoreId" value="SalesCategory1_OwningCatalogStoreId"/> 
 
<param name="searchOption.catalogSelectionCatalogGroupIdentifier" value="SalesCategory1_OwningCatalogIdentifier"/> 
</action>

Related reference

wcfAutoRunTestCaseAction

wcfAutoOpenToolAction

wcfAutoSetValueAction

wcfAutoSelectStoreAction

wcfAutoCreateNewObjectAction

wcfAutoSetPropertyAction

wcfAutoDeleteObjectAction

wcfAutoGetChildObjectAction

wcfAutoLoadChildrenAction

wcfAutoSaveAllAction

wcfAutoRefreshAllAction

wcfAutoVerifyObjectAction

wcfAutoVerifyNoObjectAction

wcfAutoVerifyPropertyAction

wcfAutoRunCustomServiceAction


+

Search Tips   |   Advanced Search