Modifying Correlation Data

Applies to LoadComplete 4.97, last modified on May 20, 2019

There can be a situation when LoadComplete cannot correlate a dynamic parameter in a recorded scenario, because the dynamic parameter has different values in a response received from a server and in subsequent requests.

Usually, this happens if the dynamic parameter is changed on the client side of your web application. For example, your web application’s client can add a prefix to a cookie received from a tested server and then use the modified cookie in subsequent requests.

LoadComplete cannot detect modification made to the response data by your client. During the scenario simulation, LoadComplete will pass the received response to the server as it is. It may cause an error, because the server will not recognize the requests containing unmodified data.

To avoid possible problems, you can modify the initial server response before you send it to the server.

How to Modify Dynamic Parameters

  1. Find the response that contains the dynamic parameter.

    Analyze your recorded scenario and find the response that returns the dynamic parameter you need to modify. View the Response Body page of the response to find the parameter located in the response body. If the dynamic parameter is a cookie, you can find it in the Set-Cookie header of the response.

  2. Extract the dynamic parameter to a variable. See Extracting Data From Responses.

  3. Modify the extracted data:

    • Add the Set Variable Value operation to your scenario. Insert it after the response from which you extract the parameter and before the requests that use the parameter.

    • Configure the operation to modify the value of your dynamic parameter as you need it.

      We recommend that you ask the developers of your web application’s client to learn how the parameter must be modified.

  4. Insert the modified data to subsequent requests.

    Find all requests that use the dynamic parameter, and replace the recorded data with the variable that holds the modified data.

  5. Verify the scenario to make sure that it simulates the traffic correctly.

Alternatives

You can store the modified data to an external file and replace the recorded values in requests with the data extracted from the file. To learn more, see Parameterizing Requests.

See Also

Data Correlation
Extracting Data From Responses
Using Variables
Using Variables in Requests
Converting Correlation Data

Highlight search results