loadrunner_关联检查点参数化

1.保存变量函数

lr_save_string("192.168.xx.xx","ip");

URL=http://{ip}

2.检查点函数

web_reg_find("Search=All",
"Text={username}",
LAST);

放在POST前面

3.关联(放在web_url前面)

web_reg_save_param("token",
"LB=<input type="hidden" name="struts.token" value="",
"RB=" />",
LAST);

引用:

Name=struts.token", "Value={token}

4.输出

lr_output_message("订单号是:%s",lr_eval_string("{ordernum}"));

原文地址:https://www.cnblogs.com/yye2010/p/8944660.html