Highlighted
Absent Member.
Absent Member.
256 views

dynamic value

hi,

an account number is parameterized in the script and when the user takes the acc no,some banking transaction will happen and shows the remaining balance in the screen.

but the value is not reflecting in the script while recording.

but i want to capture the value.

how do i corrolate it and capture it.

regards,
vijayan
0 Likes
3 Replies
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: dynamic value

Not sure what version of LoadRunner you are using and which protocol but, I would suggest looking for correlation information for your protocol in the "HP Virtual User Generator Users Guide". The manual has pretty good instructions on how to go about correlating data.

Alan
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: dynamic value

additional information in the following KB:
http://support.openview.hp.com/selfsolve/document/KM170043
as well as in the following webinar:
http://support.openview.hp.com/selfsolve/document/KM198688

-Seb.
0 Likes
Highlighted
Respected Contributor.
Respected Contributor.

Re: dynamic value

Hi,

When you want to do the correlation for the dynamic variable and also you want to select value randomly from the parameter value every time you are taking use the below correlation randomization function as shown in example.

Correlation with randomization ():

  lr_paramarr_random ():

 char *temp;

 web_reg_save_param (“Library”,”LB=target=\”_blank\””,”RB=\”>view\open”,”ORD=ALL”, LAST);

 temp=lr_paramarr_random (“Library”);

 lr_save_string (temp,”NewLibrary”);

 Ex: Substituting the correlation variable is as shown in the below example

 web_url (“wk3-dy12-sn1.pdf”,”URL= {BaseUrl} {NewLibrary}”….LAST); // function where we are replacing our correlation variable.

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.