51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1602|回复: 0
打印 上一主题 下一主题

[求助] 各位高手,帮忙解决下loadrunner上传照片参数化问题

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2013-3-20 16:40:44 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我录制了人人网相册里上传了一张照片的脚本,然后我想把上传的值参数化成一次性上传100张同一照片,于是我找到了那个上传照片的脚本:
web_submit_data("v1.0",
                "Action=http://upload.renren.com/upload/223107593/finish_upload/v1.0",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://photo.renren.com/photo/223107593/album-863447106",
                "Snapshot=t87.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=newAlbum", "Value=false", ENDITEM,
                "Name=album.password", "Value=", ENDITEM,
                "Name=album.albumcontrol", "Value=99", ENDITEM,
                "Name=album.id", "Value=863447106", ENDITEM,
                "Name=album.passwordProtected", "Value=false", ENDITEM,
                "Name=album.description", "Value=", ENDITEM,
                "Name=album.name", "Value=2013%E5%B9%B43%E6%9C%8820%E6%97%A5", ENDITEM,
                "Name=photos", "Value="
                "%5B%7B%22code%22%3A0%2C%22msg%22%3A%22%22%2C%22filename%22%3A%22nofilename.jpg%22%2C%22filesize%22%3A27499%2C%22width%22%3A800%2C%22height%22%3A446%2C%22images%22%3A%5B%7B%22url%22%3A%22fmn064%2F20130320%2F1630%2Flarge_zDcs_1cca00019d39118f.jpg%22%2C%22type%22%3A%22large%22%2C%22width%22%3A720%2C%22height%22%3A401%7D%2C%7B%22url%22%3A%22fmn064%2F20130320%2F1630%2Fmain_zDcs_1cca00019d39118f.jpg%22%2C%22type%22%3A%22main%22%2C%22width%22%3A200%2C%22height%22%3A111%7D%2C%7B%22url%22%3A%22fmn064%2F201"
                "30320%2F1630%2Ftiny_zDcs_1cca00019d39118f.jpg%22%2C%22type%22%3A%22tiny%22%2C%22width%22%3A50%2C%22height%22%3A50%7D%2C%7B%22url%22%3A%22fmn064%2F20130320%2F1630%2Fhead_zDcs_1cca00019d39118f.jpg%22%2C%22type%22%3A%22head%22%2C%22width%22%3A100%2C%22height%22%3A55%7D%2C%7B%22url%22%3A%22fmn064%2F20130320%2F1630%2Foriginal_zDcs_1cca00019d39118f.jpg%22%2C%22type%22%3A%22xlarge%22%2C%22width%22%3A800%2C%22height%22%3A446%7D%5D%2C%22tempID%22%3A%22fileItem671162730_0%22%2C%22title%22%3A%22%22%7D%5D"
, ENDITEM,
                "Name=coversMainUrl", "Value=", ENDITEM,
                "Name=saveType", "Value=0", ENDITEM,
                "Name=sendUsers", "Value=", ENDITEM,
                "Name=tlTime", "Value=", ENDITEM,
                "Name=from", "Value=0", ENDITEM,
                "Name=noFeed", "Value=false", ENDITEM,
                "Name=uploadType", "Value=1", ENDITEM,
                EXTRARES,
                "Url=http://a.xnimg.cn/n/apps/photo/cssimg/vp_play_video_bg.png", "Referer=http://photo.renren.com/photo/223107593/album-863447106?uploadType=1", ENDITEM,
                "Url=http://a.xnimg.cn/n/apps/photo/cssimg/vp_play_buttons.png", "Referer=http://photo.renren.com/photo/223107593/album-863447106?uploadType=1", ENDITEM,
                "Url=http://a.xnimg.cn/n/apps/photo/cssimg/vp_buttons.png", "Referer=", ENDITEM,
                "Url=http://a.xnimg.cn/n/apps/photo/cssimg/vp_button_bg.png", "Referer=", ENDITEM,
                LAST);
结果脚本中上传的值是一堆可能是加密过的代码,这样的话,参数化就不能用正常的照片的路径及名称作为参数值了,请问高手们,应该怎么做?
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-23 09:31 , Processed in 0.075611 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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