How to save parameter value to other parameter in LoadRunner?
"How to save parameter value to other parameter in LoadRunner?". OK, there is a simple solution.
To save parameter value to other parameter you have to:
-
Evaluate value of initial parameter
Use lr_eval_string LoadRunner function.
-
Save the evaluated string to a second parameter
Use lr_save_string LoadRunner function.
Please, check the following code:
// save string value to initial parameter
lr_save_string("some string value", "prmStr1");
lr_output_message(lr_eval_string("Value of prmStr1: {prmStr1}"));
// save the evaluated value to second parameter
lr_save_string(lr_eval_string("{prmStr1}"), "prmStr2");
lr_output_message(lr_eval_string("Value of prmStr2: {prmStr2}"));
|