Flex XPath correlation

This topic describes how to use XPath correlation in Flex Vuser scripts. You use the XML View inside the Snapshot pane to perform the correlation. Before you can successfully implement XPath correlation, you must first configure the recording options.

For details on how to use regular correlation in Flex Vuser scripts, see Correlate scripts using Design Studio.

  1. Configure the recording options

    1. Select Record > Recording Options.

    2. Under Flex, click Externalizable Objects.

    3. Click Serialize objects using, and select Custom Java Classes.

    4. Click the Add jar or zip file button .

    5. On the LiveCycle installation discs, locate the following three files, and add them to the Classpath Entries list:

      1. flex.jar

      2. flex-messaging-common.jar

      3. flex-messaging-core.jar

    Ensure that the added files exist in the same location on all load generator machines.

  2. Record the Vuser script.

  3. In the Editor, click inside the flex_amf_call step that contains the data you want to correlate, or in the Step Navigator, double-click the flex_amf_call step that contains the data you want to correlate.

  4. Click View > Snapshot or click the Snapshot button on the VuGen toolbar.

  5. In the Snapshot pane, click the Response Body tab.

  6. On the right-side of the Snapshot pane, click the XML View tab.

  7. In the XML View, locate and select the entire string that contains the dynamic data that requires correlation.

  8. Right-click inside the selection, and select Create Correlation. The Design Studio opens. For details on how to use Design Studio, see Correlating values.

When the correlation is complete, VuGen adds a web_reg_save_parm_xpath step to the Vuser script.

Back to top