51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

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

[原创] 为什么此脚本都运行完了,下载的文件却没有下下来呢

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2007-6-6 17:26:42 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
录制一个下载页面的脚本,为何脚本都运行完了,下载的东西都没有,我还增加了两个lr_message()用来测试脚本是否执行完毕
脚本如下:
/* -------------------------------------------------------------------------------
        Script Title       :
        Script Description :
                        
                        
        Recorder Version   : 1196
   ------------------------------------------------------------------------------- */

vuser_init()
{

        web_url("media.html",
                "URL=http://61.142.114.236/software/media.html",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTTP",
                LAST);

        web_concurrent_start(NULL);

        web_url("styleindex.css",
                "URL=http://61.142.114.236/software/images/styleindex.css",
                "Resource=1",
                "RecContentType=text/css",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t2.inf",
                LAST);

        web_url("top1.jpg",
                "URL=http://61.142.114.236/software/images/top1.jpg",
                "Resource=1",
                "RecContentType=image/jpeg",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t3.inf",
                LAST);

        web_url("side_15.gif",
                "URL=http://61.142.114.236/software/images/side_15.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t4.inf",
                LAST);

        web_url("menu_01.gif",
                "URL=http://61.142.114.236/software/images/menu_01.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t5.inf",
                LAST);

        web_url("menu_03.gif",
                "URL=http://61.142.114.236/software/images/menu_03.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t6.inf",
                LAST);

        web_url("side_18.gif",
                "URL=http://61.142.114.236/software/images/side_18.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t7.inf",
                LAST);

        web_url("ad2.gif",
                "URL=http://61.142.114.236/software/images/ad2.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t8.inf",
                LAST);

        web_url("rar.jpg",
                "URL=http://61.142.114.236/software/images/rar.jpg",
                "Resource=1",
                "RecContentType=image/jpeg",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t10.inf",
                LAST);

        web_url("rm.htm",
                "URL=http://61.142.114.236/software/rm.htm",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t11.inf",
                "Mode=HTTP",
                LAST);
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2007-6-6 17:26:57 | 只看该作者
web_url("search.gif",
                "URL=http://61.142.114.236/software/images/search.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t12.inf",
                LAST);

        web_url("page01.gif",
                "URL=http://61.142.114.236/software/images/page01.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t13.inf",
                LAST);

        web_url("page02.gif",
                "URL=http://61.142.114.236/software/images/page02.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t14.inf",
                LAST);

        web_url("back2.gif",
                "URL=http://61.142.114.236/software/images/back2.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t15.inf",
                LAST);

        web_url("back1.gif",
                "URL=http://61.142.114.236/software/images/back1.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t16.inf",
                LAST);

        web_url("bg_01.gif",
                "URL=http://61.142.114.236/software/images/bg_01.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t17.inf",
                LAST);

        web_url("menu_02.gif",
                "URL=http://61.142.114.236/software/images/menu_02.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t19.inf",
                LAST);

        web_url("download_now.gif",
                "URL=http://61.142.114.236/software/images/download_now.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t20.inf",
                LAST);

        web_url("pic_01.gif",
                "URL=http://61.142.114.236/software/images/pic_01.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t21.inf",
                LAST);

        web_url("bg_02.gif",
                "URL=http://61.142.114.236/software/images/bg_02.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t22.inf",
                LAST);

        web_url("pic_02.gif",
                "URL=http://61.142.114.236/software/images/pic_02.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t23.inf",
                LAST);

        web_url("pic_04.gif",
                "URL=http://61.142.114.236/software/images/pic_04.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t24.inf",
                LAST);

        web_url("054.gif",
                "URL=http://61.142.114.236/software/images/softpic/054.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t25.inf",
                LAST);

        web_url("pic_06.gif",
                "URL=http://61.142.114.236/software/images/pic_06.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t26.inf",
                LAST);

        web_url("ad1.gif",
                "URL=http://61.142.114.236/software/images/ad1.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t27.inf",
                LAST);

        web_url("pic_07.gif",
                "URL=http://61.142.114.236/software/images/pic_07.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t28.inf",
                LAST);

        web_url("pic_08.gif",
                "URL=http://61.142.114.236/software/images/pic_08.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t29.inf",
                LAST);
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2007-6-6 17:27:06 | 只看该作者
web_url("pic_09.gif",
                "URL=http://61.142.114.236/software/images/pic_09.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t30.inf",
                LAST);

        web_url("pic_03.gif",
                "URL=http://61.142.114.236/software/images/pic_03.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t31.inf",
                LAST);

        web_url("084.gif",
                "URL=http://61.142.114.236/software/images/softpic/084.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t32.inf",
                LAST);

        web_url("no.gif",
                "URL=http://61.142.114.236/software/images/softpic/no.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t33.inf",
                LAST);

        web_url("085.gif",
                "URL=http://61.142.114.236/software/images/softpic/085.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t34.inf",
                LAST);

        web_url("051.gif",
                "URL=http://61.142.114.236/software/images/softpic/051.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t36.inf",
                LAST);

        web_url("052.gif",
                "URL=http://61.142.114.236/software/images/softpic/052.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t37.inf",
                LAST);

        web_url("053.gif",
                "URL=http://61.142.114.236/software/images/softpic/053.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t38.inf",
                LAST);

        web_url("zsedu.gif",
                "URL=http://61.142.114.236/software/images/zsedu.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t39.inf",
                LAST);

        web_url("dvd_02.gif",
                "URL=http://61.142.114.236/software/images/dvd_02.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t40.inf",
                LAST);

        web_url("dvd_04.gif",
                "URL=http://61.142.114.236/software/images/dvd_04.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t41.inf",
                LAST);

        web_url("dvd_05.gif",
                "URL=http://61.142.114.236/software/images/dvd_05.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t42.inf",
                LAST);

        web_url("font.gif",
                "URL=http://61.142.114.236/software/images/font.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t43.inf",
                LAST);

        web_url("tools.js",
                "URL=http://61.142.114.236/software/js/tools.js",
                "Resource=1",
                "RecContentType=application/x-javascript",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t44.inf",
                LAST);

        web_url("dvd_01.gif",
                "URL=http://61.142.114.236/software/images/dvd_01.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t46.inf",
                LAST);

        web_url("operation.gif",
                "URL=http://61.142.114.236/software/images/operation.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t47.inf",
                LAST);

        web_url("bg_03.gif",
                "URL=http://61.142.114.236/software/images/bg_03.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t49.inf",
                LAST);

        web_url("mainbottom.gif",
                "URL=http://61.142.114.236/software/images/mainbottom.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t51.inf",
                LAST);
回复 支持 反对

使用道具 举报

该用户从未签到

4#
 楼主| 发表于 2007-6-6 17:27:28 | 只看该作者
web_concurrent_end(NULL);

        web_url("%E5%88%86%E9%9A%94%E7%AC%A6.gif",
                "URL=http://61.142.114.236/software/images/%E5%88%86%E9%9A%94%E7%AC%A6.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t9.inf",
                LAST);

        web_url("brg.gif",
                "URL=http://61.142.114.236/software/images/brg.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t18.inf",
                LAST);

        web_concurrent_start(NULL);

        web_url("popwin.js",
                "URL=http://www.zsedu.net/js/popwin.js",
                "Resource=1",
                "RecContentType=application/x-javascript",
                "Referer=http://61.142.114.236/software/rm.htm",
                "Snapshot=t35.inf",
                LAST);

        web_url("rm.gif",
                "URL=http://61.142.114.236/software/images/rm.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/rm.htm",
                "Snapshot=t45.inf",
                LAST);

        web_concurrent_end(NULL);

        web_url("line1.gif",
                "URL=http://61.142.114.236/software/images/line1.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t48.inf",
                LAST);

        web_url("dot1.gif",
                "URL=http://61.142.114.236/software/images/dot1.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t50.inf",
                LAST);

        lr_think_time(6);
    lr_message("开始了");
        web_url("download_now.gif_2",
                "URL=http://download.zsedu.net/07-media/sr241.rar",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://61.142.114.236/software/media.html",
                "Snapshot=t52.inf",
                "Mode=HTTP",
                LAST);
    lr_message("执行到最后啦");
        return 0;
}

