51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1589|回复: 3
打印 上一主题 下一主题

[原创] loadrunner录制脚本问题(乱码)

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2009-11-10 14:36:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
下面是我录制的sohu邮箱发邮件的脚本:(为何感觉和视频上面讲的不同呢,乱七八糟的)
Action()
{
        lr_start_transaction("写邮件");

        lr_think_time(15);

        web_custom_request("mail",
                "URL=http://mail.sohu.com/bapp/95/mail",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://mail.sohu.com/bapp/95/main#writeMail",
                "Snapshot=t11.inf",
                "Mode=HTML",
                "EncType=application/x-www-form-urlencoded; charset=UTF-8",
                "Body=id=0&is_send=0&is_html=1&to=%22lr_rxiongzn%22%3Clr_rxiongzn%40sohu.com%3E%2C&cc=&bcc=&subject={NewParam}%20is%20weekly%2C%20how%20are%20you%3F&html=%3CP%3E%26nbsp%3B%26nbsp%3B%20Thanks%20your%20dinner!%3C%2FP%3E%0D%0A%3CP%3Etomorrow%20i%20will%20%3CBR%3E%3C%2FP%3E&text=%26nbsp%3B%26nbsp%3B%20Thanks%20your%20dinner!%0D%0Atomorrow%20i%20will%20&env="
                "%7B%22attach%22%3A%20%5B%5D%2C%20%22original_id%22%3A%200%2C%20%22draft_type%22%3A%200%2C%20%22message_id%22%3A%20%22%22%2C%20%22references%22%3A%20%5B%5D%2C%20%22reply_to%22%3A%20%5B%5D%2C%20%22in_reply_to%22%3A%20%5B%5D%2C%20%22mail_followup_to%22%3A%20%5B%5D%2C%20%22thread%22%3A%200%7D&_method=put",
                LAST);

        lr_end_transaction("写邮件",LR_AUTO);

        lr_start_transaction("发邮件");

        lr_think_time(20);

        web_custom_request("mail_2",
                "URL=http://mail.sohu.com/bapp/95/mail",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://mail.sohu.com/bapp/95/main#writeMail",
                "Snapshot=t12.inf",
                "Mode=HTML",
                "EncType=application/x-www-form-urlencoded; charset=UTF-8",
                "Body=id=63&stationery=&is_send=1&is_html=1&subject=Today%20is%20weekly%2C%20how%20are%20you%3F&from=lr_rxiongzn%40sohu.com&fullname=&to=%22lr_rxiongzn%22%3Clr_rxiongzn%40sohu.com%3E&cc=&bcc=&html=%3CP%3E%26nbsp%3B%26nbsp%3B%20Thanks%20your%20dinner!%3C%2FP%3E%0D%0A%3CP%3Etomorrow%20i%20will%20.%3CBR%3E%3C%2FP%3E&text=%26nbsp%3B%26nbsp%3B%20Thanks%20your%20dinner!%0D%0Atomorrow%20i%20will%20.&addressbook_use_flag=0&addressbook_use_list=1&env="
                "%7B%22attach%22%3A%20%5B%5D%2C%20%22original_id%22%3A%200%2C%20%22draft_type%22%3A%200%2C%20%22message_id%22%3A%20%22%22%2C%20%22references%22%3A%20%5B%5D%2C%20%22reply_to%22%3A%20%5B%5D%2C%20%22in_reply_to%22%3A%20%5B%5D%2C%20%22mail_followup_to%22%3A%20%5B%5D%2C%20%22save_after_send%22%3A%201%2C%20%22save_to_addressbook%22%3A%201%2C%20%22thread%22%3A%200%7D&securityCode="
                "UPAPCLALHCPLCLHCUPCLHPNCPLAPUCALYLSPLCPLAPUCACUPCLYLHCUPCLHPLCPLCPUCPLAPCLHCUPCLHLACUPCLALYCPLAPCLHLYPECACPLAPCPLCPLCPUCUPCLHCACPLAPUCSLYCAPELYLALSCPLCPUCUPCLHLSLYCALSLYPULHLYPLCPLYLAPULYPLCALYLAPULYPLCPLYPLCALYPLCSLYPLPELYCALSLYPLPELYLAPL&single=0&sendtime=1257675698187&_method=put",
                EXTRARES,
                "Url=/score/getscoreinfo", "Referer=http://mail.sohu.com/bapp/95/main#writeMail", ENDITEM,
                LAST);

        web_url("success.htm",
                "URL=http://ad.mail.sohu.com/mail/success.htm?1257675600953",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://mail.sohu.com/bapp/95/main",
                "Snapshot=t13.inf",
                "Mode=HTML",
                LAST);

        lr_end_transaction("发邮件",LR_AUTO);

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

使用道具 举报

该用户从未签到

2#
发表于 2009-11-10 14:39:27 | 只看该作者
recording options 的Advanced选项里 将surport charest设置为UTF-8试试  顺便帮我解答一下我提的问题 就在你楼下面
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2009-11-11 11:30:32 | 只看该作者
这个不是乱码的,是不是加密过的字符串?
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2009-11-13 16:50:32 | 只看该作者
我也有这种问题,什么都看不懂啊。
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-18 20:14 , Processed in 0.069979 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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