loadrunner 打印变量

打印userid变量参数的信息

 web_submit_form("ValidateLoginAction.do_2",
  "Snapshot=t2.inf",
  ITEMDATA,
  "Name=userid", "Value={userid}", ENDITEM,
  "Name=pword", "Value={password}", ENDITEM,
  "Name=programid", "Value={programid}", ENDITEM,
  "Name=varid", "Value={varid}", ENDITEM,
  EXTRARES,
  "URL=common/js/mmenudom.js", "Referer=http://192.168.0.104/b2r/merchandise/MerchandiseHome.do", ENDITEM,
  LAST);

添加如下代码:

 lr_log_message("userid:%s",lr_eval_string("{userid}"));

你可能感兴趣的:(loadrunner)