51Testing软件测试论坛

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

作者: sxczcql666    时间: 2010-9-3 18:35
标题: 用LR9.52 run time viewer回放脚本,前边页面都正常最后一页面变成乱码,这是怎么回事
执行到横线后页面变成乱码
脚本如下:

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;
}



[attach]65073[/attach]


注:
1 vugen的Tools -> Recoding Options -> Advanced -> Support charset -> UTF-8 已选上
2 这个地方也设置了
[attach]65074[/attach]
3 查看页面的编码为:GB2312
[attach]65075[/attach]

[ 本帖最后由 sxczcql666 于 2010-9-3 19:08 编辑 ]
作者: PrefTest    时间: 2010-9-3 22:32
runtime viewer也就是一个HTML解释器而已




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