Highlighted
Frequent Contributor.
Frequent Contributor.
1247 views

Manual correlation

Hi ,

 

Can you please provide me the steps for manual correlation. 

 

0 Likes
4 Replies
Highlighted
Respected Contributor.
Respected Contributor.

Re: Manual correlation

 

Here is one way to do manual correlation using the Web HTTP/HTML protocol. Note that different protocols may require different approaches to do manual correlation.

 

You may find a similar way documented in the Loadrunner User's Guide or Loadrunner Best Practices documents contained within the HP Software Support site.

 

Assume that you have a web application that based upon the information selected in the previous web pages, you need to make a payment of some amount. Since this amount will vary based on your previous web page selections within this application, you will need to manually correlate this amount  so that the correct amount will be specified when you replay this script using different values for the selections that were made in the previous web pages.

 

In order to do this, you need to have a successful recording of one iteration of your Vuser script. Now find the place in your Vugen script that presents the page which contains the payment amount that you want to correlate.  Usually such a page begins with a Vugen command like web_submit_data(...). Once you find this page, you need to enable the Vugen Replay Layout view (View > Layouts > Replay layout) and then click on the Snapshot tab at the bottom of the Vugen window. Now click on the Vugen command mentioned above and then click on the Replay tab. Now click on the item under the PATH column that contains the payment amount you want to correlate. Be sure that the Http Data column is highlighted as well. Now click on the Response Body tab to view the data that is contained in the response. Within the data that is listed under the Response Body tab, highlight the payment amount you are looking for, and then RIGHT-CLICK that highlighted text. (Note that you can press CTRL-F tto use the Vugen Search facility to search the Response section.) At this point, Vugen should present a POPUP window which allows you to MANUALLY CORRELATE that particular value that you have highlighted.

 

Note that Vugen will place the code that does the manual correlation immediately before the Vugen command  mentioned above.

 

Highlighted
Frequent Contributor.
Frequent Contributor.

Re: Manual correlation

Thank you  for the response , it was very clear. 

But When i right click on the item i want t correlate, i dont see an option of manual correlation. should i make some changes in the settings?

(PFA screenshot ,the options what i see when i right click on the item , that i want to correlate. Thanks for your response

0 Likes
Highlighted
New Member.

Re: Manual correlation

Hi Team,

I am encountering an issue while correlating a value in LR 12.56 for HTTP/HTML recording.

I need to correlate DSRF Token but the value is not getting captured. Please suggest if anyone has encountered such issues.

"Body=7|2|6|http://{p_url}/D2/x3_portal/|{x3portal}|com.google.gwt.user.client.rpc.DsrfToken/4234569|7dc9599395OPzk5UpLuYzDEiTsnRNf1I1TE|com.
emc.x3.

// DsrfToken/4234569|7dc9599395OPzk5UpLuYzDEiTsnRNf1I1TE|com

 web_reg_save_param("Dsrf_Token","LB=DsrfToken/","RB=com.",LAST);

I guess I am encountering issue due to pipe.Please suggest

0 Likes
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

Re: Manual correlation

Hi Sam,

I suggest you to try with a more complex version of the parametrization function, like that one: 

    web_reg_save_param("ParamName=Dsrf_Token",

    "LB=DsrfToken/",

    "RB=|com",

    SEARCH_FILTERS,

    "Scope=Body",

    "RequestUrl=yourRequestEndpoint",

    LAST);

Let me know if this can help you with the problem,

Lorenzo

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.