51Testing软件测试论坛

标题: loadrunner执行脚本过程中出现问题,请帮我,谢谢! [打印本页]

作者: peace_fan5    时间: 2005-12-31 17:43
标题: loadrunner执行脚本过程中出现问题,请帮我,谢谢!
如图所示,打“*“为我在网页执行中遇到的问题,我在不通过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后)出现的问题,不知道什么原因.脚本不能正确执行.请各位帮帮我.谢谢,急!!!
作者: ilovejolly    时间: 2005-12-31 20:07
直接回放是不是成功的?
作者: peace_fan5    时间: 2006-1-2 14:29
标题: 续帖子
直接回放不成功阿,执行日志中出现的问题:
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]
作者: pcl2004_27    时间: 2006-1-2 20:22
楼主把脚本也贴出来看看,这么看很难看出来那里有错误

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

有n夺得可能,那么需要楼主好好想想,做了哪些,那些问题会导致出现上边的问题
作者: suliang    时间: 2006-1-4 09:20
上图打”*“为错误的地方,我是在设置了虚拟ip后(即ip spoofer后)出现的问题
   
    那么你不启用ip欺骗,是不是还有这个问题呢?
  按照你的说法,我理解是这样的:你的服务器是不是要对访问的ip进行授权,而你用ip欺骗后,spoofer寻找出来的ip并不被容许访问服务器。
作者: peace_fan5    时间: 2006-1-4 15:37
标题: 回复,脚本如下,请看:
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;

主要是头几行出现的问题




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