***********************************************************************************************

这是Replay Log日志

***********************************************************************************************
Virtual User Script started
Starting action vuser_init.
Web Turbo Replay of LoadRunner 8.1.0 for WINXP; Web build 4788          [MsgId: MMSG-27143]
Run-Time Settings file: "C:\Documents and Settings\Administrator\Local Settings\Temp\noname22\\default.cfg"          [MsgId: MMSG-27141]
vuser_init.c(12): web_url("media.html") was successful, 42980 body bytes, 364 header bytes          [MsgId: MMSG-26386]
vuser_init.c(21): web_concurrent_start was successful          [MsgId: MMSG-26392]
vuser_init.c(23): Registering web_url("styleindex.css") was successful          [MsgId: MMSG-26390]
vuser_init.c(31): Registering web_url("top1.jpg") was successful          [MsgId: MMSG-26390]
vuser_init.c(39): Registering web_url("side_15.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(47): Registering web_url("menu_01.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(55): Registering web_url("menu_03.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(63): Registering web_url("side_18.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(71): Registering web_url("ad2.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(79): Registering web_url("rar.jpg") was successful          [MsgId: MMSG-26390]
vuser_init.c(87): Registering web_url("rm.htm") was successful          [MsgId: MMSG-26390]
vuser_init.c(96): Registering web_url("search.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(104): Registering web_url("page01.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(112): Registering web_url("page02.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(120): Registering web_url("back2.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(128): Registering web_url("back1.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(136): Registering web_url("bg_01.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(144): Registering web_url("menu_02.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(152): Registering web_url("download_now.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(160): Registering web_url("pic_01.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(168): Registering web_url("bg_02.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(176): Registering web_url("pic_02.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(184): Registering web_url("pic_04.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(192): Registering web_url("054.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(200): Registering web_url("pic_06.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(208): Registering web_url("ad1.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(216): Registering web_url("pic_07.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(224): Registering web_url("pic_08.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(232): Registering web_url("pic_09.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(240): Registering web_url("pic_03.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(248): Registering web_url("084.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(256): Registering web_url("no.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(264): Registering web_url("085.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(272): Registering web_url("051.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(280): Registering web_url("052.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(288): Registering web_url("053.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(296): Registering web_url("zsedu.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(304): Registering web_url("dvd_02.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(312): Registering web_url("dvd_04.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(320): Registering web_url("dvd_05.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(328): Registering web_url("font.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(336): Registering web_url("tools.js") was successful          [MsgId: MMSG-26390]
vuser_init.c(344): Registering web_url("dvd_01.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(352): Registering web_url("operation.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(360): Registering web_url("bg_03.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(368): Registering web_url("mainbottom.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(376): web_concurrent_end was successful, 203263 body bytes, 15923 header bytes          [MsgId: MMSG-26386]
vuser_init.c(378): web_url("%E5%88%86%E9%9A%94%E7%AC%A6.gif") was successful, 43 body bytes, 343 header bytes          [MsgId: MMSG-26386]
vuser_init.c(386): web_url("brg.gif") was successful, 45 body bytes, 343 header bytes          [MsgId: MMSG-26386]
vuser_init.c(394): web_concurrent_start was successful          [MsgId: MMSG-26392]
vuser_init.c(396): Registering web_url("popwin.js") was successful          [MsgId: MMSG-26390]
vuser_init.c(404): Registering web_url("rm.gif") was successful          [MsgId: MMSG-26390]
vuser_init.c(412): web_concurrent_end was successful, 45830 body bytes, 708 header bytes          [MsgId: MMSG-26386]
vuser_init.c(414): web_url("line1.gif") was successful, 49 body bytes, 343 header bytes          [MsgId: MMSG-26386]
vuser_init.c(422): web_url("dot1.gif") was successful, 173 body bytes, 370 header bytes          [MsgId: MMSG-26386]
开始啦
vuser_init.c(432): web_url("download_now.gif_2") was successful, 392081 body bytes, 340 header bytes          [MsgId: MMSG-26386]
结束啦
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Warning -27077: The "vuser_init" section contains web function(s) when the "Simulate a new user on each iteration" Run-Time Setting is ON.  This may produce unpredictable results with multiple iterations          [MsgId: MWAR-27077]
Starting action Action.
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
********************************************************************************************
回复 支持 反对

使用道具 举报

该用户从未签到

5#
 楼主| 发表于 2007-6-6 17:27:43 | 只看该作者
大家帮我看看
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-20 23:19 , Processed in 0.068858 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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