51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

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

[原创] loadrunner9.5录制的脚本,body内容不完整。求解决!!

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2012-1-13 10:07:05 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
录制系统登录,登录的时候有IE插件去连接用户认证服务器,判断是否能登录成功,脚本内容web_custom_request中的body内容不完整,这是为什么呢?回放报错
Action.c(29): Error -27728: Step download timeout (120 seconds) has expired when downloading non-resource(s)          [MsgId: MERR-27728]
Action.c(29): Aborting pending download of URL="http://192.168.20.122:7011/handleuas"          [MsgId: MMSG-27656]
Action.c(29): web_custom_request("handleuas") highest severity level was "ERROR", 0 body bytes, 0 header bytes          [MsgId: MMSG-26388]


登录脚本
Action()
{

        web_url("index.html",
                "URL=http://192.168.20.122:7011/index.html",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTML",
                LAST);

        web_url("login.html",
                "URL=http://192.168.20.122:7011/login.html",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t2.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=/img/bg_login.jpg", ENDITEM,
                "Url=/img/button_bg.png", ENDITEM,
                LAST);

        lr_start_transaction("login");

        lr_think_time(10);

        web_custom_request("handleuas",
                "URL=http://192.168.20.122:7011/handleuas",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t3.inf",
                "Mode=HTML",
                "Body=<authentication type = \"",
                LAST);

        web_custom_request("type",
                "URL=http://192.168.20.122:7011/type",
                "Method=GetAuthenticateUserRequest\"><CertSubjectName",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t4.inf",
                "Mode=HTML",
                "Body=<authentication type = \"ChallengeResponse\"><CertSubjectName type = \"UserName\">a1</Ce",
                LAST);

        web_add_cookie("JSESSIONID=1d6qrspm25k44; DOMAIN=192.168.20.122");

        web_custom_request("handlerp",
                "URL=http://192.168.20.122:7011/handlerp",
                "Method=rtSubjectName><SignatureChallenge>k5Fl3TDDYMBe9lSXuMAd7x6wggk=</SignatureChallenge></authentication>POST",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t5.inf",
                "Mode=HTML",
                "Body=<authentication type = \"SSO1_GetResourcerRequest\"><CertSubjectName  type = \"UserNa",
                LAST);

        web_custom_request("handleuas_2",
                "URL=http://192.168.20.122:7011/handleuas",
                "Method=me\">a1</CertSubjectName><UASInfo><IP>192.168.20.122</IP><Port>7011</Port></UASInfo></authentication>POST",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t6.inf",
                "Mode=HTML",
                "Body=<authentication type = \"SSO1_HandleResourceR",
                LAST);

        web_custom_request("type_2",
                "URL=http://192.168.20.122:7011/type",
                "Method=esponse_Out\"><CertSubjectName",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t7.inf",
                "Mode=HTML",
                "Body=<authentication type = \"SSO1_HandleAccessSecretResponse_Out\"><AgentIdentity>1d",
                LAST);

        web_url("ext",
                "URL=http://192.168.20.122:7011/ext?kind=4",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.20.122:7011/login.html",
                "Snapshot=t8.inf",
                "Mode=HTML",
                LAST);

        web_submit_data("ext_2",
                "Action=http://192.168.20.122:7011/ext",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://192.168.20.122:7011/login.html",
                "Snapshot=t9.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=kind", "Value=5", ENDITEM,
                "Name=uuid", "Value=[\"0b1741da-1ba4-d62c-6aa7-2daab99f17a4\",\"e251fb21-b694-44d8-8d0a-aaef52e09e48\",\"2e931933-2315-d29b-fad4-3806a380efa7\"]", ENDITEM,
                LAST);

        web_url("index.html_2",
                "URL=http://192.168.20.122:7011/index.html",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t10.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=/img/bg_search.jpg", ENDITEM,
                "Url=/img/bg_search_index.png", ENDITEM,
                "Url=/img/bg_caption_title.jpg", ENDITEM,
                "Url=/img/bg_filler.jpg", ENDITEM,
                "Url=/img/bg_nav.jpg", ENDITEM,
                "Url=/img/head.jpg", ENDITEM,
                "Url=/img/bg_nav_l.gif", ENDITEM,
                "Url=/img/bg_foot.jpg", ENDITEM,
                "Url=/img/bg_nav_r.gif", ENDITEM,
                "Url=/img/nav_leaf.png", ENDITEM,
                "Url=/img/nav_root.png", ENDITEM,
                "Url=/img/bg_title.jpg", ENDITEM,
                LAST);

        web_url("head.html",
                "URL=http://192.168.20.122:7011/head.html",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.20.122:7011/index.html",
                "Snapshot=t11.inf",
                "Mode=HTML",
                LAST);

        web_url("foot.html",
                "URL=http://192.168.20.122:7011/foot.html",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.20.122:7011/index.html",
                "Snapshot=t12.inf",
                "Mode=HTML",
                LAST);

        web_submit_data("ext_3",
                "Action=http://192.168.20.122:7011/ext",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://192.168.20.122:7011/index.html",
                "Snapshot=t13.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=kind", "Value=2", ENDITEM,
                "Name=uuid", "Value=9F67B048-1D7A-9E2C-8CBE-83B28F6B79FC", ENDITEM,
                "Name=data", "Value={\"sqyh\":\"绠$悊鍛榓\"}", ENDITEM,
                "Name=dsendpoint", "Value=tcp://192.168.20.41:6000", ENDITEM,
                "Name=dspath", "Value=/data/server/query1", ENDITEM,
                LAST);

        web_url("index.modules.html",
                "URL=http://192.168.20.122:7011/index.modules.html",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.20.122:7011/index.html",
                "Snapshot=t14.inf",
                "Mode=HTML",
                LAST);

        web_url("ext_4",
                "URL=http://192.168.20.122:7011/ext?kind=1004&keys=%5B%22loadmodule1326353218421%22%5D",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.20.122:7011/index.html",
                "Snapshot=t15.inf",
                "Mode=HTML",
                LAST);

        web_submit_data("ext_5",
                "Action=http://192.168.20.122:7011/ext",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://192.168.20.122:7011/index.html",
                "Snapshot=t16.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=kind", "Value=1003", ENDITEM,
                "Name=uuid", "Value=C54E1FC5-91D6-5121-AD70-4A34EA02182E", ENDITEM,
                "Name=data", "Value={\"sqyh\":\"绠$悊鍛榓\"}", ENDITEM,
                "Name=opennew", "Value=true", ENDITEM,
                "Name=count", "Value=5", ENDITEM,
                "Name=limit", "Value=5", ENDITEM,
                "Name=key", "Value=loadmodule1326353218421", ENDITEM,
                "Name=dsendpoint", "Value=tcp://192.168.20.41:6000", ENDITEM,
                "Name=dspath", "Value=/data/server/query1", ENDITEM,
                LAST);

        web_submit_data("ext_6",
                "Action=http://192.168.20.122:7011/ext",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://192.168.20.122:7011/index.html",
                "Snapshot=t17.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=kind", "Value=1003", ENDITEM,
                "Name=uuid", "Value=2F8E3EE6-944A-B93D-6828-EFB36F17DD4B", ENDITEM,
                "Name=data", "Value={\"sqyh\":\"绠$悊鍛榓\",\"columnid\":\"14\"}", ENDITEM,
                "Name=opennew", "Value=true", ENDITEM,
                "Name=count", "Value=5", ENDITEM,
                "Name=limit", "Value=5", ENDITEM,
                "Name=key", "Value=loadmodule1326353219921", ENDITEM,
                "Name=dsendpoint", "Value=tcp://192.168.20.41:6000", ENDITEM,
                "Name=dspath", "Value=/data/server/query1", ENDITEM,
                LAST);

        web_submit_data("ext_7",
                "Action=http://192.168.20.122:7011/ext",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://192.168.20.122:7011/index.html",
                "Snapshot=t18.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=kind", "Value=1003", ENDITEM,
                "Name=uuid", "Value=144e4564-015d-fc6f-4ee0-84c53ed1cd25", ENDITEM,
                "Name=data", "Value={\"columnid\":\"20001\"}", ENDITEM,
                "Name=opennew", "Value=true", ENDITEM,
                "Name=count", "Value=5", ENDITEM,
                "Name=limit", "Value=5", ENDITEM,
                "Name=key", "Value=loadmodule1326353221421", ENDITEM,
                "Name=dsendpoint", "Value=tcp://192.168.20.117:8201", ENDITEM,
                "Name=dspath", "Value=/data/server/query1", ENDITEM,
                LAST);

        web_submit_data("ext_8",
                "Action=http://192.168.20.122:7011/ext",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://192.168.20.122:7011/index.html",
                "Snapshot=t19.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=kind", "Value=1003", ENDITEM,
                "Name=uuid", "Value=597E19B2-FDE8-B4ED-02B4-DAEF35B469F9", ENDITEM,
                "Name=data", "Value={\"columnid\":\"20001\",\"fjlx\":\"2\"}", ENDITEM,
                "Name=opennew", "Value=true", ENDITEM,
                "Name=count", "Value=1", ENDITEM,
                "Name=limit", "Value=1", ENDITEM,
                "Name=key", "Value=loadimg1326353221843", ENDITEM,
                "Name=dsendpoint", "Value=tcp://192.168.20.117:8201", ENDITEM,
                "Name=dspath", "Value=/data/server/query1", ENDITEM,
                LAST);

        web_url("ext_9",
                "URL=http://192.168.20.122:7011/ext?kind=27&url=http://192.168.20.117:6031/attaches/document.2011-11-10.3275600276_files/pic/1.jpg",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.20.122:7011/index.html",
                "Snapshot=t20.inf",
                "Mode=HTML",
                LAST);



        lr_end_transaction("login",LR_AUTO);

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

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2012-1-13 11:28:14 | 只看该作者
不是body内容不完整,而是web_custom_request中的内容都混乱了、。这是怎么回事啊,莫非是插件的问题?
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-14 13:11 , Processed in 0.111826 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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