Web manual correlations
LoadRunner Professional allows users to manually to add correlations that were missed by the automatic engine; or, alternatively, can be used by scripters that want to identify all correlations by themselves.
This method allows users to select the desired value (text string) in the script code (function arguments) and requests LoadRunner Professional to check whether this value appears to be a correlation by activating the “Correlate selection” option from context menu (right click a correlate selection).
The logic used here is identical to the “Record-based correlations” mentioned above.
Correlate from snapshot
The user should select a dynamic value from the Server response within a snapshot, and the engine will scan the entire script and replace all relevant occurrences.
This method is a design approach that directs the user to record the same business process twice, compare the scripts, and locate any mismatches between the two. The mismatches are candidates for the correlation process that is done manually.
As mentioned before, in order to correlate dynamic values, after locating the appropriate server response, you need to extract this data. The value can be extracted using different methods.
This is done with a set of API functions.
The main correlation APIs are:
|web_reg_save_param_ex||Registers a request to save dynamic data located between specified boundaries.|
|web_reg_save_param_regexp||Registers a request to save dynamic data that matches a regular expression.|
|web_reg_save_param_xpath||Registers a request to save dynamic data from XML response using XPath expression.|
|web_reg_save_param_json||Registers a request to save dynamic data from response that has been formatted as JSON.|