0

I have my vugen script like this: ITEMDATA, "Name=File", "Value=C:\\testdata\\readme1.txt", and I want to parametrrize the readme.txt part of the script with a unique filename for each vuser. How can I do that?

Magnus Jensen
  • 905
  • 6
  • 36
  • 73

1 Answers1

1

The filename information is simply a string. You should be able to parameterize it like any other string, such as

ITEMDATA, "Name=File", "Value={myfilename}",

or

char myfilename[120]
...
sprintf(  myfilename,
          "Value=C:\\testdata\\%s",
          lr_eval_string("{readfromafileparameterfilename}") );
...
ITEMDATA, "Name=File", myfilename,
James Pulley
  • 5,606
  • 1
  • 14
  • 14