51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2789|回复: 15
打印 上一主题 下一主题

[求助] LR录制新增数据,Lr回放没有新增数据

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2015-6-30 09:39:36 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我最近做了一个项目的性能测试,其中需要用户登录,且新增一条记录。录制脚本,并对脚本做了部分关联,可是LR回放,依然不能够新增一条记录。请大拿们帮忙看一眼,看看如何解决。
vuser_init()
{

        //web_add_cookie("KeyID=qLDZXRNXgIg%3d; DOMAIN=10.207.254.104");

                web_set_max_html_param_len("5000");

//Correlation comment - Do not change!Original value='/wEPDwUKMTM5ODkwMjgxNQ9kFgICAw9kFgICAQ8QFgYeDkRhdGFWYWx1ZUZpZWxkBQpZb25nSHVNaW5nHg1EYXRhVGV4dEZpZWxkBQhYaW5nTWluZx4LXyFEYXRhQm91bmRnEBUYBjEyMzQ1NgcxMnF3ZHF3DjIwMTUwNTEz5rWL6K+VETIwMTUwNTEz5a2Q5Y2V5L2NCHd1c2lUZXN0EuWuieWFqOa1i+ivleWNleS9jQ/mtYvor5XvvIzmtYvor5UP5rWL5omn6KGM5qih5Z2XDeWNleS9jea1i+ivlTEN5Y2V5L2N5rWL6K+VMhnljZXkvY3otYTotKjkuIDoiKzljZXkvY0xDOe7j+a1juWNleS9jQ/or7fov5vmnaXmtYvor5UV5aSW5Zu95Lq65bCx5Lia5bu25pyfDOaWh+aVmeWNleS9jQ3mlofmlZnljZXkvY0xDeaWh+aVmeWNleS9jTIV5paH5pWZ5Y2V5L2N5rWL6K+VYWFhEOS4gOiIrOWNleS9jWFhYWES5LiA6Iis5Y2V5L2N5rWL6K+VD+W8oOWHr+mjnua1i+ivlQ3or4Hku7bnlKjmiLcxDeivgeS7tueUqOaItzIN6K+B5Lu255So5oi3MxUYEGNlc2hpeWliYW5kYW53ZWkIdGVzdDEyMjIJcXdlYXNkenhjCWEyMDE1MDUxMw13dXNpVGVzdDQ1Njc4C2FiYzEyMzQ1NjcxCmNlc2hpY2VzaGkLamVrdGlhbnl1YW4Pc2prZmhhc2tzZGZzYWRmDWRoZmxrbGZzZGZzYWQJRFdaWllCRFcxDGppbmdqaWRhbndlaQpDb21lSW5UZXN0CHl1eHh4eHh4DXdlbmppYW9kYW53ZWkOd2Vuamlhb2RhbndlaTEId2VuamlhbzIIdHJ5aHl0dHINY2VzaGkxMjM0NTY3OAt5aWJhbmRhbndlaQhhc2RmcXdlchB6aGVuZ2ppYW55b25naHUxEHpoZW5namlhbnlvbmdodTIQemhlbmdqaWFueW9uZ2h1MxQrAxhnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dkZGSSRAaSfNd0+6VmUmP7Qeb50/8rYKMTEQkG3QCVB/f2Yw==' Name ='CorrelationParameter_2'
web_reg_save_param_ex(
        "ParamName=CorrelationParameter_4",
        "LB=<input type=\"hidden\" name=\"__VIEWSTATE\" id=\"__VIEWSTATE\" value=\"",
        "RB=\" />",
        SEARCH_FILTERS,
        "Scope=Body",
        "RequestUrl=*/Login.aspx*",
        LAST);

        web_url("Login.aspx",
                "URL=http://10.207.254.104:8001/Login.aspx",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t127.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=/App_Themes/Public/Image/Login/LoginPg.jpg", ENDITEM,
                "Url=/App_Themes/Public/Image/Login/LoginBtn.gif", ENDITEM,
                LAST);

             web_reg_save_param_ex(
                "ParamName=CorrelationParameter_5",
                "LB=sj=",
                "RB=\" id",
                SEARCH_FILTERS,
                "Scope=All",
                "IgnoreRedirections=Yes",
                "RequestUrl=*/Index.aspx*",
                LAST);


        web_submit_data("Login.aspx_2",
                "Action=http://10.207.254.104:8001/Login.aspx?LoginType=EKeyCA",
                "Method=POST",
                "TargetFrame=",
                "RecContentType=text/html",
                "Referer=http://10.207.254.104:8001/Login.aspx",
                "Snapshot=t128.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=__VIEWSTATE", "Value={CorrelationParameter_4}", ENDITEM,
                "Name=UserList", "Value={UserList}", ENDITEM,
                "Name=TxtPwd1", "Value={TxtPwd1}", ENDITEM,
                "Name=TxtName", "Value=", ENDITEM,
                "Name=TxtPwd", "Value=", ENDITEM,
                "Name=TxtVerify", "Value=", ENDITEM,
                "Name=hd_logintype", "Value=", ENDITEM,
                EXTRARES,
                "Url=/App_Themes/Public/Image/Layout/TopBG.png", "Referer=http://10.207.254.104:8001/Index.aspx?sj=46B0ZD", ENDITEM,
                "Url=/App_Themes/Public/Image/Layout/Logo.png", "Referer=http://10.207.254.104:8001/Index.aspx?sj=46B0ZD", ENDITEM,
                "Url=/App_Themes/Public/Image/Layout/LoginOut.jpg", "Referer=http://10.207.254.104:8001/Index.aspx?sj=46B0ZD", ENDITEM,
                "Url=/App_Themes/Public/Image/Layout/GoIndex.jpg", "Referer=http://10.207.254.104:8001/Index.aspx?sj=46B0ZD", ENDITEM,
                "Url=/App_Themes/Public/Image/Layout/IndexMainBG.png", "Referer=http://10.207.254.104:8001/Main.aspx", ENDITEM,
                "Url=/App_Themes/Public/Image/Layout/IndexBLJD-Bottom-Left.png", "Referer=http://10.207.254.104:8001/Main.aspx", ENDITEM,
                "Url=/App_Themes/Public/Image/Layout/IndexTZ-Top.png", "Referer=http://10.207.254.104:8001/Main.aspx", ENDITEM,
                "Url=/App_Themes/Public/Image/Layout/IndexTZ-Bottom-Left.png", "Referer=http://10.207.254.104:8001/Main.aspx", ENDITEM,
                "Url=/App_Themes/Public/Image/Layout/IndexBLJD-Top.png", "Referer=http://10.207.254.104:8001/Main.aspx", ENDITEM,
                "Url=/App_Themes/Public/Image/Layout/IndexBLJD-Left.png", "Referer=http://10.207.254.104:8001/Main.aspx", ENDITEM,
                "Url=/App_Themes/Public/Image/Layout/IndexBLJD-Bottom.png", "Referer=http://10.207.254.104:8001/Main.aspx", ENDITEM,
                "Url=/App_Themes/Public/Image/Layout/IndexTZ-Left.png", "Referer=http://10.207.254.104:8001/Main.aspx", ENDITEM,
                "Url=/App_Themes/Public/Image/Layout/IndexTZ-Top-Left.png", "Referer=http://10.207.254.104:8001/Main.aspx", ENDITEM,
                "Url=/App_Themes/Public/Image/Layout/IndexTZ-Top-Right.png", "Referer=http://10.207.254.104:8001/Main.aspx", ENDITEM,
                "Url=/App_Themes/Public/Image/Layout/IndexTZ-Right.png", "Referer=http://10.207.254.104:8001/Main.aspx", ENDITEM,
                "Url=/App_Themes/Public/Image/Layout/IndexTZ-Bottom.png", "Referer=http://10.207.254.104:8001/Main.aspx", ENDITEM,
                "Url=/App_Themes/Public/Image/Layout/IndexTZ-Bottom-Right.png", "Referer=http://10.207.254.104:8001/Main.aspx", ENDITEM,
                "Url=/App_Themes/Public/Image/Menu/prev.png", "Referer=http://10.207.254.104:8001/Main.aspx", ENDITEM,
                "Url=/App_Themes/Public/Image/Menu/next.png", "Referer=http://10.207.254.104:8001/Main.aspx", ENDITEM,
                "Url=/App_Themes/Public/Image/Menu/4.png", "Referer=http://10.207.254.104:8001/Main.aspx", ENDITEM,
                "Url=/App_Themes/Public/Image/Menu/12_F.png", "Referer=http://10.207.254.104:8001/Main.aspx", ENDITEM,
                "Url=/App_Themes/Public/Image/Menu/25_F.png", "Referer=http://10.207.254.104:8001/Main.aspx", ENDITEM,
                "Url=/App_Themes/Public/Image/Menu/28_F.png", "Referer=http://10.207.254.104:8001/Main.aspx", ENDITEM,
                "Url=/App_Themes/Public/Image/Menu/37_F.png", "Referer=http://10.207.254.104:8001/Main.aspx", ENDITEM,
                "Url=/App_Themes/Public/Image/Menu/44_F.png", "Referer=http://10.207.254.104:8001/Main.aspx", ENDITEM,
                LAST);

        web_custom_request("FESWork.MenuInfo,FESWork.ashx",
                "URL=http://10.207.254.104:8001/ajaxpro/FESWork.MenuInfo,FESWork.ashx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.207.254.104:8001/Main.aspx",
                "Snapshot=t129.inf",
                "Mode=HTML",
                "EncType=text/plain; charset=utf-8",
                "Body={\"MenuCode\":\"\"}",
                LAST);

        web_custom_request("FESWebShenBao.Main,FESWebShenBao.ashx",
                "URL=http://10.207.254.104:8001/ajaxpro/FESWebShenBao.Main,FESWebShenBao.ashx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.207.254.104:8001/Main.aspx",
                "Snapshot=t130.inf",
                "Mode=HTML",
                "EncType=text/plain; charset=utf-8",
                "Body={\"ControlName\":\"lcTZ\",\"PageIndex\":1,\"PageSize\":0,\"title\":\"\",\"tableHeader\":\"\",\"linkUrlStr\":\"ZhiDingShiJian:textRight:display:block&CurRowID:textCenter:display:none&ID:textCenter:display:none&XinXiLeiXing:textCenter:display:none&DanWeiBianMa:textCenter:display:none&BiaoTi:textLeft:link:GoToTZPage-cellValue$ID*cellValue$XinXiLeiXing\",\"strWhere\":\" and DanWeiBianMa='10000005'\"}",
                LAST);

        web_custom_request("FESWebShenBao.Main,FESWebShenBao.ashx_2",
                "URL=http://10.207.254.104:8001/ajaxpro/FESWebShenBao.Main,FESWebShenBao.ashx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.207.254.104:8001/Main.aspx",
                "Snapshot=t131.inf",
                "Mode=HTML",
                "EncType=text/plain; charset=utf-8",
                "Body={\"ControlName\":\"lcJD\",\"PageIndex\":1,\"PageSize\":0,\"title\":\"\",\"tableHeader\":\"\",\"linkUrlStr\":\"CurRowID:textCenter:display:none&DataType:textCenter:display:none&JDNR:textLeft:link:GoToJDPage-cellValue$DataType\",\"strWhere\":\" and DanWeiBianMa='10000005'\"}",
                LAST);

        web_custom_request("FESWork.UserModel,FESWork.ashx",
                "URL=http://10.207.254.104:8001/ajaxpro/FESWork.UserModel,FESWork.ashx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.207.254.104:8001/Index.aspx?sj={CorrelationParameter_5}",
                "Snapshot=t132.inf",
                "Mode=HTML",
                "EncType=text/plain; charset=utf-8",
                "Body={}",
                LAST);

        web_custom_request("FESWork.MenuInfo,FESWork.ashx_2",
                "URL=http://10.207.254.104:8001/ajaxpro/FESWork.MenuInfo,FESWork.ashx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.207.254.104:8001/Index.aspx?sj={CorrelationParameter_5}",
                "Snapshot=t133.inf",
                "Mode=HTML",
                "EncType=text/plain; charset=utf-8",
                "Body={\"MenuCode\":\"\"}",
                LAST);

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

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2015-6-30 09:42:29 | 只看该作者
        web_url("Welcome.aspx",
                "URL=http://10.207.254.104:8001/Welcome.aspx",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://10.207.254.104:8001/Index.aspx?sj={CorrelationParameter_5}",
                "Snapshot=t134.inf",
                "Mode=HTML",
                LAST);

        web_url("XuKeList.aspx",
                "URL=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeList.aspx",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://10.207.254.104:8001/Index.aspx?sj={CorrelationParameter_5}",
                "Snapshot=t135.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=/App_Script/Control/Calendar/skin/WdatePicker.css", ENDITEM,
                "Url=/App_Themes/Public/Image/Layout/btn_bgZ4.gif", ENDITEM,
                "Url=/App_Themes/Public/Image/Layout/btn_bgZ2.gif", ENDITEM,
                "Url=/App_Themes/Public/Image/Layout/Table_thbg.jpg", ENDITEM,
                LAST);

        web_custom_request("FESWebShenBao.App_Modules.YeWuBanLi.ZhengJian.WGRJiuYe.XuKeList,FESWebShenBao.ashx",
                "URL=http://10.207.254.104:8001/ajaxpro/FESWebShenBao.App_Modules.YeWuBanLi.ZhengJian.WGRJiuYe.XuKeList,FESWebShenBao.ashx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeList.aspx",
                "Snapshot=t136.inf",
                "Mode=HTML",
                "EncType=text/plain; charset=utf-8",
                "BodyBinary={\"ControlName\":\"lc\",\"PageIndex\":1,\"PageSize\":12,\"title\":\"\",\"tableHeader\":\"搴忓彿$width:5%;&灏变笟璁稿彲璇\\x81$width:10%;&濮撳悕$width:15%;&鎬у埆$width:5%;&鍥界睄$width:15%;&鐢冲姙绫诲瀷$width:10%;&鐢宠鏃ユ湡$width:10%;&鐘舵\\x80\\x81$width:10%;\",\"linkUrlStr\":\"ShenBaoBianHao:textCenter:display:none&ShenHeZhuangTai:textCenter:display:none&ShouLiLieXing:textCenter:display:none&XingMing:textCenter:link:GoToPage-cellValue$ShenBaoBianHao*cellValue$ShouLiLieXing&caozuo"
                ":textCenter:display:none\",\"strWhere\":\" and DanWeiBianMa='10000005'\"}",
                LAST);

        web_custom_request("FESWork.Systems.GetBianMa,FESWork.ashx",
                "URL=http://10.207.254.104:8001/ajaxpro/FESWork.Systems.GetBianMa,FESWork.ashx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeList.aspx",
                "Snapshot=t137.inf",
                "Mode=HTML",
                "EncType=text/plain; charset=utf-8",
                "Body={\"YeWuLeiXing\":\"301\"}",
                LAST);

        web_custom_request("FESWork.Systems.GetBianMa,FESWork.ashx_2",
                "URL=http://10.207.254.104:8001/ajaxpro/FESWork.Systems.GetBianMa,FESWork.ashx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeList.aspx",
                "Snapshot=t138.inf",
                "Mode=HTML",
                "EncType=text/plain; charset=utf-8",
                "Body={\"JiBie\":2,\"strwhere\":\" and [ID] =3\"}",
                LAST);

        web_url("My97DatePicker.htm",
                "URL=http://10.207.254.104:8001/App_Script/Control/Calendar/My97DatePicker.htm",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://10.207.254.104:8001/Index.aspx?sj={CorrelationParameter_5}",
                "Snapshot=t139.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=lang/zh-cn.js", ENDITEM,
                "Url=skin/whyGreen/datepicker.css", ENDITEM,
                "Url=skin/default/datepicker.css", ENDITEM,
                "Url=skin/default/img.gif", ENDITEM,
                LAST);

            lr_think_time(5);
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2015-6-30 09:44:10 | 只看该作者
//Correlation comment - Do not change!Original value='13012015061800017' Name ='CorrelationParameter_1'
        web_reg_save_param_ex(
                "ParamName=CorrelationParameter_1",
                "LB= \"",
                "RB=\";\r\n        var DanWeiBianMa ",
                SEARCH_FILTERS,
                "Scope=All",
                "RequestUrl=*/XuKeShenBanEdit.aspx*",
                LAST);




//Correlation comment - Do not change!Original value='0.2910981480242778' Name ='CorrelationParameter_2'
        web_reg_save_param_ex(
                "ParamName=CorrelationParameter_2",
                "LB=sj=",
                "RB=&amp",
                SEARCH_FILTERS,
                "Scope=All",
                "RequestUrl=*/XuKeShenBanEdit.aspx*",
                LAST);
//Correlation comment - Do not change!Original value='0.21838129232294012' Name ='CorrelationParameter_3'
        web_reg_save_param_ex(
                "ParamName=CorrelationParameter_3",
                "LB=sj1=",
                "RB=\" id",
                SEARCH_FILTERS,
                "Scope=All",
                "RequestUrl=*/XuKeShenBanEdit.aspx*",
                LAST);



        web_url("XuKeShenBanEdit.aspx",
                "URL=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={Url1}&sj1={Url2}",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t140.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=/App_Themes/Public/Image/Layout/btn_bgZ3.gif", "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={Url1}&sj1={Url2}", ENDITEM,
                "Url=/App_Script/PageShow/Info/VerifyInfo/VerifyInfo_YWBLZhengJian.js", "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={Url1}&sj1={Url2}", ENDITEM,
                "Url=/App_Themes/Public/Image/TabsMenu/1.png", "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={Url1}&sj1={Url2}", ENDITEM,
                LAST);

        web_url("My97DatePicker.htm_2",
                "URL=http://10.207.254.104:8001/App_Script/Control/Calendar/My97DatePicker.htm",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={CorrelationParameter_2}&sj1={CorrelationParameter_3}",
                "Snapshot=t141.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=/App_Script/PageShow/Info/LianDongInfo/LianDongInfo_YWBLZhengJian.js", "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={CorrelationParameter_2}&sj1={CorrelationParameter_3}", ENDITEM,
                "Url=skin/whyGreen/bg.jpg", ENDITEM,
                "Url=skin/whyGreen/img.gif", ENDITEM,
                LAST);

        web_custom_request("FESWork.Systems.GetBianMa,FESWork.ashx_3",
                "URL=http://10.207.254.104:8001/ajaxpro/FESWork.Systems.GetBianMa,FESWork.ashx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={CorrelationParameter_2}&sj1={CorrelationParameter_3}",
                "Snapshot=t142.inf",
                "Mode=HTML",
                "EncType=text/plain; charset=utf-8",
                "Body={\"JiBie\":4}",
                LAST);

        web_custom_request("FESWork.Systems.GetBianMa,FESWork.ashx_4",
                "URL=http://10.207.254.104:8001/ajaxpro/FESWork.Systems.GetBianMa,FESWork.ashx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={CorrelationParameter_2}&sj1={CorrelationParameter_3}",
                "Snapshot=t143.inf",
                "Mode=HTML",
                "EncType=text/plain; charset=utf-8",
                "Body={\"JiBie\":3}",
                LAST);

        lr_think_time(14);

        web_submit_data("Upload.ashx",
                "Action=http://10.207.254.104:8001/App_Handler/Upload.ashx",
                "Method=POST",
                "EncType=multipart/form-data",
                "TargetFrame=",
                "RecContentType=text/html",
                "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={CorrelationParameter_2}&sj1={CorrelationParameter_3}",
                "Snapshot=t144.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=uploadfile", "Value=C:\\Users\\Public\\Pictures\\Sample Pictures\\Penguins.jpg", "File=Yes", ENDITEM,
                EXTRARES,
                "Url=../App_UpDownloads/0c3cee7c-b2ac-4731-9ba2-fd71d67bea43.jpg", "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={CorrelationParameter_2}&sj1={CorrelationParameter_3}", ENDITEM,
                LAST);

        lr_think_time(33);

        web_custom_request("FESWork.ZhengJian.WGRJiuYeXuKe,FESWork.ashx",
                "URL=http://10.207.254.104:8001/ajaxpro/FESWork.ZhengJian.WGRJiuYeXuKe,FESWork.ashx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={CorrelationParameter_2}&sj1={CorrelationParameter_3}",
                "Snapshot=t145.inf",
                "Mode=HTML",
                "EncType=text/plain; charset=utf-8",
                "BodyBinary={\"json\":\"{tableName:'ZJ_WGRJiuYeXuKe',data:{Xing:'abcs',Ming:'abcs',ZhaoPianUrl:'App_UpDownloads/0c3cee7c-b2ac-4731-9ba2-fd71d67bea43.jpg',ZhongWenMing:'dddd',XingBieID:'1',ChuShengRiQi:'1999-06-01',GuoJiID:'103',ChuShengGuoJiID:'103',ChuShengDiZhi:'ddsss',WenHuaChengDuID:'30',HuZhaoZhongLieID:'10102',HuZhaoHao:'abc222',IsForHuaYi:'1',HuZhaoQianFaRiQi:'2015-06-08',HuZhaoZhiRiQi:'2015-07-07',PinYongQiXianQi:'2015-04',PinYongQiXianZhi:'2015-08',JiShuZhiWu:'23',ISDongHanYu:'1',ZhiWuLBID"
                ":'216',ShouPinZhiWu:'ssss',ISZhongGuoGZJL:'1',HunYinZTID:'21',JianKuangZTID:'2',IsForJiNengZiGe:'1',JiNengZiGeMing:'eeee',KeyID:'J6040H62',UserID:'10000005',MingCheng:'澶栧浗浜哄氨涓氬欢鏈\\x9F',ZuZhi:'1234llll',LeiXingID:'4&7&8',LeiXing:'-',PiaoJu:'J6040H622015062615124746B0ZD',IP:'132.10.107.4',ShenBaoBianHao:'{CorrelationParameter_1}',DanWeiBianMa:'10000005',LX:'301',GeRenBianHao:''}}\"}",
                LAST);

        lr_think_time(14);
回复 支持 反对

使用道具 举报

该用户从未签到

4#
 楼主| 发表于 2015-6-30 09:44:57 | 只看该作者
web_custom_request("FESWork.Systems.MuBan.PageSimpleAddMuBan,FESWork.ashx",
                "URL=http://10.207.254.104:8001/ajaxpro/FESWork.Systems.MuBan.PageSimpleAddMuBan,FESWork.ashx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={CorrelationParameter_2}&sj1={CorrelationParameter_3}",
                "Snapshot=t146.inf",
                "Mode=HTML",
                "EncType=text/plain; charset=utf-8",
                "Body={\"strArry\":\"DbJY_YuanXiaoMing&ssee|DbJY_ShiJianQi&2010-04|DbJY_ShiJianZhi&2015-05|DbJY_ZhuanYe&wwe|DbJY_XueYuanGuoID&102|DbJY_XueLiID&20\",\"strDivID\":\"JY\",\"strYWBH\":\"{CorrelationParameter_1}\",\"SimpAddWhere\":\"\"}",
                LAST);

        web_custom_request("FESWork.ZhengJian.WGRJiuYeXuKe,FESWork.ashx_2",
                "URL=http://10.207.254.104:8001/ajaxpro/FESWork.ZhengJian.WGRJiuYeXuKe,FESWork.ashx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={CorrelationParameter_2}&sj1={CorrelationParameter_3}",
                "Snapshot=t147.inf",
                "Mode=HTML",
                "EncType=text/plain; charset=utf-8",
                "BodyBinary={\"json\":\"{tableName:'ZJ_WGRJiuYeXuKe',data:{KeyID:'J6040H62',UserID:'10000005',MingCheng:'澶栧浗浜哄氨涓氬欢鏈\\x9F',ZuZhi:'1234llll',LeiXingID:'4&7&8',LeiXing:'-',PiaoJu:'J6040H622015062615124746B0ZD',IP:'132.10.107.4',ShenBaoBianHao:'{CorrelationParameter_1}',DanWeiBianMa:'10000005',LX:'301',GeRenBianHao:''}}\"}",
                LAST);

        lr_think_time(15);

        web_custom_request("FESWork.Systems.MuBan.PageSimpleAddMuBan,FESWork.ashx_2",
                "URL=http://10.207.254.104:8001/ajaxpro/FESWork.Systems.MuBan.PageSimpleAddMuBan,FESWork.ashx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={CorrelationParameter_2}&sj1={CorrelationParameter_3}",
                "Snapshot=t148.inf",
                "Mode=HTML",
                "EncType=text/plain; charset=utf-8",
                "Body={\"strArry\":\"DbGJ_DanWeiMing&eeess|DbGJ_ShiJianQi&2010-04|DbGJ_DanWeiGuoID&102|DbGJ_ZhiWu&www|DbGJ_ShiJianZhi&2010-07|DbGJ_GongZuoMiaoShu&eeee\",\"strDivID\":\"GJ\",\"strYWBH\":\"{CorrelationParameter_1}\",\"SimpAddWhere\":\"\"}",
                LAST);

        web_custom_request("FESWork.ZhengJian.WGRJiuYeXuKe,FESWork.ashx_3",
                "URL=http://10.207.254.104:8001/ajaxpro/FESWork.ZhengJian.WGRJiuYeXuKe,FESWork.ashx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={CorrelationParameter_2}&sj1={CorrelationParameter_3}",
                "Snapshot=t149.inf",
                "Mode=HTML",
                "EncType=text/plain; charset=utf-8",
                "BodyBinary={\"json\":\"{tableName:'ZJ_WGRJiuYeXuKe',data:{KeyID:'J6040H62',UserID:'10000005',MingCheng:'澶栧浗浜哄氨涓氬欢鏈\\x9F',ZuZhi:'1234llll',LeiXingID:'4&7&8',LeiXing:'-',PiaoJu:'J6040H622015062615124746B0ZD',IP:'132.10.107.4',ShenBaoBianHao:'{CorrelationParameter_1}',DanWeiBianMa:'10000005',LX:'301',GeRenBianHao:''}}\"}",
                LAST);

        lr_think_time(11);

        web_custom_request("FESWork.ZhengJian.WGRJiuYeXuKe,FESWork.ashx_4",
                "URL=http://10.207.254.104:8001/ajaxpro/FESWork.ZhengJian.WGRJiuYeXuKe,FESWork.ashx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={CorrelationParameter_2}&sj1={CorrelationParameter_3}",
                "Snapshot=t150.inf",
                "Mode=HTML",
                "EncType=text/plain; charset=utf-8",
                "BodyBinary={\"json\":\"{tableName:'ZJ_WGRJiuYeXuKe',data:{GeRenMiaoShu:'sseee',PinQingLiYou:'ssss',GongZuoNeiRong:'dddd',GongZuoFangShi:'ddsss',QiTaDaiYu:'dddd',YueXin:'2222',LianXiEmail:'aa@sohu.com',LianXiRen:'娴嬭瘯浜哄憳',LianXiDianHua:'123456789123',KeyID:'J6040H62',UserID:'10000005',MingCheng:'澶栧浗浜哄氨涓氬欢鏈\\x9F',ZuZhi:'1234llll',LeiXingID:'4&7&8',LeiXing:'-',PiaoJu:'J6040H622015062615124746B0ZD',IP:'132.10.107.4',ShenBaoBianHao:'{CorrelationParameter_1}',DanWeiBianMa:'10000005',LX:'301',"
                "GeRenBianHao:''}}\"}",
                LAST);
回复 支持 反对

使用道具 举报

该用户从未签到

5#
 楼主| 发表于 2015-6-30 09:45:40 | 只看该作者
web_submit_data("Upload.ashx_2",
                "Action=http://10.207.254.104:8001/App_Handler/Upload.ashx",
                "Method=POST",
                "EncType=multipart/form-data",
                "TargetFrame=",
                "RecContentType=text/html",
                "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={CorrelationParameter_2}&sj1={CorrelationParameter_3}",
                "Snapshot=t151.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=uploadfile", "Value=C:\\Users\\Public\\Pictures\\Sample Pictures\\Penguins.jpg", "File=Yes", ENDITEM,
                LAST);

        lr_think_time(5);

        web_submit_data("Upload.ashx_3",
                "Action=http://10.207.254.104:8001/App_Handler/Upload.ashx",
                "Method=POST",
                "EncType=multipart/form-data",
                "TargetFrame=",
                "RecContentType=text/html",
                "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={CorrelationParameter_2}&sj1={CorrelationParameter_3}",
                "Snapshot=t152.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=uploadfile", "Value=C:\\Users\\Public\\Pictures\\Sample Pictures\\Penguins.jpg", "File=Yes", ENDITEM,
                LAST);

        lr_think_time(5);

        web_submit_data("Upload.ashx_4",
                "Action=http://10.207.254.104:8001/App_Handler/Upload.ashx",
                "Method=POST",
                "EncType=multipart/form-data",
                "TargetFrame=",
                "RecContentType=text/html",
                "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={CorrelationParameter_2}&sj1={CorrelationParameter_3}",
                "Snapshot=t153.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=uploadfile", "Value=C:\\Users\\Public\\Pictures\\Sample Pictures\\Koala.jpg", "File=Yes", ENDITEM,
                LAST);

        web_custom_request("FESWork.ZhengJian.WGRJiuYeXuKe,FESWork.ashx_5",
                "URL=http://10.207.254.104:8001/ajaxpro/FESWork.ZhengJian.WGRJiuYeXuKe,FESWork.ashx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={CorrelationParameter_2}&sj1={CorrelationParameter_3}",
                "Snapshot=t154.inf",
                "Mode=HTML",
                "EncType=text/plain; charset=utf-8",
                "BodyBinary={\"json\":\"{tabs:[{tableName:'ZJ_WGRJiuYeXuKe',data:{Xing:'abcs',Ming:'abcs',ZhaoPianUrl:'App_UpDownloads/0c3cee7c-b2ac-4731-9ba2-fd71d67bea43.jpg',ZhongWenMing:'dddd',XingBieID:'1',ChuShengRiQi:'1999-06-01',GuoJiID:'103',ChuShengGuoJiID:'103',ChuShengDiZhi:'ddsss',WenHuaChengDuID:'30',HuZhaoZhongLieID:'10102',HuZhaoHao:'abc222',IsForHuaYi:'1',HuZhaoQianFaRiQi:'2015-06-08',HuZhaoZhiRiQi:'2015-07-07',PinYongQiXianQi:'2015-04',PinYongQiXianZhi:'2015-08',JiShuZhiWu:'23',ISDongHanYu:'1',"
                "ZhiWuLBID:'216',ShouPinZhiWu:'ssss',ISZhongGuoGZJL:'1',HunYinZTID:'21',JianKuangZTID:'2',IsForJiNengZiGe:'1',JiNengZiGeMing:'eeee',KeyID:'J6040H62',UserID:'10000005',MingCheng:'澶栧浗浜哄氨涓氬欢鏈\\x9F',ZuZhi:'1234llll',LeiXingID:'4&7&8',LeiXing:'-',PiaoJu:'J6040H622015062615124746B0ZD',IP:'132.10.107.4',ShenBaoBianHao:'{CorrelationParameter_1}',DanWeiBianMa:'10000005',LX:'301',GeRenBianHao:''}},{tableName:'ZJ_WGRJiuYeXuKe',data:{KeyID:'J6040H62',UserID:'10000005',MingCheng:'澶栧浗浜哄氨涓氬欢鏈\\x9F',"
                "ZuZhi:'1234llll',LeiXingID:'4&7&8',LeiXing:'-',PiaoJu:'J6040H622015062615124746B0ZD',IP:'132.10.107.4',ShenBaoBianHao:'{CorrelationParameter_1}',DanWeiBianMa:'10000005',LX:'301',GeRenBianHao:''}},{tableName:'ZJ_WGRJiuYeXuKe',data:{KeyID:'J6040H62',UserID:'10000005',MingCheng:'澶栧浗浜哄氨涓氬欢鏈\\x9F',ZuZhi:'1234llll',LeiXingID:'4&7&8',LeiXing:'-',PiaoJu:'J6040H622015062615124746B0ZD',IP:'132.10.107.4',ShenBaoBianHao:'{CorrelationParameter_1}',DanWeiBianMa:'10000005',LX:'301',GeRenBianHao:''}},{tableName"
                ":'ZJ_WGRJiuYeXuKe',data:{GeRenMiaoShu:'sseee',PinQingLiYou:'ssss',GongZuoNeiRong:'dddd',GongZuoFangShi:'ddsss',QiTaDaiYu:'dddd',YueXin:'2222',LianXiEmail:'aa@sohu.com',LianXiRen:'娴嬭瘯浜哄憳',LianXiDianHua:'123456789123',KeyID:'J6040H62',UserID:'10000005',MingCheng:'澶栧浗浜哄氨涓氬欢鏈\\x9F',ZuZhi:'1234llll',LeiXingID:'4&7&8',LeiXing:'-',PiaoJu:'J6040H622015062615124746B0ZD',IP:'132.10.107.4',ShenBaoBianHao:'{CorrelationParameter_1}',DanWeiBianMa:'10000005',LX:'301',GeRenBianHao:''}},{tableName"
                ":'ZJ_WGRJiuYeXuKe',data:{FuJian1Ming:'Penguins.jpg',FuJian1Url:'App_UpDownloads/ca51aab0-1f0a-46d6-acfd-dfce588d06da.jpg',FuJian2Ming:'Penguins.jpg',FuJian2Url:'App_UpDownloads/757d7a70-5c28-473a-a9fd-167327f16b99.jpg',FuJian3Ming:'Koala.jpg',FuJian3Url:'App_UpDownloads/6defd135-9d59-43b0-b462-e75307b79492.jpg',KeyID:'J6040H62',UserID:'10000005',MingCheng:'澶栧浗浜哄氨涓氬欢鏈\\x9F',ZuZhi:'1234llll',LeiXingID:'4&7&8',LeiXing:'-',PiaoJu:'J6040H622015062615124746B0ZD',IP:'132.10.107.4',"
                "ShenBaoBianHao:'{CorrelationParameter_1}',DanWeiBianMa:'10000005',LX:'301',GeRenBianHao:''}}]}\"}",
                LAST);

        web_custom_request("FESWork.ZhengJian.WGRJiuYeXuKe,FESWork.ashx_6",
                "URL=http://10.207.254.104:8001/ajaxpro/FESWork.ZhengJian.WGRJiuYeXuKe,FESWork.ashx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={CorrelationParameter_2}&sj1={CorrelationParameter_3}",
                "Snapshot=t155.inf",
                "Mode=HTML",
                "EncType=text/plain; charset=utf-8",
                "BodyBinary={\"json\":\"{tableName:'ZJ_WGRJiuYeXuKe',data:{FuJian1Ming:'Penguins.jpg',FuJian1Url:'App_UpDownloads/ca51aab0-1f0a-46d6-acfd-dfce588d06da.jpg',FuJian2Ming:'Penguins.jpg',FuJian2Url:'App_UpDownloads/757d7a70-5c28-473a-a9fd-167327f16b99.jpg',FuJian3Ming:'Koala.jpg',FuJian3Url:'App_UpDownloads/6defd135-9d59-43b0-b462-e75307b79492.jpg',KeyID:'J6040H62',UserID:'10000005',MingCheng:'澶栧浗浜哄氨涓氬欢鏈\\x9F',ZuZhi:'1234llll',LeiXingID:'4&7&8',LeiXing:'-',PiaoJu"
                ":'J6040H622015062615124746B0ZD',IP:'132.10.107.4',ShenBaoBianHao:'{CorrelationParameter_1}',DanWeiBianMa:'10000005',LX:'301',GeRenBianHao:''}}\"}",
                LAST);

        web_custom_request("FESWork.ZhengJian.ZhengJianClass,FESWork.ashx",
                "URL=http://10.207.254.104:8001/ajaxpro/FESWork.ZhengJian.ZhengJianClass,FESWork.ashx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeShenBanEdit.aspx?pageType=Edit&sj={CorrelationParameter_2}&sj1={CorrelationParameter_3}",
                "Snapshot=t156.inf",
                "Mode=HTML",
                "EncType=text/plain; charset=utf-8",
                "Body={\"strZhuanYeJiShuZhiWu\":\"23\",\"strZhiWuLeiBie\":\"216\",\"strWenHuaChengDu\":\"30\"}",
                LAST);

        web_custom_request("FESWebShenBao.App_Modules.YeWuBanLi.ZhengJian.WGRJiuYe.XuKeList,FESWebShenBao.ashx_2",
                "URL=http://10.207.254.104:8001/ajaxpro/FESWebShenBao.App_Modules.YeWuBanLi.ZhengJian.WGRJiuYe.XuKeList,FESWebShenBao.ashx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeList.aspx",
                "Snapshot=t157.inf",
                "Mode=HTML",
                "EncType=text/plain; charset=utf-8",
                "BodyBinary={\"ControlName\":\"lc\",\"PageIndex\":1,\"PageSize\":12,\"title\":\"\",\"tableHeader\":\"搴忓彿$width:5%;&灏变笟璁稿彲璇\\x81$width:10%;&濮撳悕$width:15%;&鎬у埆$width:5%;&鍥界睄$width:15%;&鐢冲姙绫诲瀷$width:10%;&鐢宠鏃ユ湡$width:10%;&鐘舵\\x80\\x81$width:10%;\",\"linkUrlStr\":\"ShenBaoBianHao:textCenter:display:none&ShenHeZhuangTai:textCenter:display:none&ShouLiLieXing:textCenter:display:none&XingMing:textCenter:link:GoToPage-cellValue$ShenBaoBianHao*cellValue$ShouLiLieXing&caozuo"
                ":textCenter:display:none\",\"strWhere\":\" and DanWeiBianMa='10000005'\"}",
                LAST);

        web_custom_request("FESWebShenBao.App_Modules.YeWuBanLi.ZhengJian.WGRJiuYe.XuKeList,FESWebShenBao.ashx_3",
                "URL=http://10.207.254.104:8001/ajaxpro/FESWebShenBao.App_Modules.YeWuBanLi.ZhengJian.WGRJiuYe.XuKeList,FESWebShenBao.ashx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=http://10.207.254.104:8001/App_Modules/YeWuBanLi/ZhengJian/WGRJiuYe/XuKeList.aspx",
                "Snapshot=t158.inf",
                "Mode=HTML",
                "EncType=text/plain; charset=utf-8",
                "BodyBinary={\"ControlName\":\"lc\",\"PageIndex\":1,\"PageSize\":12,\"title\":\"\",\"tableHeader\":\"搴忓彿$width:5%;&灏变笟璁稿彲璇\\x81$width:10%;&濮撳悕$width:15%;&鎬у埆$width:5%;&鍥界睄$width:15%;&鐢冲姙绫诲瀷$width:10%;&鐢宠鏃ユ湡$width:10%;&鐘舵\\x80\\x81$width:10%;\",\"linkUrlStr\":\"ShenBaoBianHao:textCenter:display:none&ShenHeZhuangTai:textCenter:display:none&ShouLiLieXing:textCenter:display:none&XingMing:textCenter:link:GoToPage-cellValue$ShenBaoBianHao*cellValue$ShouLiLieXing&caozuo"
                ":textCenter:display:none\",\"strWhere\":\" and DanWeiBianMa='10000005'\"}",
                LAST);
回复 支持 反对

使用道具 举报

该用户从未签到

6#
 楼主| 发表于 2015-6-30 09:47:24 | 只看该作者
2,3,4楼是action里面的内容。
LR回放,LR没有报错,但是不知道问什么,就是新增不了数据。
回复 支持 反对

使用道具 举报

该用户从未签到

7#
 楼主| 发表于 2015-6-30 09:50:23 | 只看该作者
观察replay log。请求与generation log一样,但是某些post请求的response与generation log不一样。replay log:

POST /ajaxpro/FESWork.UserModel,FESWork.ashx HTTP/1.1\r\n
vuser_init.c(133):     Content-Type: text/plain; charset=utf-8\r\n
vuser_init.c(133):     Cache-Control: no-cache\r\n
vuser_init.c(133):     Referer: http://10.207.254.104:8001/Index.aspx?sj=82FZB4\r\n
vuser_init.c(133):     User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CL
vuser_init.c(133):     R 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; MALC; Media Center PC 6.0; Tablet PC
vuser_init.c(133):     2.0; .NET4.0C; .NET4.0E; InfoPath.3)\r\n
vuser_init.c(133):     Accept-Encoding: gzip, deflate\r\n
vuser_init.c(133):     Accept-Language: zh-cn\r\n
vuser_init.c(133):     Accept: */*\r\n
vuser_init.c(133):     Connection: Keep-Alive\r\n
vuser_init.c(133):     Host: 10.207.254.104:8001\r\n
vuser_init.c(133):     Cookie: ASP.NET_SessionId=1iaejjy2oomleoy4uxmkghr3\r\n
vuser_init.c(133):     Content-Length: 2\r\n
vuser_init.c(133):     \r\n
vuser_init.c(133): t=59645ms: 2-byte request body for "http://10.207.254.104:8001/ajaxpro/FESWork.UserModel,FESWork.ashx" (RelFrameId=1, Internal ID=59)
vuser_init.c(133):     {}
vuser_init.c(133): t=59661ms: 178-byte response headers for "http://10.207.254.104:8001/ajaxpro/FESWork.UserModel,FESWork.ashx" (RelFrameId=1, Internal ID=59)
vuser_init.c(133):     HTTP/1.1 200 OK\r\n
vuser_init.c(133):     Cache-Control: private\r\n
vuser_init.c(133):     Content-Length: 0\r\n
vuser_init.c(133):     Server: Microsoft-IIS/8.5\r\n
vuser_init.c(133):     X-AspNet-Version: 4.0.30319\r\n
vuser_init.c(133):     X-Powered-By: ASP.NET\r\n
vuser_init.c(133):     Date: Mon, 29 Jun 2015 05:34:54 GMT\r\n
vuser_init.c(133):     \r\n
回复 支持 反对

使用道具 举报

该用户从未签到

8#
 楼主| 发表于 2015-6-30 09:51:39 | 只看该作者
generation log:

POST /ajaxpro/FESWork.UserModel,FESWork.ashx HTTP/1.1
Accept: */*
Accept-Language: zh-cn
x-ajaxpro-method: GetUser
Referer: http://10.207.254.104:8001/Index.aspx?sj=46B0ZD
Content-Type: text/plain; charset=utf-8
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; MALC; Media Center PC 6.0; Tablet PC 2.0; .NET4.0C; .NET4.0E; InfoPath.3)
Host: 10.207.254.104:8001
Content-Length: 2
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: KeyID=qLDZXRNXgIg%3d; ASP.NET_SessionId=uwacohbihqr4kwgt1iuelwau


