51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

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

[求助] loadrunner11录制脚本报错,请各位大虾帮忙。。

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2012-8-24 11:08:51 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
loadrunner11录制一个医科大学门户平台系统,html模式录制,脚本如下
web_submit_data("check_outchain.php",
                "Action=http://qurl.f.360.cn/check_outchain.php",
                "Method=POST",
                "EncType=multipart/form-data",
                "RecContentType=text/xml",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=urls", "Value=3fc00cb8ce573f701a310d5111c52bd1|0eda49ba8a42bf9780fca37e85c227a9|eb163727917cbba1eea208541a643e74|5ebaf7bef23bf05b60a330b68ea87910|26f95c4638c028e805f319467864db2e|0eda49ba8a42bf9780fca37e85c227a9|67738261c8decf12093432c9d576fb9a|18e0882e68853bdaa8e3cbb3ee5357f7\tZGxlYwR2BP4jYwVkZD==\n", ENDITEM,
                "Name=src", "Value=addrbar", ENDITEM,
                "Name=product", "Value=wd", ENDITEM,
                "Name=combo", "Value=urlproc", ENDITEM,
                "Name=v", "Value=1", ENDITEM,
                "Name=vk", "Value=75ce766d", ENDITEM,
                "Name=mid", "Value=58df9ec9d0dd0fe21f3b7e410a797134", ENDITEM,
                LAST);

        web_url("login",
                "URL=http://192.168.0.211:8100/cas/login?service=http%3A%2F%2F192.168.0.225%3A8200%2Fportal",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t2.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=css/ie_cas.css", "Referer=http://192.168.0.211:8100/cas/login?service=http%3A%2F%2F192.168.0.225%3A8200%2Fportal", ENDITEM,
                "Url=css/main.css", "Referer=http://192.168.0.211:8100/cas/login?service=http%3A%2F%2F192.168.0.225%3A8200%2Fportal", ENDITEM,
                "Url=images/logins/login.jpg", "Referer=http://192.168.0.211:8100/cas/login?service=http%3A%2F%2F192.168.0.225%3A8200%2Fportal", ENDITEM,
                "Url=images/logins/bottom_09.png", "Referer=http://192.168.0.211:8100/cas/login?service=http%3A%2F%2F192.168.0.225%3A8200%2Fportal", ENDITEM,
                "Url=images/logins/bottom_10.png", "Referer=http://192.168.0.211:8100/cas/login?service=http%3A%2F%2F192.168.0.225%3A8200%2Fportal", ENDITEM,
                "Url=../favicon.ico", "Referer=", ENDITEM,
                LAST);

        lr_start_transaction("login");

        lr_think_time(19);

        web_submit_data("check_outchain.php_2",
                "Action=http://qurl.f.360.cn/check_outchain.php",
                "Method=POST",
                "EncType=multipart/form-data",
                "RecContentType=text/xml",
                "Referer=",
                "Snapshot=t3.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=urls", "Value=f14f99b5ea40d90c72ddafea5a5422a7|0eda49ba8a42bf9780fca37e85c227a9|eb163727917cbba1eea208541a643e74|5ebaf7bef23bf05b60a330b68ea87910|26f95c4638c028e805f319467864db2e|0eda49ba8a42bf9780fca37e85c227a9|67738261c8decf12093432c9d576fb9a|e392fb155faa44b2463c25b6573bdad9\tZGxlYwR2BP4jYwVkZD==\n", ENDITEM,
                "Name=src", "Value=addrbar", ENDITEM,
                "Name=product", "Value=wd", ENDITEM,
                "Name=combo", "Value=urlproc", ENDITEM,
                "Name=v", "Value=1", ENDITEM,
                "Name=vk", "Value=39680d7c", ENDITEM,
                "Name=mid", "Value=58df9ec9d0dd0fe21f3b7e410a797134", ENDITEM,
                LAST);

        web_submit_data("login;jsessionid=CED309AFC148A82E517CC19422443EC4",
                "Action=http://192.168.0.211:8100/cas/login;jsessionid=CED309AFC148A82E517CC19422443EC4?service=http%3A%2F%2F192.168.0.225%3A8200%2Fportal",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://192.168.0.211:8100/cas/login?service=http%3A%2F%2F192.168.0.225%3A8200%2Fportal",
                "Snapshot=t4.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=username", "Value=40101240", ENDITEM,
                "Name=password", "Value=1", ENDITEM,
                "Name=yzm1", "Value=6425", ENDITEM,
                "Name=submit", "Value=", ENDITEM,
                "Name=lt", "Value=_c6B50E99F-C89A-C0B7-3B5D-754AB0DB3027_kA31E0EF1-D115-F955-D0E2-4116E101E9E3", ENDITEM,
                "Name=_eventId", "Value=submit", ENDITEM,
                EXTRARES,
                "Url=http://192.168.0.225:8200/portal-core/themes/common/portlet-editor.css", "Referer=http://192.168.0.225:8200/portal?ticket=ST-71-zF4rCIqa5Qycm3dbgQt7-cas", ENDITEM,
                "Url=http://192.168.0.225:8200/portal-core/themes/common/tooltip.css", "Referer=http://192.168.0.225:8200/portal?ticket=ST-71-zF4rCIqa5Qycm3dbgQt7-cas", ENDITEM,
                "Url=http://192.168.0.225:8200/portal-core/themes/Blue2Columns/images/bg.jpg", "Referer=http://192.168.0.225:8200/portal?ticket=ST-71-zF4rCIqa5Qycm3dbgQt7-cas", ENDITEM,
                "Url=http://192.168.0.225:8200/portal-core/themes/Blue2Columns/images/01_03.jpg", "Referer=http://192.168.0.225:8200/portal?ticket=ST-71-zF4rCIqa5Qycm3dbgQt7-cas", ENDITEM,
                "Url=http://192.168.0.225:8200/portal-core/themes/Blue2Columns/images/head.jpg", "Referer=http://192.168.0.225:8200/portal?ticket=ST-71-zF4rCIqa5Qycm3dbgQt7-cas", ENDITEM,
                "Url=http://192.168.0.225:8200/portal-core/themes/Blue2Columns/images/jiao_05.gif", "Referer=http://192.168.0.225:8200/portal?ticket=ST-71-zF4rCIqa5Qycm3dbgQt7-cas", ENDITEM,
                "Url=http://192.168.0.225:8200/portal-core/themes/Blue2Columns/images/navbg.gif", "Referer=http://192.168.0.225:8200/portal?ticket=ST-71-zF4rCIqa5Qycm3dbgQt7-cas", ENDITEM,
                "Url=http://192.168.0.225:8200/portal-core/themes/Blue2Columns/images/line.jpg", "Referer=http://192.168.0.225:8200/portal?ticket=ST-71-zF4rCIqa5Qycm3dbgQt7-cas", ENDITEM,
                "Url=http://192.168.0.225:8200/portal-core/themes/Blue2Columns/images/1_03.gif", "Referer=http://192.168.0.225:8200/portal?ticket=ST-71-zF4rCIqa5Qycm3dbgQt7-cas", ENDITEM,
                "Url=http://192.168.0.225:8200/portal-core/themes/Blue2Columns/images/1_05.gif", "Referer=http://192.168.0.225:8200/portal?ticket=ST-71-zF4rCIqa5Qycm3dbgQt7-cas", ENDITEM,
                "Url=http://192.168.0.225:8200/portal-core/themes/Blue2Columns/images/an_03xiao.png", "Referer=http://192.168.0.225:8200/portal?ticket=ST-71-zF4rCIqa5Qycm3dbgQt7-cas", ENDITEM,
                "Url=http://192.168.0.225:8200/portal-core/themes/Blue2Columns/images/an_05da.png", "Referer=http://192.168.0.225:8200/portal?ticket=ST-71-zF4rCIqa5Qycm3dbgQt7-cas", ENDITEM,
                "Url=http://192.168.0.225:8200/portal-core/themes/Blue2Columns/images/portlet-left-vertical.gif", "Referer=http://192.168.0.225:8200/portal?ticket=ST-71-zF4rCIqa5Qycm3dbgQt7-cas", ENDITEM,
                "Url=http://192.168.0.225:8200/portal-core/themes/Blue2Columns/images/1_07.gif", "Referer=http://192.168.0.225:8200/portal?ticket=ST-71-zF4rCIqa5Qycm3dbgQt7-cas", ENDITEM,
                "Url=http://192.168.0.225:8200/portal-core/themes/Blue2Columns/images/portlet-bottom-right.gif", "Referer=http://192.168.0.225:8200/portal?ticket=ST-71-zF4rCIqa5Qycm3dbgQt7-cas", ENDITEM,
                "Url=http://192.168.0.225:8200/portal-core/themes/Blue2Columns/images/portlet-bottom-left.gif", "Referer=http://192.168.0.225:8200/portal?ticket=ST-71-zF4rCIqa5Qycm3dbgQt7-cas", ENDITEM,
                "Url=http://192.168.0.225:8200/portal-core/themes/Blue2Columns/images/portlet-right-vertical.gif", "Referer=http://192.168.0.225:8200/portal?ticket=ST-71-zF4rCIqa5Qycm3dbgQt7-cas", ENDITEM,
                "Url=http://192.168.0.225:8200/portal-core/themes/Blue2Columns/images/portlet-bottom-middle.gif", "Referer=http://192.168.0.225:8200/portal?ticket=ST-71-zF4rCIqa5Qycm3dbgQt7-cas", ENDITEM,
                LAST);

        lr_end_transaction("login",LR_AUTO);

        lr_think_time(36);

        web_submit_data("check_outchain.php_3",
                "Action=http://qurl.f.360.cn/check_outchain.php",
                "Method=POST",
                "EncType=multipart/form-data",
                "RecContentType=text/xml",
                "Referer=",
                "Snapshot=t5.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=urls", "Value=c4553e9eedb405ff6f4b1e162de1c3f3|c42eba2117f6cabe685aee7107aaf076|d1c38a09acc34845c6be3a127a5aacaf|f419f324efc2e535137588e57ff690e4|3ded9569db4094413caf689b80e974b6|c42eba2117f6cabe685aee7107aaf076|58c3b3c7fbd5a6d2fd184fa93761a6f3\tZGxlYwR2BP4jYwVlAD==\n", ENDITEM,
                "Name=src", "Value=addrbar", ENDITEM,
                "Name=product", "Value=wd", ENDITEM,
                "Name=combo", "Value=urlproc", ENDITEM,
                "Name=v", "Value=1", ENDITEM,
                "Name=vk", "Value=bcbb9b7a", ENDITEM,
                "Name=mid", "Value=58df9ec9d0dd0fe21f3b7e410a797134", ENDITEM,
                LAST);

        web_add_cookie("JSESSIONID=CED309AFC148A82E517CC19422443EC4; DOMAIN=192.168.0.211");

        web_url("signout;jsessionid=2B73DF80F1C8D306AA5A9E89AAD149F2",
                "URL=http://192.168.0.225:8200/portal/signout;jsessionid=2B73DF80F1C8D306AA5A9E89AAD149F2",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://192.168.0.225:8200/portal?ticket=ST-71-zF4rCIqa5Qycm3dbgQt7-cas",
                "Snapshot=t6.inf",
                "Mode=HTML",
                LAST);

        web_submit_data("check_outchain.php_4",
                "Action=http://qurl.f.360.cn/check_outchain.php",
                "Method=POST",
                "EncType=multipart/form-data",
                "RecContentType=text/xml",
                "Referer=",
                "Snapshot=t7.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=urls", "Value=3fc00cb8ce573f701a310d5111c52bd1|0eda49ba8a42bf9780fca37e85c227a9|eb163727917cbba1eea208541a643e74|5ebaf7bef23bf05b60a330b68ea87910|26f95c4638c028e805f319467864db2e|0eda49ba8a42bf9780fca37e85c227a9|67738261c8decf12093432c9d576fb9a|18e0882e68853bdaa8e3cbb3ee5357f7\tZGxlYwR2BP4jYwVkZD==\n", ENDITEM,
                "Name=src", "Value=addrbar", ENDITEM,
                "Name=product", "Value=wd", ENDITEM,
                "Name=combo", "Value=urlproc", ENDITEM,
                "Name=v", "Value=1", ENDITEM,
                "Name=vk", "Value=75ce766d", ENDITEM,
                "Name=mid", "Value=58df9ec9d0dd0fe21f3b7e410a797134", ENDITEM,
                LAST);
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

  • TA的每日心情
    奋斗
    2022-5-8 19:23
  • 签到天数: 137 天

    连续签到: 1 天

    [LV.7]测试师长

    2#
    发表于 2012-8-28 22:29:05 | 只看该作者
    把360关掉
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-11-11 10:02 , Processed in 0.174075 second(s), 27 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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