|
本帖最后由 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. |
|