lr录制回放脚本没有错误,但当运行场景就老是报错误26612,请求高手帮助一下小妹
第一次录制脚本:web_url("HomePage.aspx",
"URL=http://192.168.0.21:8022/HomePage.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.21:8022/desktop.aspx",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"URL=/images/logo_xiantiao.jpg", ENDITEM,
LAST);
web_url("Enterprise_OpenApply.aspx",
"URL=http://192.168.0.21:8022/AdminData/EnterPrise/Enterprise_OpenApply.aspx?op=Province&_dc=1353381401829",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.21:8022/desktop.aspx",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);
web_url("PublicStore.aspx",
"URL=http://192.168.0.21:8022/AdminData/PublicStore.aspx?op=SubtractReason_Enterprise&_dc=1353381401855",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.21:8022/desktop.aspx",
"Snapshot=t5.inf",
"Mode=HTML",
LAST);
web_url("PublicStore.aspx_2",
"URL=http://192.168.0.21:8022/AdminData/PublicStore.aspx?op=NumFeeType&_dc=1353381401834",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.21:8022/desktop.aspx",
"Snapshot=t6.inf",
"Mode=HTML",
LAST);
web_url("Sys_ServerInfoList.aspx",
"URL=http://192.168.0.21:8022/AdminData/SysRunMgr/Sys_ServerInfoList.aspx?op=GetServerInfo&_dc=1353381401841",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.21:8022/desktop.aspx",
"Snapshot=t7.inf",
"Mode=HTML",
LAST);
web_url("PublicStore.aspx_3",
"URL=http://192.168.0.21:8022/AdminData/PublicStore.aspx?op=eptype&_dc=1353381401838",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.21:8022/desktop.aspx",
"Snapshot=t8.inf",
"Mode=HTML",
LAST);
web_url("PublicStore.aspx_4",
"URL=http://192.168.0.21:8022/AdminData/PublicStore.aspx?op=telservice&_dc=1353381401832",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.21:8022/desktop.aspx",
"Snapshot=t9.inf",
"Mode=HTML",
LAST);
第二次录制脚本变化:
web_url("HomePage.aspx",
"URL=http://192.168.0.21:8022/HomePage.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.21:8022/desktop.aspx",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"URL=/images/logo_xiantiao.jpg", ENDITEM,
LAST);
web_url("Enterprise_OpenApply.aspx",
"URL=http://192.168.0.21:8022/AdminData/EnterPrise/Enterprise_OpenApply.aspx?op=Province&_dc=1353057283094",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.21:8022/desktop.aspx",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);
web_url("PublicStore.aspx",
"URL=http://192.168.0.21:8022/AdminData/PublicStore.aspx?op=NumFeeTypeSel&_dc=1353057283100",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.21:8022/desktop.aspx",
"Snapshot=t5.inf",
"Mode=HTML",
LAST);
web_url("PublicStore.aspx_2",
"URL=http://192.168.0.21:8022/AdminData/PublicStore.aspx?op=NumFeeType&_dc=1353057283098",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.21:8022/desktop.aspx",
"Snapshot=t6.inf",
"Mode=HTML",
LAST);
我的疑问:每次录制的URL地址dc的值不同,这里需要关联或参数化吗,树视图下我看过了服务器响应信息并没有动态值,返回的依然都是表内容,请求高手这是什么原因,初学lr还望各位赐教 先搞清楚 dc这个参数是干什么用的,然后再考虑需不需要关联。 不知道,关联是服务器响应出现动态值,所以这里我没有关联,但我不知道出了关联失败错误之外什么原因造成500错误,如何解决? 一般都是需要关联 dc应该是个时间戳型的东西 你是怎么做到证明回放没有错误的?LR不报错,不代表你的交易就成功的。。。 顶云老师,dc是时间戳。有个函数web_save_timestamp_param 回复 5# 云层 那应该如何去解决啊老师,我运行场景设置一个用户,是没有错误的。一旦设置2个用户或者参数化两个用户名迭代两次,再次运行场景又会出现同样错误,我试过了运行一个ip地址同时登录两个用户的。
页:
[1]