51Testing软件测试论坛

标题: 为何lr显示的响应时间这么长 [打印本页]

作者: kingta    时间: 2016-6-3 21:40
标题: 为何lr显示的响应时间这么长
lr显示时间较长,压力的时候手动登陆,实际网页反应没有这么慢,脚本如下(就是简单的一个登陆功能)
Action()
{

        //web_add_cookie("Hm_lvt_dd4738b5fb302cb062ef19107df5d2e4=1456474894; DOMAIN=cclv.firefoxchina.cn");

        //web_add_cookie("Hm_lvt_dd4738b5fb302cb062ef19107df5d2e4=1456474894; DOMAIN=e.firefoxchina.cn");

        web_url("123.232.109.142:9000",
                "URL=http://123.232.109.142:9000/",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=http://adu.g-fox.cn/adu.gif?channelid=firefox.latest&fxversion=40.0.2&ceversion=2015.8&ver=2_2&pk=%7B4e868980-a9b0-4791-b99a-6f85990afd17%7D&uk=%7Bbf433a0c-9602-404b-a039-86795f899920%7D&cehome=false&locale=zh-CN&moexts=cemigration,coba,easyscreenshot,cpmanager,tabtweak,cehomepage,commonfix,wx-assistant&age=289&default=false&defaultHttp=false&flash=&now=1464957537419", "Referer=", ENDITEM,
                "Url=http://cclv.firefoxchina.cn/cclv/v2/patterns.json", "Referer=", ENDITEM,
                "Url=http://e.firefoxchina.cn/skipsb/v1/urls.json", "Referer=", ENDITEM,
                LAST);

        lr_start_transaction("登陆");

        web_submit_data("doLogin.cmd",
                "Action=http://123.232.109.142:9000/loginCmd/doLogin.cmd",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://123.232.109.142:9000/",
                "Snapshot=t2.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=j_username", "Value={username}", ENDITEM,
                "Name=j_password", "Value=71353c2791ee66642e77484cf86bfbb0", ENDITEM,
                "Name=rdmCode", "Value=", ENDITEM,
                LAST);

        web_custom_request("getTreeInfoById.cmd",
                "URL=http://123.232.109.142:9000/menuTreeCmd/getTreeInfoById.cmd",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/json",
                "Referer=http://123.232.109.142:9000/",
                "Snapshot=t3.inf",
                "Mode=HTML",
                "EncType=",
                LAST);

        lr_end_transaction("登陆",LR_AUTO);

        return 0;
}





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