急急急!!loadrunner 如何获取并表示服务器端传回的参数????
web_submit_data("flow.html_6","Action=http://www.chengjun.com.cn/EaaS/flow.html",
"Method=POST",
"RecContentType=text/html",
"Referer=http://www.chengjun.com.cn:8080/EISaaS/flow.html?_flowId=viewReportFlow
"Snapshot=t11.inf",
"Mode=HTML",
ITEMDATA,
"Name=_flowExecutionKey", "Value=_c21398557-D9F0-A571-6E14-DEF0F86513F8_k3425A43", ENDITEM,
"Name=report", "Value=", ENDITEM,
"Name=grade", "Value=高2009级", ENDITEM,
"Name=parted", "Value=理科 ", ENDITEM,
"Name=examset", "Value=高2009级理科高三下高考模拟考试二", ENDITEM,
"Name=oneclass1", "Value=1班", ENDITEM,
"Name=ParentFolderUri", "Value=/public", ENDITEM,
"Name=_eventId", "Value=setInputValues", ENDITEM,
"Name=decorate", "Value=no", ENDITEM,
LAST);
如上面的脚本所示,现在 _flowExecutionKey不是录制脚本的时候给定的值,而是要从服务器动态返回的数据中的取出来,该如何写这个脚本,才能实现这样的功能模拟呢?我刚用LoadRunner,菜鸟级的,还请哪位大侠能够伸出援助之手,在下不胜感激!!!! 去查查LR自带的函数,能够完成这个任务的。忘记我当时怎么做的了。
回复 1# 的帖子
用关联函数,web_reg_save_param();
页:
[1]