$$$$$$ Request Header For Transaction With Id 270 Ended $$$$$$

****** Request Body For Transaction With Id 270 ******
{}
$$$$$$ Request Body For Transaction With Id 270 Ended $$$$$$

****** Response Header For Transaction With Id 270 ******
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 126
Content-Type: text/plain; charset=utf-8
Expires: -1
Server: Microsoft-IIS/8.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Fri, 26 Jun 2015 07:12:51 GMT


$$$$$$ Response Header For Transaction With Id 270 Ended $$$$$$

****** Response Body For Transaction With Id 270 ******
{"value":["J6040H62","10000005","外国人就业延期","1234llll","4&7&8","-","J6040H622015062615124746B0ZD","132.10.107.4"]}
$$$$$$ Response Body For Transaction With Id 270 Ended $$$$$$
回复 支持 反对

使用道具 举报

该用户从未签到

9#
 楼主| 发表于 2015-6-30 09:54:01 | 只看该作者
replay log 的response返回长度为0,而generation log的response返回的是:{"value":["J6040H62","10000005","外国人就业延期","1234llll","4&7&8","-","J6040H622015062615124746B0ZD","132.10.107.4"]}

研发人员说,他们对提交的数据进行客户端二次封装,再发送给服务器。不知道LR支持不支持这种情况。

