51Testing软件测试论坛
标题:
LR11回放时出错[MsgId: MERR-26630][MsgId: MMSG-26388]
[打印本页]
作者:
setion
时间:
2011-7-27 16:06
标题:
LR11回放时出错[MsgId: MERR-26630][MsgId: MMSG-26388]
本帖最后由 setion 于 2011-7-27 16:08 编辑
以前一直用的LR8.0没有问题。今天换的LR11,录制一个最简单的脚本就出错了。
首先是打开网站,然后输入用户名密码,然后提交。
就这么简单,但是回放的时候就报错。
明明已经看到Action.c(4): web_set_user was successful ,但是下面就要报错,很费解
不知道什么原因,请大家帮我看一下吧,谢谢了!
Action()
{
web_set_user("1",
lr_decrypt("4e2fc3ae67"),
"192.168.63.1:80");
web_url("192.168.63.1",
"URL=http://192.168.63.1/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t45.inf",
"Mode=HTML",
EXTRARES,
"Url=/images/volans/header_bg.jpg", ENDITEM,
"Url=/images/volans/logan.jpg", ENDITEM,
"Url=/images/volans/logo.jpg", ENDITEM,
"Url=/images/volans/menu_01_over.gif", ENDITEM,
"Url=/images/menu_02.gif", ENDITEM,
"Url=/images/menu_09.gif", ENDITEM,
"Url=/images/btn_8_over.gif", ENDITEM,
"Url=/images/volans/btn_1.gif", ENDITEM,
"Url=/images/footer_bg.gif", ENDITEM,
"Url=/images/volans/menu_over.gif", ENDITEM,
LAST);
return 0;
}
复制代码
回放日志
Virtual User Script started at : 2011-07-27 15:55:36
Starting action vuser_init.
Web Turbo Replay of LoadRunner 11.0.0 for WINXP; build 8859 (Aug 18 2010 20:14:31) [MsgId: MMSG-27143]
Run Mode: HTML [MsgId: MMSG-26000]
Run-Time Settings file: "C:\Documents and Settings\Administrator\Local Settings\Temp\noname4\\default.cfg" [MsgId: MMSG-27141]
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(4): web_set_user was successful [MsgId: MMSG-26392]
Action.c(8): Downloading resource "http://192.168.63.1/images/volans/header_bg.jpg" (specified by argument number 9) [MsgId: MMSG-26577]
Action.c(8): Downloading resource "http://192.168.63.1/images/volans/logan.jpg" (specified by argument number 11) [MsgId: MMSG-26577]
Action.c(8): Downloading resource "http://192.168.63.1/images/volans/logo.jpg" (specified by argument number 13) [MsgId: MMSG-26577]
Action.c(8): Downloading resource "http://192.168.63.1/images/volans/menu_01_over.gif" (specified by argument number 15) [MsgId: MMSG-26577]
Action.c(8): Downloading resource "http://192.168.63.1/images/menu_02.gif" (specified by argument number 17) [MsgId: MMSG-26577]
Action.c(8): Downloading resource "http://192.168.63.1/images/menu_09.gif" (specified by argument number 19) [MsgId: MMSG-26577]
Action.c(8): Downloading resource "http://192.168.63.1/images/btn_8_over.gif" (specified by argument number 21) [MsgId: MMSG-26577]
Action.c(8): Downloading resource "http://192.168.63.1/images/volans/btn_1.gif" (specified by argument number 23) [MsgId: MMSG-26577]
Action.c(8): Downloading resource "http://192.168.63.1/images/footer_bg.gif" (specified by argument number 25) [MsgId: MMSG-26577]
Action.c(8): Downloading resource "http://192.168.63.1/images/volans/menu_over.gif" (specified by argument number 27) [MsgId: MMSG-26577]
Action.c(8): Error -26630: HTTP Status-Code=401 (Unauthorized) for "http://192.168.63.1/" [MsgId: MERR-26630]
Action.c(8): web_url("192.168.63.1") highest severity level was "ERROR", 52339 body bytes, 2780 header bytes [MsgId: MMSG-26388]
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
作者:
奔雷
时间:
2011-7-27 16:52
希望这个对你有帮助:
http://ptfrontline.wordpress.com ... 401-authentication/
作者:
setion
时间:
2011-7-27 17:29
回复
2#
奔雷
不太会使用这三个函数
b64_encode_string( "admin:admin", "BasicAuth" );
web_add_header("Authorization", lr_eval_string("Basic {BasicAuth}"));
web_custom_request("Custom_HTTP_Auth",xx)
作者:
nishoujuan
时间:
2011-9-6 10:17
楼主问题解决了吗?我也遇到了同样的问题,分享啊!谢谢
作者:
wulalala
时间:
2016-6-24 21:34
楼主这个问题解决了吗?我也遇到了同样的问题!求指教啊!!!!
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2