Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Using recording rules to replace a built in BDL function with a custom wrapper function in a recorded script

Using recording rules to replace a built in BDL function with a custom wrapper function in a recorded script

The following rule will replace all occurrences of WebPageUrl with MyWebPageUrl in a recorded script. You can define MyWebPageUrl in an include file.

The rule should be saved into a file with an .xrl extension and placed either in the Documents folder of the current project or the main Include folder. In the latter case the rule will be applied to all recordings.



<HttpScriptingRule> <Name>Replace WebPageLink with my wrapper function</Name> <Active>true</Active> <Action>MapFunctionName</Action> <Conditions> <CompareData> <ApplyTo>DefaultFunctionName</ApplyTo> <Data>WebPageLink</Data> </CompareData> <Exists> <ApplyTo>Literal:MyWebPageLink</ApplyTo> <SaveAs>FunctionName</SaveAs> </Exists> <Exists> <ApplyTo>Literal:MyFunctions.bdh</ApplyTo> <SaveAs>BdhFileName</SaveAs> </Exists> </Conditions> </HttpScriptingRule>

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2014-10-30 23:04
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.