简体   繁体   中英

How to assign param value to a string variable in loadrunner

Can we assign param value to a string variable? For example: web_reg_save_param_ex("paramname=p","LB={something}", "RB={something}", LAST);

How can we store p value in a string variable.

You can use utility function(lr_save_string() and lr_eval_string()).

web_reg_save_param_ex("paramname=p","LB={something}", "RB={something}", LAST);

lr_save_string(lr_eval_string("{p}"),"localVariable");

  • strcpy()
  • strncpy()
  • sprintf() ...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM