各位高手,帮忙解决下loadrunner上传照片参数化问题
我录制了人人网相册里上传了一张照片的脚本,然后我想把上传的值参数化成一次性上传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);
结果脚本中上传的值是一堆可能是加密过的代码,这样的话,参数化就不能用正常的照片的路径及名称作为参数值了,请问高手们,应该怎么做?
页:
[1]