51Testing软件测试论坛
标题:
LR录制时,点击一个按钮会同时加载出两个页面出来,运行脚本总是报错
[打印本页]
作者:
pp子曰
时间:
2014-5-15 09:53
标题:
LR录制时,点击一个按钮会同时加载出两个页面出来,运行脚本总是报错
如题。点击一个按钮后,会弹出一个列表页面,在列表上选择一个数据后单击保存,对应的录制下来的脚本如下,第二段代码总是报错
web_url("selTraRelation",
"URL=http://192.168.1.160:1000/base/trading/tradingRelation/selTraRelation?relationTypeId=10",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.160:1000/index",
"Snapshot=t9.inf",
"Mode=HTML",
LAST);
web_submit_data("tradingRelationList",
"Action=http://192.168.1.160:1000/base/trading/tradingRelation/tradingRelationList?relationTypeId=10&exceptRecordId=",
"Method=POST",
"RecContentType=application/json",
"Referer=http://192.168.1.160:1000/base/trading/tradingRelation/selTraRelation?relationTypeId=10",
"Snapshot=t10.inf",
"Mode=HTML",
ITEMDATA,
"Name=page", "Value=1", ENDITEM,
"Name=rows", "Value=10", ENDITEM,
LAST);
回放日志里的错误:
Action.c(43): Error -26625: HTTP Status-Code=406 (Not Acceptable) for "http://192.168.1.160:1000/generate/page/list" [MsgId: MERR-26625]
Action.c(43): web_submit_data("list") highest severity level was "ERROR", 1067 body bytes, 156 header bytes [MsgId: MMSG-26388]
作者:
pp子曰
时间:
2014-5-15 17:51
求大神现身,研究很久了,还是搞不懂这是什么错
作者:
aklszt
时间:
2014-5-16 17:02
查查第43行脚本,这个地址为什么访问不了??
http://192.168.1.160:1000/generate/page/list
看看是否有关联等需要做。
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2