51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 3129|回复: 1
打印 上一主题 下一主题

[原创] 用LR9.52 run time viewer回放脚本,前边页面都正常最后一页面变成乱码,这是怎么回事

[复制链接]
  • TA的每日心情
    开心
    2014-11-14 22:56
  • 签到天数: 2 天

    连续签到: 1 天

    [LV.1]测试小兵

    跳转到指定楼层
    1#
    发表于 2010-9-3 18:35:06 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
    执行到横线后页面变成乱码
    脚本如下:

    Action()
    {

            lr_think_time(7);

            web_url("toUploadPhotoPage.action",
                    "URL=http://192.168.1.111/phm/toUploadPhotoPage.action",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.1.111/phm/toAlbumListPage.action",
                    "Snapshot=t64.inf",
                    "Mode=HTTP",
                    LAST);

            web_concurrent_start(NULL);

            web_url("dtree.css",
                    "URL=http://192.168.1.111/phm/camerist/css/dtree.css",
                    "Resource=1",
                    "RecContentType=text/css",
                    "Referer=http://192.168.1.111/phm/toUploadPhotoPage.action",
                    "Snapshot=t65.inf",
                    LAST);

            web_url("dtree.js",
                    "URL=http://192.168.1.111/phm/camerist/js/dtree.js",
                    "Resource=1",
                    "RecContentType=text/javascript",
                    "Referer=http://192.168.1.111/phm/toUploadPhotoPage.action",
                    "Snapshot=t66.inf",
                    LAST);

            web_url("swfupload.js",
                    "URL=http://192.168.1.111/phm/camerist/js/swfupload.js",
                    "Resource=1",
                    "RecContentType=text/javascript",
                    "Referer=http://192.168.1.111/phm/toUploadPhotoPage.action",
                    "Snapshot=t67.inf",
                    LAST);

            web_url("swfupload.swfobject.js",
                    "URL=http://192.168.1.111/phm/camerist/js/swfupload.swfobject.js",
                    "Resource=1",
                    "RecContentType=text/javascript",
                    "Referer=http://192.168.1.111/phm/toUploadPhotoPage.action",
                    "Snapshot=t68.inf",
                    LAST);

            web_url("swfupload.queue.js",
                    "URL=http://192.168.1.111/phm/camerist/js/swfupload.queue.js",
                    "Resource=1",
                    "RecContentType=text/javascript",
                    "Referer=http://192.168.1.111/phm/toUploadPhotoPage.action",
                    "Snapshot=t69.inf",
                    LAST);

            web_url("fileprogress.js",
                    "URL=http://192.168.1.111/phm/camerist/js/fileprogress.js",
                    "Resource=1",
                    "RecContentType=text/javascript",
                    "Referer=http://192.168.1.111/phm/toUploadPhotoPage.action",
                    "Snapshot=t70.inf",
                    LAST);

            web_url("handlers.js",
                    "URL=http://192.168.1.111/phm/camerist/js/handlers.js",
                    "Resource=1",
                    "RecContentType=text/javascript",
                    "Referer=http://192.168.1.111/phm/toUploadPhotoPage.action",
                    "Snapshot=t71.inf",
                    LAST);

            web_concurrent_end(NULL);

            web_concurrent_start(NULL);

            web_url("join.gif",
                    "URL=http://192.168.1.111/phm/bosom/images/join.gif",
                    "Resource=1",
                    "RecContentType=image/gif",
                    "Referer=http://192.168.1.111/phm/toUploadPhotoPage.action",
                    "Snapshot=t72.inf",
                    LAST);

            web_url("swfupload.swf",
                    "URL=http://192.168.1.111/phm/camerist/js/swfupload.swf?swfuploadrnd=418751220",
                    "Resource=1",
                    "RecContentType=application/x-shockwave-flash",
                    "Referer=http://192.168.1.111/phm/toUploadPhotoPage.action",
                    "Snapshot=t73.inf",
                    LAST);

            web_url("joinbottom.gif",
                    "URL=http://192.168.1.111/phm/bosom/images/joinbottom.gif",
                    "Resource=1",
                    "RecContentType=image/gif",
                    "Referer=http://192.168.1.111/phm/toUploadPhotoPage.action",
                    "Snapshot=t74.inf",
                    LAST);

            web_concurrent_end(NULL);

            lr_think_time(30);

            web_submit_data("upload",
                    "Action=http://192.168.1.111/phm/upload",
                    "Method=POST",
                    "EncType=multipart/form-data",
                    "RecContentType=text/html",
                    "Referer=http://192.168.1.111/phm/toUploadPhotoPage.action",
                    "Snapshot=t75.inf",
                    "Mode=HTTP",
                    ITEMDATA,
                    "Name=userId", "Value=3824", ENDITEM,
                    "Name=action", "Value=uploadPhoto", ENDITEM,
                    "Name=userName", "Value=aa", ENDITEM,
                    "Name=url", "Value=/phm/toAlbumDetailPage.action", ENDITEM,
                    "Name=pictureType", "Value=52", ENDITEM,
                    "Name=typeId", "Value=null", ENDITEM,
                    "Name=sysSavePath", "Value=/PLAY_MANAGE", ENDITEM,
                    "Name=picTypeId", "Value=4494", ENDITEM,
                    "Name=isUnfurl", "Value=0", ENDITEM,
                    "Name=isRun", "Value=1", ENDITEM,
                    "Name=playId", "Value=52", ENDITEM,
                    "Name=ajax_typeId", "Value=3405", ENDITEM,
                    "Name=isBatch", "Value=0", ENDITEM,
                    "Name=uploadType", "Value=0", ENDITEM,
                    "Name=photoName", "Value=2222", ENDITEM,
                    "Name=fileSizeLimit", "Value=10", ENDITEM,
                    "Name=imgfile", "Value=D:\\\\a\\\\07.jpg", "File=Yes", ENDITEM,
                    "Name=photoKey", "Value=2222", ENDITEM,
                    "Name=photoDesc", "Value=2222", ENDITEM,
                    "Name=groupDesc", "Value=", ENDITEM,
                    "Name=groupKey", "Value=???", ENDITEM,
                    "Name=uploadCount/", "Value=0", ENDITEM,
                    LAST);
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
            web_concurrent_start(NULL);

            web_url("dtree.css_2",
                    "URL=http://192.168.1.111/phm/view/styles/dtree.css",
                    "Resource=1",
                    "RecContentType=text/css",
                    "Referer=http://192.168.1.111/phm/toAlbumDetailPage.action?typeId=4494",
                    "Snapshot=t76.inf",
                    LAST);

            web_url("dtree.js_2",
                    "URL=http://192.168.1.111/phm/view/js/dtree.js",
                    "Resource=1",
                    "RecContentType=text/javascript",
                    "Referer=http://192.168.1.111/phm/toAlbumDetailPage.action?typeId=4494",
                    "Snapshot=t77.inf",
                    LAST);

            web_url("myAjax.js",
                    "URL=http://192.168.1.111/phm/view/js/myAjax.js",
                    "Resource=1",
                    "RecContentType=text/javascript",
                    "Referer=http://192.168.1.111/phm/toAlbumDetailPage.action?typeId=4494",
                    "Snapshot=t78.inf",
                    LAST);

            web_url("j8ZEybEL9s.jpg",
                    "URL=http://192.168.1.111/PLAY_MANAGE/SMALLIMGPATH/20100903/j8ZEybEL9s.jpg",
                    "Resource=1",
                    "RecContentType=image/jpeg",
                    "Referer=http://192.168.1.111/phm/toAlbumDetailPage.action?typeId=4494",
                    "Snapshot=t79.inf",
                    LAST);

            web_url("iconew2.gif",
                    "URL=http://192.168.1.111/phm/view/images/iconew2.gif",
                    "Resource=1",
                    "RecContentType=image/gif",
                    "Referer=http://192.168.1.111/phm/toAlbumDetailPage.action?typeId=4494",
                    "Snapshot=t80.inf",
                    LAST);

            web_url("LxvXB9S4ik.jpg",
                    "URL=http://192.168.1.111/PLAY_MANAGE/SMALLIMGPATH/20100903/LxvXB9S4ik.jpg",
                    "Resource=1",
                    "RecContentType=image/jpeg",
                    "Referer=http://192.168.1.111/phm/toAlbumDetailPage.action?typeId=4494",
                    "Snapshot=t81.inf",
                    LAST);

            web_concurrent_end(NULL);

            web_url("empty.gif",
                    "URL=http://192.168.1.111/phm/view/images/empty.gif",
                    "Resource=1",
                    "RecContentType=image/gif",
                    "Referer=http://192.168.1.111/phm/toAlbumDetailPage.action?typeId=4494",
                    "Snapshot=t82.inf",
                    LAST);

            return 0;
    }






    注:
    1 vugen的Tools -> Recoding Options -> Advanced -> Support charset -> UTF-8 已选上
    2 这个地方也设置了

    3 查看页面的编码为:GB2312


    [ 本帖最后由 sxczcql666 于 2010-9-3 19:08 编辑 ]

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

    x
    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

    该用户从未签到

    2#
    发表于 2010-9-3 22:32:05 | 只看该作者
    runtime viewer也就是一个HTML解释器而已
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-9-20 20:36 , Processed in 0.067260 second(s), 27 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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