Quantcast
Channel: All LoadRunner Practitioners Forum posts
Viewing all articles
Browse latest Browse all 12134

Re: LoadRunner 11.52 - VuGen - RunTime Data

$
0
0

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 );


Viewing all articles
Browse latest Browse all 12134

Trending Articles