51Testing软件测试论坛
标题:
求帮助,loadrunner脚本录制调试问题,谢谢!
[打印本页]
作者:
灵芝草
时间:
2016-9-8 18:00
标题:
求帮助,loadrunner脚本录制调试问题,谢谢!
loadrunner录入脚本,创建一个申请页面时,页面上会自动生成一个application code(CN1920161000555),这个code每次创建新的页面时,后面的数值都会自动增加1,请问下,我的脚本提交页面信息时,怎么能让这个code 也动态增加,而不是第一次录制的那个code。
web_url
(
"ajaxChangeMonth"
,
"
URL
=
http://58.2.221.193:18080/BMT/process/ajaxChangeMonth?
applicationCode
=
CN092016100569
&month
=
9&lastMonth
=
9&taskSummary
=
undefined&approveOrNo
=
undefined&status
=
0&callback
=
jQuery172020533801295511322_1473325818378&_
=
1473325819533
"
,
"TargetFrame="
,
"Resource=0"
,
"RecContentType=text/html"
,
"Referer=http://58.2.221.193:18080/BMT/process/newDraft?businessYear=2016®ionCode=BUNE&plantCode=CN09"
,
"Snapshot=t7.inf"
,
"Mode=HTML"
,
EXTRARES
,
"URL=../resources/img/tagleft.gif"
,
"Referer=http://58.2.221.193:18080/BMT/process/newDraft?businessYear=2016®ionCode=BUNE&plantCode=CN09"
,
ENDITEM
,
"URL=../resources/img/bg.gif"
,
"Referer=http://58.2.221.193:18080/BMT/process/newDraft?businessYear=2016®ionCode=BUNE&plantCode=CN09"
,
ENDITEM
,
"URL=../resources/img/tagright.gif"
,
"Referer=http://58.2.221.193:18080/BMT/process/newDraft?businessYear=2016®ionCode=BUNE&plantCode=CN09"
,
ENDITEM
,
LAST
);
web_add_header
(
"UA-CPU"
,
"AMD64"
);
web_url
(
"iecompatviewlist.xml"
,
"URL=https://iecvlist.microsoft.com/IE11/1434748155000/iecompatviewlist.xml"
,
"TargetFrame="
,
"Resource=0"
,
"RecContentType=text/xml"
,
"Referer="
,
"Snapshot=t8.inf"
,
"Mode=HTML"
,
LAST
);
lr_end_transaction
(
"new"
,
LR_AUTO
);
/* submit */
lr_start_transaction
(
"submit"
);
web_submit_data
(
"applicationSubmit"
,
"Action=http://58.2.221.193:18080/BMT/process/applicationSubmit"
,
"Method=POST"
,
"TargetFrame="
,
"RecContentType=text/html"
,
"Referer=http://58.2.221.193:18080/BMT/process/newDraft?businessYear=2016®ionCode=BUNE&plantCode=CN09"
,
"Snapshot=t9.inf"
,
"Mode=HTML"
,
ITEMDATA
,
"Name=processInstanceId"
,
"Value="
,
ENDITEM
,
"Name=taskInitiatorName"
,
"Value="
,
ENDITEM
,
"Name=taskId"
,
"Value="
,
ENDITEM
,
"Name=status"
,
"Value=0"
,
ENDITEM
,
"Name=methodFlag"
,
"Value=draft"
,
ENDITEM
,
"Name=taskInitiatorId"
,
"Value="
,
ENDITEM
,
"Name=id"
,
"Value="
,
ENDITEM
,
"Name=taskLogId"
,
"Value="
,
ENDITEM
,
"Name=bottleType"
,
"Value="
,
ENDITEM
,
"Name=taskSummary"
,
"Value="
,
ENDITEM
,
"Name=approveOrNo"
,
"Value=1"
,
ENDITEM
,
"Name=newstatus"
,
"Value="
,
ENDITEM
,
"Name=applyCode"
,
"Value="
,
ENDITEM
,
"Name=applicationId"
,
"Value=ba825d415707c7400157090fad782b2f"
,
ENDITEM
,
"Name=applicationCode"
,
"Value=
CN092016100569
"
,
ENDITEM
,
"Name=applicationTitle"
,
"Value=BMT0908"
,
ENDITEM
,
"Name=regionName"
,
"Value=BUNE"
,
ENDITEM
,
作者:
轩小儿
时间:
2016-9-8 21:24
你参数化它就好了,规则使用自定义+唯一数字+时间戳就可以变成一个动态的了
作者:
神仙也考试
时间:
2016-9-9 09:00
用关联函数试试!
作者:
jingzizx
时间:
2016-9-9 13:40
参数化,设定规则
作者:
灵芝草
时间:
2016-9-12 13:29
Thanks
作者:
kingta
时间:
2016-11-21 15:14
关联最好,不用管它啥规则
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2