51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 5745|回复: 4
打印 上一主题 下一主题

[原创] LR11回放时出错[MsgId: MERR-26630][MsgId: MMSG-26388]

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2011-7-27 16:06:00 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 setion 于 2011-7-27 16:08 编辑

以前一直用的LR8.0没有问题。今天换的LR11,录制一个最简单的脚本就出错了。
首先是打开网站,然后输入用户名密码,然后提交。
就这么简单,但是回放的时候就报错。
明明已经看到Action.c(4): web_set_user was successful ,但是下面就要报错,很费解
不知道什么原因,请大家帮我看一下吧,谢谢了!
  1. Action()
  2. {

  3.         web_set_user("1",
  4.                 lr_decrypt("4e2fc3ae67"),
  5.                 "192.168.63.1:80");

  6.         web_url("192.168.63.1",
  7.                 "URL=http://192.168.63.1/",
  8.                 "Resource=0",
  9.                 "RecContentType=text/html",
  10.                 "Referer=",
  11.                 "Snapshot=t45.inf",
  12.                 "Mode=HTML",
  13.                 EXTRARES,
  14.                 "Url=/images/volans/header_bg.jpg", ENDITEM,
  15.                 "Url=/images/volans/logan.jpg", ENDITEM,
  16.                 "Url=/images/volans/logo.jpg", ENDITEM,
  17.                 "Url=/images/volans/menu_01_over.gif", ENDITEM,
  18.                 "Url=/images/menu_02.gif", ENDITEM,
  19.                 "Url=/images/menu_09.gif", ENDITEM,
  20.                 "Url=/images/btn_8_over.gif", ENDITEM,
  21.                 "Url=/images/volans/btn_1.gif", ENDITEM,
  22.                 "Url=/images/footer_bg.gif", ENDITEM,
  23.                 "Url=/images/volans/menu_over.gif", ENDITEM,
  24.                 LAST);

  25.         return 0;
  26. }
复制代码
回放日志
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.
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2011-7-27 16:52:24 | 只看该作者
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2011-7-27 17:29:24 | 只看该作者
回复 2# 奔雷
不太会使用这三个函数
        b64_encode_string( "admin:admin", "BasicAuth" );
        web_add_header("Authorization", lr_eval_string("Basic {BasicAuth}"));
        web_custom_request("Custom_HTTP_Auth",xx)
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2011-9-6 10:17:23 | 只看该作者
楼主问题解决了吗?我也遇到了同样的问题,分享啊!谢谢
回复 支持 反对

使用道具 举报

该用户从未签到

5#
发表于 2016-6-24 21:34:55 | 只看该作者
楼主这个问题解决了吗?我也遇到了同样的问题!求指教啊!!!!
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-9-22 07:09 , Processed in 0.089794 second(s), 26 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表