51Testing软件测试论坛
标题:
LoadRunner关联中的问题
[打印本页]
作者:
Athenth
时间:
2009-1-13 15:45
标题:
LoadRunner关联中的问题
就想问下,下面的Ord的值为什么等于7?参数的位置前面只有4个Name,不是应该写为5么?
还有个问题就是"LB= name=
'
"为什么当中要多个单引号,也看到有人这样写"LB= name=
\"
"这个又是表示什么?
我知道这个问题可能很多人都觉得很简单。。。希望大家不要BS我。。。。哎。。。。
lr_rendezvous("createpreproduction schedule ");
lr_start_transaction("create pre production schedule");
web_url("Folder.jsp_4",
"URL=http://172.17.16.5/xpc71/jsp/com/folder/Folder.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=http://172.17.16.5/xpc71/LoginAction.do",
"Snapshot=t10.inf",
"Mode=HTML",
LAST);
web_url("TemplateAdminAction.do",
"URL=http://172.17.16.5/xpc71/TemplateAdminAction.do?forwardID=1",
"Resource=0",
"RecContentType=text/html",
"Referer=http://172.17.16.5/xpc71/LoginAction.do",
"Snapshot=t11.inf",
"Mode=HTML",
LAST);
web_reg_save_param( "WCSParam_Diff2", "LB= name=
'
", "RB=
'
",
"Ord=7"
, "Search=Body", "RelFrameId=1", LAST );
web_submit_form("ScheduleCreationAction.do",
"Snapshot=t12.inf",
ITEMDATA,
"Name=PTName", "Value={schedule_name}", ENDITEM,
"Name=headerTempID", "Value=preProductionHeaderTemplate", ENDITEM,
"Name=selectHeader", "Value=1", ENDITEM,
"Name=schTempID", "Value=preProductionDetailTemplate", ENDITEM,
LAST);
web_url("Folder.jsp_5",
"URL=http://172.17.16.5/xpc71/jsp/com/folder/Folder.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=http://172.17.16.5/xpc71/LoginAction.do",
"Snapshot=t13.inf",
"Mode=HTML",
LAST);
lr_end_transaction("create pre production schedule", LR_AUTO);
lr_rendezvous("createcs");
lr_start_transaction("create cs");
web_submit_data("CostingPreCreateAction.do",
"Action=http://172.17.16.5/xpc71/CostingPreCreateAction.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://172.17.16.5/xpc71/ScheduleCreationAction.do",
"Snapshot=t14.inf",
"Mode=HTML",
ITEMDATA,
"Name=scheduleID", "Value={schedule_id}", ENDITEM,
"Name=scheduleName", "Value={schedule_name}", ENDITEM,
"Name=VS022264", "Value=Spring 2004", ENDITEM,
"Name=VS372264", "Value=ANF", ENDITEM,
"Name=
{WCSParam_Diff2}
", "Value=test001", ENDITEM,
"Name=dParentID", "Value=", ENDITEM,
"Name=itemID", "Value=", ENDITEM,
"Name=ifRegen", "Value=Y", ENDITEM,
"Name=editable", "Value=true", ENDITEM,
"Name=calendar", "Value=", ENDITEM,
"Name=respPartyID", "Value=", ENDITEM,
"Name=respPartyName", "Value=", ENDITEM,
"Name=listParentID", "Value=-1", ENDITEM,
"Name=shareParty", "Value=", ENDITEM,
LAST);
web_url("menuAction.do_3",
"URL=http://172.17.16.5/xpc71/menuAction.do?currentMenu=3&operation=changeMenuOnly",
"Resource=0",
"RecContentType=text/html",
"Referer=http://172.17.16.5/xpc71/LoginAction.do",
"Snapshot=t15.inf",
"Mode=HTML",
LAST);
web_url("Folder.jsp_6",
"URL=http://172.17.16.5/xpc71/jsp/com/folder/Folder.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=http://172.17.16.5/xpc71/LoginAction.do",
"Snapshot=t16.inf",
"Mode=HTML",
LAST);
lr_end_transaction("create cs", LR_AUTO);
作者:
Athenth
时间:
2009-1-14 11:18
没人知道么?
作者:
yemei007
时间:
2009-1-14 11:39
标题:
回复 1# 的帖子
ORD参数可以设定出现在第几次的字符串才是要找的字符串。"LB= name='"指的是在excution log中你所关联的那个动态数据的左边界的字符串
作者:
Athenth
时间:
2009-1-14 12:10
标题:
回复 3# 的帖子
excution log?是指generation log?Replay log?还是Recording log?在我看来它们都是执行时产生的日志。我知道LB代表的意思,但是写法中为什么要多写个单引号或者"\"这个我比较不明白。。。尽管我要问的问题还是没明白。。。。但还是谢谢3L的回答。。。
作者:
testye
时间:
2009-1-14 15:25
你看你的脚本的LOG中左边界就有引号或者\,所以在脚本的左边界要加上引号或者\
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2