Highlighted
Valued Contributor.
Valued Contributor.
1900 views

Handling Correlation with similar Left and Right boundaries

Hi, 

The problem I have found after reviewing the subsituations of other correlation paramters in replays log is related to similar Left and Right boundaries. Please see below dynamic values eligible for correlation. 

  <tr class="align-center" style="cursor: pointer;"
                onclick="showPolicyContainer('/b4Zhp+d6d02DuKqzLNKYA==','Lu7oKEavxVkSANX9xFWD0g==',
                        'Lu7oKEavxVm7en9Pq7ncDw==', 'Lu7oKEavxVmOqq8Xkz2K2Q==',
                        'Lu7oKEavxVnIBCRjmBGzRg==','Lu7oKEavxVl8SAxjVfzXYA==',
                        'Lu7oKEavxVlG/CJRDfyocQ==','Lu7oKEavxVl4hdyN0SCAhLZVASx2htyVfJbEOpYdaYs=',
                        'Lu7oKEavxVmfdIks37N63A==','BOAT_ALTDOCLIST','alterationsListDiv')">
                <td style="cursor: pointer;"><i class="fa fa-ellipsis-h"></i>
                </td>


I have managed to correlate Orange values but unable to corrleate Red values due to similar Left and Right boundaries. Now, in this case how we are going to handle this case ?

Would appreciate a swift response on it.

Regards, Muhammad Moid

0 Likes
4 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Handling Correlation with similar Left and Right boundaries

Hi,

Can you post the content of the page that contains those values ? Provide the correlation steps.

Best regards

0 Likes
Highlighted
Valued Contributor.
Valued Contributor.

Re: Handling Correlation with similar Left and Right boundaries

Dear Marcel,

Following is the Paramter subsiution in replay log; where every value should be different but due to similar LB and RB loadrunner is using the similar values in different correlation paramters:

Alteration_Sum_Assured.c(127): Notify: Parameter Substitution: parameter "CorrelationParameter_1" =  "o1rCxVUDtL8iDz9n11CZkw=="
Alteration_Sum_Assured.c(127): Notify: Parameter Substitution: parameter "CorrelationParameter_2" =  "o1rCxVUDtL91o/eAqZe8DjwaRd//MMdl"
Alteration_Sum_Assured.c(127): Notify: Saving Parameter "CorrelationParameter_3 = unH7w2d37kMJ6gbg5uV2tQ==".
Alteration_Sum_Assured.c(127): Notify: Saving Parameter "CorrelationParameter_4 = unH7w2d37kONwEkow2kySA==".
Alteration_Sum_Assured.c(127): Notify: Saving Parameter "CorrelationParameter_5 = unH7w2d37kPtbhKpNLHH9w==".
Alteration_Sum_Assured.c(127): Notify: Saving Parameter "CorrelationParameter_6 = HIko7kX4u/OOYg+5pZxO9Q==".
Alteration_Sum_Assured.c(127): Notify: Saving Parameter "CorrelationParameter_7 = unH7w2d37kPtbhKpNLHH9w==".
Alteration_Sum_Assured.c(127): Notify: Saving Parameter "CorrelationParameter_8 = unH7w2d37kONwEkow2kySA==".
Alteration_Sum_Assured.c(127): Notify: Saving Parameter "CorrelationParameter_9 = unH7w2d37kPtbhKpNLHH9w==".
Alteration_Sum_Assured.c(127): Notify: Saving Parameter "CorrelationParameter_10 = unH7w2d37kONwEkow2kySA==". 

Below are the LB and RB of correlation paramters wi.r.t their names:

/Correlation comment - Do not change!Original value='UI4i8C17dhXw9Z/RpdLOSA==' Name ='CorrelationParameter_1'
 web_reg_save_param_ex(
  "ParamName=CorrelationParameter_1",
  "LB= name=\"mCode\" value=\"",
  "RB=\" id",
  SEARCH_FILTERS,
  "Scope=All",
  "RequestUrl=*/ReverseUrl*",
  LAST);
//Correlation comment - Do not change!Original value='UI4i8C17dhX0rm07sm/EslZkpM1CnF6x' Name ='CorrelationParameter_2'
 web_reg_save_param_ex(
  "ParamName=CorrelationParameter_2",
  "LB= id=\"disallowedstatuscodes\" value=\"",
  "RB=\"/>\r\n\r\n<div id",
  SEARCH_FILTERS,
  "Scope=All",
  "RequestUrl=*/ReverseUrl*",
  LAST);
 web_submit_data("ReverseUrl_4",
  "Action=http://loadtest.vconn.biz/Ascent/ReverseUrl",
  "Method=POST",
  "RecContentType=text/html",
  "Referer=http://loadtest.vconn.biz/Ascent/common/Presentation/HomePage.jsp",
  "Snapshot=t11.inf",
  "Mode=HTML",
  ITEMDATA,
  "Name=PageId", "Value=BOAT_MAINCONTAINER", ENDITEM,
  LAST);

