1

I am new to Loadrunner. I have a few values parameterized in a file type. Now I need to print the parameter value in the Loadrunner console. I tried the code below but with no luck.

lr_output_message("Value is %s",lr_eval_string("{Parameter1}"));

Error

Action.c(15): Warning: The string 'Parameter1' with parameter delimiters is not a parameter.

Please help me on this..

Koby Douek
  • 16,156
  • 19
  • 74
  • 103
Rajesh
  • 13
  • 1
  • 1
  • 6

1 Answers1

1

The problem is the parameter is called File1 and not Parameter1.

please try this:

lr_output_message("Value is %s",lr_eval_string("{File1}"));
Koby Douek
  • 16,156
  • 19
  • 74
  • 103
  • Thanks a lot for the help... but now if I need to use the value parameter2 inside file1... how I need to retrieve it .. – Rajesh Mar 07 '17 at 14:28
  • First, remove your answer below. Second - What exactly do you need to do ? Can you explain more ? – Koby Douek Mar 07 '17 at 14:31
  • And what parameter name (left column on the parameters screen) is mapped to the column of Parameter2 inside of your file? – James Pulley Mar 07 '17 at 14:32