Applying DFEs to a String

Applies to:

  • Web - HTTP/HTML Vuser scripts

  • 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 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.

Note: After you apply a DFE to a string in a Vuser script, VuGen adds an entry to the Tasks tab. The added entry indicates that a correlation scan should be performed. For details on performing a correlation scan, see Correlating.

To apply a DFE to an encoded string in a Vuser script:

  1. Open the script in VuGen, and select the encoded text string.
  2. 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 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.