Quantcast
Channel: LoadRunner Practitioners Forum topics
Viewing all articles
Browse latest Browse all 3978

Need help with correlation

$
0
0

Hi

I am not a newbie with Loadrunner and am aware of Manual and automatic correlation. I am working on a new application that is developed in Ruby on Rails which has extensive use of authenticity token and CSRF tokens. I tried correlating both these tokens but somehow the correlation fails each time with the error message Error -35061: No match found for the requested parameter "authenticity_token" . 

Note that I have included the statements

web_set_option("MaxRedirectionDepth", "4", LAST);
 web_set_max_html_param_len("9999");

and I am placing the code to correlate right where it needs to be.

Script for correlation is 

web_reg_save_param_ex(
"ParamName=authenticity_token",
"LB=content=\"",
"RB=\"",
"Ordinal=2",
SEARCH_FILTERS,
"Scope=All",
"IgnoreRedirections=No",
"RequestUrl=*/something*",
LAST);

Response as captured from snapshot is 

<head>
<meta name="csrf-param" content="authenticity_token" />
<meta name="csrf-token" content="usadsad8dsfsddsfsdewre87w889wewerwer89we0we0khlkjhlkjjhghjg2323232asdasdasdassdgsdgfsdfsdfqwe==" />
<title>Sample Page - Welcome</title>

I removed the correlations for all token and ran the script as recorded. It works properly sometimes and fails sometimes. Behavior is not consistent. I am in a catch22 situation where if I correlate, the scripts fails and if I dont script does not work consistently.  Could someone point out if the issue is with the script or does the application need some sort of fine tuning? 

Thanks!


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>