Automatic correlation

LoadRunner Professional can detect dynamic values in the script and suggest their replacement with parameters. For automatic correlation, LoadRunner Professional uses rule-based, recording-based, and replay-based correlations.

Rule-based correlation

LoadRunner Professional comes with a set of predefined, extendable rules for how to correlate dynamic values in well-known environments.

Example: An example of a rule in pseudo-code might be:

Find text that appears In the response body between string __VIEWSTATE” value=” and the nearest character and save it in parameter “AspNet_ViewState” to correlate the recorded value.

During code generation, LoadRunner Professional scans server responses for values that match the Correlation Rules. When a matching value is found, LoadRunner Professional adds a step to extract the value and save it in a parameter.

Then, the script code is scanned for the value and matches are replaced with a reference to the parameter.

For information about tuning the rules-based correlation, see Automatic correlation configuration.

Back to top

Recording-based correlations

After code generation, the script is scanned for additional correlation candidates in the client request steps. If a candidate was received from the server before it is sent by the client, it is suggested as a correlation. The suggestion includes the exact description of where and how to extract the dynamic value from the server response and where to replace data with a parameter.

You can accept suggestions in the Design Studio.

Back to top

Replay-based correlations

Replay the script at least once. It is not a problem at this stage if some steps fail.

The Replay-based scan compares the server responses before the failures for mismatched values. If such mismatched values are used in the script, they are suggested as correlations.

Repeat this process until the last failure is detected and correlated.

Back to top

See also: