51Testing软件测试论坛

标题: 关于web_reg_save-param的使用 [打印本页]

作者: 熊熊做测试    时间: 2007-3-21 10:42
标题: 关于web_reg_save-param的使用
Error -27257: Pending web_reg_save_param/reg_find/create_html_param[_ex] request(s) detected and reset at the end of iteration number 1         [MsgId: MERR-27257]
这是什么错误哈?


web_reg_save_param("Content-Length",
                "LB=Content-Length: ",
                "RB=\r\n"
                "NotFound=ERROR",
                "Search=Headers",
                LAST);
这句话有错误吗?,这个函数怎么使用?
作者: zzzxtz    时间: 2007-3-21 10:58
关联技术的关键函数 以lb 和rb为特征把lb和rb之间的东西保存在Content-length中,orb参数是搜索的数量,即找一个这样特征的东东还是找多个,建议使用all, notfound是如果找不到则在日志中显示失败
search参数不知道啥意思,错误的意思是说页面上没找到你要找的东东
作者: 熊熊做测试    时间: 2007-3-21 11:08
"HTTP/1.1 200 OK\r\n"
"Date: Thu, 15 Mar 2007 09:05:31 GMT\r\n"
"Server: Microsoft-IIS/6.0\r\n"
"X-AspNet-Version: 2.0.50727\r\n"
"Pragma: no-cache\r\n"
"TXext-Error: null\r\n"
"Cache-Control: private\r\n"
"Content-Type: tx/stream\r\n"
"Content-Length: 145948\r\n"
"Proxy-connection: keep-alive\r\n"
"\r\n"
我要在httphead中得到145948,请问用这个函数可以吗? 怎么写?
作者: zzzxtz    时间: 2007-3-21 11:33
web_reg_save_param("findparam",
                "LB=Content-Length:  ",
                "RB=\r\n"                                //少了个逗号 hohohoho
                "NotFound=ERROR",
                "Search=Headers",
                LAST);
作者: wangyong3552128    时间: 2007-3-22 12:59
你把 "RB=\r\n",换成"RB=",    看看。或者把"RelFrameId"参数也写上.




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2