51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2228|回复: 5
打印 上一主题 下一主题

loadrunner执行脚本过程中出现问题,请帮我,谢谢!

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2005-12-31 17:43:39 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
如图所示,打“*“为我在网页执行中遇到的问题,我在不通过loadrunner运行此软件网页时,软件能正常执行,其实在录制脚本的过程中,打开也没有问题,可是在回放脚本时执行日志显示:

Virtual User Script started
Starting action vuser_init.
Web Turbo Replay of LoadRunner 8.0.0 for WIN2000; Web build 4141          [MsgId: MMSG-27143]
Run-Time Settings file: "C:\Documents and Settings\fandp1\Local Settings\Temp\noname228\\default.cfg"          [MsgId: MMSG-27141]
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
********Action.c(6): Error -27796: Failed to connect to server "172.19.59.58:8080": [10013] Permission denied          [MsgId: MERR-27796]
Action.c(6): Warning -26200: At least one of the resources specified by EXTRARES has not been downloaded due to the above error(s)          [MsgId: MWAR-26200]
************Action.c(6): web_url("login.jsp") highest severity level was "ERROR", 0 body bytes, 0 header bytes          [MsgId: MMSG-26388]
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.

上图打”*“为错误的地方,我是在设置了虚拟ip后(即ip spoofer后)出现的问题,不知道什么原因.脚本不能正确执行.请各位帮帮我.谢谢,急!!!
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2005-12-31 20:07:17 | 只看该作者
直接回放是不是成功的?
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2006-1-2 14:29:30 | 只看该作者

续帖子

直接回放不成功阿,执行日志中出现的问题:
Action.c(6): Error -27796: Failed to connect to server "172.19.59.58:8080": [10013] Permission denied          [MsgId: MERR-27796]
Action.c(6): Warning -26200: At least one of the resources specified by EXTRARES has not been downloaded due to the above error(s)          [MsgId: MWAR-26200]
************Action.c(6): web_url("login.jsp") highest severity level was "ERROR", 0 body bytes, 0 header bytes          [MsgId: MMSG-26388]
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2006-1-2 20:22:47 | 只看该作者
楼主把脚本也贴出来看看,这么看很难看出来那里有错误

有可能是楼主的脚本中有需要关联的地方,但是楼主的脚本没有处理
有可能是楼主脚本经过了修改,导致请求不完整
有可能楼主脚本中进行了参数化,导致 发生错误
有可能服务器安装了防火墙软件,导致不让楼主发送请求
有可能。。。。
有可能

有n夺得可能,那么需要楼主好好想想,做了哪些,那些问题会导致出现上边的问题
回复 支持 反对

使用道具 举报

该用户从未签到

5#
发表于 2006-1-4 09:20:42 | 只看该作者
上图打”*“为错误的地方,我是在设置了虚拟ip后(即ip spoofer后)出现的问题
   
    那么你不启用ip欺骗,是不是还有这个问题呢?
  按照你的说法,我理解是这样的:你的服务器是不是要对访问的ip进行授权,而你用ip欺骗后,spoofer寻找出来的ip并不被容许访问服务器。
回复 支持 反对

使用道具 举报

该用户从未签到

6#
 楼主| 发表于 2006-1-4 15:37:57 | 只看该作者

回复,脚本如下,请看:

Action()
{
        web_url("login.jsp",
                "URL=http://172.19.59.58:8080/BSTWO/login.jsp",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=images/dl_6.gif", ENDITEM,
                "Url=images/dl_11.gif", ENDITEM,
                "Url=images/an.gif", ENDITEM,
                LAST);

        lr_think_time( 22 );

        web_submit_form("login.do;jsessionid=D91DF99D1EBD1EC411062E2BCB53751C",
                "Snapshot=t2.inf",
                ITEMDATA,
                "Name=user_id", "Value=430204184281803", ENDITEM,
                "Name=user_pwd", "Value=111111", ENDITEM,
                "Name=check_code", "Value=43543", ENDITEM,
                EXTRARES,
                "Url=images/head_3.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/head.jsp", ENDITEM,
                "Url=images/left_9.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/left.jsp", ENDITEM,
                "Url=images/tb_01.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/left.jsp", ENDITEM,
                "Url=images/folder.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/left.jsp", ENDITEM,
                "Url=images/joinbottom.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/left.jsp", ENDITEM,
                "Url=images/plusbottom.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/left.jsp", ENDITEM,
                "Url=images/join.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/left.jsp", ENDITEM,
                "Url=images/tb_03.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/left.jsp", ENDITEM,
                "Url=images/right_10.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/right.jsp", ENDITEM,
                "Url=images/right_18.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/right.jsp", ENDITEM,
                "Url=images/right_20.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/right.jsp", ENDITEM,
                "Url=images/right_43.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/right.jsp", ENDITEM,
                "Url=images/head_4.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/head.jsp", ENDITEM,
                "Url=images/head_5.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/head.jsp", ENDITEM,
                "Url=images/plus.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/left.jsp", ENDITEM,
                "Url=images/page.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/left.jsp", ENDITEM,
                "Url=images/right_15.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/right.jsp", ENDITEM,
                "Url=images/right_34.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/right.jsp", ENDITEM,
                "Url=images/head_2.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/head.jsp", ENDITEM,
                "Url=images/line.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/left.jsp", ENDITEM,
                "Url=images/left_6.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/left.jsp", ENDITEM,
                "Url=images/empty.gif", "Referer=http://172.19.59.58:8080/BSTWO/main/left.jsp", ENDITEM,
                LAST);

        return 0;

主要是头几行出现的问题
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-9-27 22:02 , Processed in 0.105943 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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