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}"));

 

posted @ 2018-04-25 14:48  yye_2010  阅读(216)  评论(0编辑  收藏  举报