希望各位大拿给点建议。
回复 支持 反对

使用道具 举报

该用户从未签到

10#
 楼主| 发表于 2015-6-30 09:57:44 | 只看该作者
replay log的response 返回内容长度为0,generation log 返回:{"value":["J6040H62","10000005","外国人就业延期","1234llll","4&7&8","-","J6040H622015062615124746B0ZD","132.10.107.4"]}。

问过研发人员,研发人员说,系统对提交的数据进行客户端二次封装,然后再提交到服务器上。
不知道LR支不支持这种方式的提交数据。
请各位大拿帮忙,给点建议。
回复 支持 反对

使用道具 举报

该用户从未签到

11#
 楼主| 发表于 2015-6-30 13:06:39 | 只看该作者
请求高手帮个忙吧
实在排查不出问题了。
回复 支持 反对

使用道具 举报

该用户从未签到

12#
 楼主| 发表于 2015-6-30 13:57:12 | 只看该作者
版主能不能帮忙看看。
回复 支持 反对

使用道具 举报

该用户从未签到

13#
 楼主| 发表于 2015-6-30 13:59:26 | 只看该作者
部分post 请求,response的内容为空。
请求比对过generation log。没差。
返回是200成功。但是response就是为空。
上面脚本回放,不能新增数据。
回复 支持 反对

使用道具 举报

  • TA的每日心情
    奋斗
    10 小时前
  • 签到天数: 2805 天

    连续签到: 4 天

    [LV.Master]测试大本营

    14#
    发表于 2015-6-30 16:01:39 | 只看该作者
    建议楼主让研发人员在服务端打印日志,查看你正常添加的数据与LR运行数据(封装之前)的差异,同时查看服务是否正常,再分析代码;
    LR回放不报错,只是说明脚本语法没有问题,不能代表功能正常.

    评分

    参与人数 1测试积点 +10 收起 理由
    lsekfe + 10 恭喜你获得测试积点10

    查看全部评分

    回复 支持 反对

    使用道具 举报

    该用户从未签到

    15#
     楼主| 发表于 2015-6-30 16:28:21 | 只看该作者
    jingzizx 发表于 2015-6-30 16:01
    建议楼主让研发人员在服务端打印日志,查看你正常添加的数据与LR运行数据(封装之前)的差异,同时查看服务是否 ...

    好的,我试试让研发弄弄看。
    谢谢版主
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    16#
     楼主| 发表于 2015-6-30 21:38:38 | 只看该作者
    希望有人能给出一些建议
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-11-7 18:13 , Processed in 0.070001 second(s), 23 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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