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

Re: how to pass the value of a parameter into a table/file

$
0
0
Hi pistolero,

Please find the below example.

vuser_init()
{
int i = 100;
char c = 'C';
float f = 1.234;
return 0;
}

Action()
{

int i = 100;
char c = 'C';
float f = 1.234;
long file;
char * filename = "C:\\Files\\Srihari2.txt";
// Create a new file

if ((file = fopen(filename, "w+" )) == NULL) {
lr_output_message("Unable to create %s", filename);
return -1;
}
fprintf(file, "%d %c %f", i, c, f);
fclose(file);
}

Regards,
Srihari

Viewing all articles
Browse latest Browse all 12134

Trending Articles



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