Applying DFEs to a String
Note: This topic applies to Web - HTTP/HTML and Silverlight Vuser scripts, and to Web - HTTP/HTML steps inside Flex Vuser scripts.
You can apply DFEs to a Vuser script to decode encoded data in the script. You can apply the DFEs:
- to specified sections of the Vuser script, when the script is generated or regenerated. For details, see How to Implement Data Format Extension (DFE) Support.
- to a single encoded string in the Vuser script, as described in this topic.
For an overview of DFEs, see Data Format Extensions (DFEs) - Overview.
To apply a DFE to an encoded string in a Vuser script:
- Open the script in VuGen, and select the encoded text string.
Right-click inside the selection, click Decode with DFE, and click the name of the chain that contains the DFEs to decode the encoded string. For details on how to define a DFE chain, see How to Define a Chain of DFEs.
VuGen replaces the selected text with a parameter, and adds a web_convert_from_formatted function that contains the decoded equivalent of the originally selected text.
Note: To change the name that VuGen assigns to new parameters, right-click some encoded text in the Vuser script, click Decode with DFE > Advanced, and then specify the parameter name in the Target Parameter box. VuGen will add a counter to the parameter name, and increment the counter as required.