//Correlation comment - Do not change!Original value='kwpFVsjuyx0MRAtbq8DnDw==' Name ='CorrelationParameter_3'
 web_reg_save_param_ex(
  "ParamName=CorrelationParameter_3",
  "LB=showPolicyContainer('",
  "RB=',",
  SEARCH_FILTERS,
  "Scope=All",
  "RequestUrl=*/ReverseUrl*",
  LAST);
//Correlation comment - Do not change!Original value='kwpFVsjuyx3dR9/lG0sZoQ==' Name ='CorrelationParameter_4'
 web_reg_save_param_ex(
  "ParamName=CorrelationParameter_4",
  "LB=,'",
  "RB=',\r",
  SEARCH_FILTERS,
  "Scope=All",
  "RequestUrl=*/ReverseUrl*",
  LAST);
//Correlation comment - Do not change!Original value='kwpFVsjuyx1BzpdYKJM2Cg==' Name ='CorrelationParameter_5'
 web_reg_save_param_ex(
  "ParamName=CorrelationParameter_5",
  "LB=                        '",
  "RB=', ",
  SEARCH_FILTERS,
  "Scope=All",
  "RequestUrl=*/ReverseUrl*",
  LAST);
//Correlation comment - Do not change!Original value='kwpFVsjuyx0/A1HAff7Ufg==' Name ='CorrelationParameter_6'
 web_reg_save_param_ex(
  "ParamName=CorrelationParameter_6",
  "LB=, '",
  "RB=',\r",
  SEARCH_FILTERS,
  "Scope=All",
  "RequestUrl=*/ReverseUrl*",
  LAST);
//Correlation comment - Do not change!Original value='kwpFVsjuyx0zo+TszFZFEQ==' Name ='CorrelationParameter_7'
 web_reg_save_param_ex(
  "ParamName=CorrelationParameter_7",
  "LB=                        '",
  "RB=',",
  SEARCH_FILTERS,
  "Scope=All",
  "RequestUrl=*/ReverseUrl*",
  LAST);
//Correlation comment - Do not change!Original value='kwpFVsjuyx0kMKXMwQVIUA==' Name ='CorrelationParameter_8'
 web_reg_save_param_ex(
  "ParamName=CorrelationParameter_8",
  "LB=,'",
  "RB=',\r",
  SEARCH_FILTERS,
  "Scope=All",
  "RequestUrl=*/ReverseUrl*",
  LAST);
//Correlation comment - Do not change!Original value='kwpFVsjuyx2ZHPjG9jwBzg==' Name ='CorrelationParameter_9'
 web_reg_save_param_ex(
  "ParamName=CorrelationParameter_9",
  "LB=                        '",
  "RB=',",
  SEARCH_FILTERS,
  "Scope=All",
  "RequestUrl=*/ReverseUrl*",
  LAST);
//Correlation comment - Do not change!Original value='kwpFVsjuyx3rxbKDdpDWUHckhsVQsFK8WQTkytJ2xuQ=' Name ='CorrelationParameter_10'
 web_reg_save_param_ex(
  "ParamName=CorrelationParameter_10",
  "LB=,'",
  "RB=',\r",
  SEARCH_FILTERS,
  "Scope=All",
  "RequestUrl=*/ReverseUrl*",
  LAST);

 

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Handling Correlation with similar Left and Right boundaries

Hi,

You can use the following:

web_reg_save_param_regexp(
        "ParamName=Correlation1",
        "RegExp='([\\w|\=]+\=)'",
        "Ordinal=All",
         SEARCH_FILTERS,
        "Scope=Body",
        LAST );

It will find all your data:

Action.c(12): Notify: Saving Parameter "Correlation1_1 = Lu7oKEavxVkSANX9xFWD0g==".
Action.c(12): Notify: Saving Parameter "Correlation1_2 = Lu7oKEavxVm7en9Pq7ncDw==".
Action.c(12): Notify: Saving Parameter "Correlation1_3 = Lu7oKEavxVmOqq8Xkz2K2Q==".
Action.c(12): Notify: Saving Parameter "Correlation1_4 = Lu7oKEavxVnIBCRjmBGzRg==".
Action.c(12): Notify: Saving Parameter "Correlation1_5 = Lu7oKEavxVl8SAxjVfzXYA==".
Action.c(12): Notify: Saving Parameter "Correlation1_6 = Lu7oKEavxVl4hdyN0SCAhLZVASx2htyVfJbEOpYdaYs=".
Action.c(12): Notify: Saving Parameter "Correlation1_7 = Lu7oKEavxVmfdIks37N63A==".
Action.c(12): Notify: Saving Parameter "Correlation1_count = 7".

Best regards

0 Likes
Highlighted
Frequent Contributor.
Frequent Contributor.

Re: Handling Correlation with similar Left and Right boundaries

Hello,

 

I have q query on load runner correlation topic.

May i know how the below value(CSRF_NONCE) can be correlated?since am new to load runner...

ExecuteLocation=inbegin&CSRF_NONCE=dxgFY0FzSTqyQGY8B3BiES5BJQrYcgR%2FA35TDQAiJXCDdwwLPS5SIW4hDkOEElUPEHVSJSYBLgeIcVMIRywzUHBEegyHdlxvOC5OCRgifHTDd013HStnNQ4xOnHVfVs%3D&dialogButton=none

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.