LoadRunner 11.52 - VuGen - RunTime Data (1598 Views)
Reply
Occasional Advisor
MadhuGandhi
Posts: 12
Registered: ‎01-25-2013
Message 1 of 8 (1,598 Views)
Accepted Solution

LoadRunner 11.52 - VuGen - RunTime Data

hi,

 

Is there a way to save the RunTime Data to a file. If we are running the script for more number of iterations like 15, we will be able to see only the values for the last iteration in runtime data tab after the script finishes. The data captured for the previous iterations will be over written. So is there a way to save the runtime data to a file, which will contain the values captured for each iteration.

 

Regards,

Madhu Gandhi.

HP Expert
Editus
Posts: 650
Registered: ‎04-06-2011
Message 2 of 8 (1,584 Views)

Re: LoadRunner 11.52 - VuGen - RunTime Data

Hello Madhu

there are few ways to accomplish this, in the below article you can find one of the easiest, try and let us know if this works for you, if not then I think I can provide few more ways to do it

http://support.openview.hp.com/selfsolve/document/KM200003

regards
Occasional Advisor
MadhuGandhi
Posts: 12
Registered: ‎01-25-2013
Message 3 of 8 (1,572 Views)

Re: LoadRunner 11.52 - VuGen - RunTime Data

Hi Editus,

I am not having access to this page. When I click on the url, it say "sorry, access denied".

 

Regards,

Madhu Gandhi.

Valued Contributor
LoadTest712
Posts: 176
Registered: ‎08-25-2010
Message 4 of 8 (1,565 Views)

Re: LoadRunner 11.52 - VuGen - RunTime Data

Save the value to a parameter for future use

When you record the save_text function, it defines a parameter in the Parameter properties window and specifies it as a variable. In order to save the value of this parameter to a file, modify this parameter in the Parameter properties window and change it to be read from a file. Next time when you replay the script, the value from the status bar will be captured and saved to the file.

Valued Contributor
Ajay_U
Posts: 108
Registered: ‎04-30-2012
Message 5 of 8 (1,562 Views)

Re: LoadRunner 11.52 - VuGen - RunTime Data

1. Open the file in Append mode 'a' so that the data won;t get overwritten.

2. Use VTS which is a very good option to save the run time data.

 

Thanks, Ajay

Occasional Advisor
MadhuGandhi
Posts: 12
Registered: ‎01-25-2013
Message 6 of 8 (1,552 Views)

Re: LoadRunner 11.52 - VuGen - RunTime Data

Hi all,

Thanks for the suggestions, but really sorry I am not able to do it. Please explain more elaborate with steps so that I will be able to implement the ideas.

 

Regards.

Valued Contributor
Deb_1
Posts: 136
Registered: ‎09-01-2010
Message 7 of 8 (1,528 Views)

Re: LoadRunner 11.52 - VuGen - RunTime Data

Either you can use the VTS to capture the data or use a flat file to write  it.

 

For second option here are high level steps 

 

1.Create a flat file on a path where you script can access.

2.Open the file from vugen script in append mode.

3.Capture the data you want to capture through parameter.

4.Write the parameter to flat file

 

at the end you have all data you needed. Here is a sample code 

 

char *FileName = "filepath\filename.txt";

int iDocLength;
long DocFileOpen;

iDocLength = strlenlr_eval_string("{paramname}") ) + 1;
            //write the quote number in to a flat file
             DocFileOpen = fopen( BillDocFileName,"a+" );

            if(BillDocFileOpen == NULL){
                lr_log_message("Unable to open and write in doc file");
            }else
                fwritelr_eval_string("\n{gettingBillDocNo}"),iDocLength,1,DocFileOpen );

Thanks
Deb
Frequent Advisor
xtom
Posts: 55
Registered: ‎06-06-2012
Message 8 of 8 (1,525 Views)

Re: LoadRunner 11.52 - VuGen - RunTime Data

Hello!

 

Another idea can be to configure the run time setting for logging to "Extended Log" and "Parameter Substitution". After you have executed the script have a look to the replay log and find the lines with "Notify: Saving Parameter". This will show you the names and values of the parameters.

 

Regards

Thomas

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.