loadrunner How to correlate a value in Load Runner, which...

  • Thread starter Himanshu Shekhar
  • Start date
  • perf-test.com need your contributions to build up a strong repository of performance engineering resources.

H

Himanshu Shekhar

Guest
How to correlate a value in Load Runner, which has no Right boundary and Left Boundary?
 
LB=,RB= There is always a left and right boundary if you back up far enough. You may have to leverage foundation skills in the language of your test tool to parse the string in between for just what you need, but then that extra parsing is not uncommon.
 
Run the script with empty boundries you will get entire response in html format with that you can take the boundries if any.
 
first check what type of string it is? i guess, that value is timestamp which will not have any boundaries.. try using web_save_timestamp_param (tstamp, Last)
 
technically, every value in the page should have boundaries and will be available in any of previous requests to capture the response.. In his case, either he is might recorded the script in HTML mode with user actions only... in this case, we may miss some dependent values that will not record as seperate request. if he still not able to find the boundaries, thn that request might have associated with session parameters.. some times session parameters will generate as alphanumeric or 13 digits value (1432565783456). if that parameter is alphanumeric, thn we have to use web_reg_save_param_reg_exp and this value typically stored in any web resource file or java script file which maintains the session..
 
Quite easy to handle if you can use lr_save_search_string() on the complete string returned by web_reg_save_regex() or web_reg_save_param(). You can opt for capturing complete HTML as well. Do remember to use web_set_max_html_param_len() to increase the parameter length.