51Testing软件测试论坛
标题:
新人求助!关于LR录制的问题
[打印本页]
作者:
小确幸69
时间:
2013-9-14 20:52
标题:
新人求助!关于LR录制的问题
各位前辈们,我在用LR对DZ论坛进行录注册录制时,一直出错,也建了关联。还是有错,请大侠们指点
Action()
{
web_url("forum.php",
"URL=http://192.168.254.159/upload/forum.php",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=http://i.firefoxchina.cn/newtab/master/quickdialdata.json", "Referer=", ENDITEM,
"Url=http://adu.g-fox.cn/adu.gif?channelid=stub.firefox.com.cn&fxversion=23.0.1&ceversion=2013.9&ver=1_0&pk=%7B89d9e259-23d4-45e6-b412-b1f026da7c90%7D&uk=%7B67a73b4e-cce5-4d4f-a138-ce82b7e2bd4c%7D&locale=zh-CN&moexts=cemigration,cpmanager,cehomepage&age=1&flash=&now=1379162833898", "Referer=", ENDITEM,
"Url=http://www.g-fox.cn/live.gif?channelid=stub.firefox.com.cn&fxversion=23.0.1&ceversion=2013.9&ver=4&actcode4=%7B89d9e259-23d4-45e6-b412-b1f026da7c90%7D&uk=%7B67a73b4e-cce5-4d4f-a138-ce82b7e2bd4c%7D&dk=mrZvkIdw/rXNvOv/o0g+69B0yP1zpd5Mu043GDuNd5KKwicvBcH4Hw==&prevsessionlen=47&locale=zh-CN&moexts=cemigration,cpmanager,cehomepage", "Referer=", ENDITEM,
LAST);
web_reg_save_param("id",
"LB=formhash",
"RB= />",
"SaveOffset=9",
"SaveLen=8",
LAST);
web_url("立即注册",
"URL=http://192.168.254.159/upload/member.php?mod=register",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.254.159/upload/forum.php",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
lr_think_time(8);
/*web_url("forum.php_2",
"URL=http://192.168.254.159/upload/forum.php?mod=ajax&inajax=yes&infloat=register&handlekey=register&ajaxmenu=1&action=checkusername&username=zzz001",
"TargetFrame=",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://192.168.254.159/upload/member.php?mod=register",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
lr_think_time(13);
web_url("forum.php_3",
"URL=http://192.168.254.159/upload/forum.php?mod=ajax&inajax=yes&infloat=register&handlekey=register&ajaxmenu=1&action=checkemail&email=zzz001@qq.com",
"TargetFrame=",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://192.168.254.159/upload/member.php?mod=register",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);
web_url("forum.php_4",
"URL=http://192.168.254.159/upload/forum.php?mod=ajax&inajax=yes&infloat=register&handlekey=register&ajaxmenu=1&action=checkemail&email=zzz001@qq.com",
"TargetFrame=",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://192.168.254.159/upload/member.php?mod=register",
"Snapshot=t5.inf",
"Mode=HTML",
LAST);
*/
web_submit_data("member.php",
"Action=http://192.168.254.159/upload/member.php?mod=register",
"Method=POST",
"EncType=multipart/form-data",
"TargetFrame=",
"RecContentType=text/xml",
"Referer=http://192.168.254.159/upload/member.php?mod=register",
"Snapshot=t6.inf",
"Mode=HTML",
ITEMDATA,
"Name=regsubmit", "Value=yes", ENDITEM,
"Name=formhash", "Value=2bebb8b0", ENDITEM,
"Name=referer", "Value=http://192.168.254.159/upload/forum.php", ENDITEM,
"Name=activationauth", "Value=", ENDITEM,
"Name=mx341v", "Value=zzz001", ENDITEM,
"Name=f5gvwc", "Value=123456", ENDITEM,
"Name=xQEq0U", "Value=123456", ENDITEM,
"Name=5CD5bW", "Value=zzz001@qq.com", ENDITEM,
LAST);
web_url("forum.php_5",
"URL=http://192.168.254.159/upload/forum.php",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.254.159/upload/member.php?mod=register",
"Snapshot=t7.inf",
"Mode=HTML",
EXTRARES,
"Url=static/js/common_extra.js?Jov", ENDITEM,
"Url=http://cp.discuz.qq.com/tips/get?rand=1420&s_id=&product_version=X2.5&product_release=20120427&fix_bug=25000000&is_founder=&s_url=http%3A%2F%2F192.168.254.159%2Fupload%2F&last_send_time=&ts=1379191665&sig=&admin_id=0&group_id=10&open_id=&uid=34&callback=discuzTipsCallback", ENDITEM,
LAST);
web_add_cookie("tjpctrl=1379164664602; DOMAIN=192.168.254.159");
web_url("退出",
"URL=http://192.168.254.159/upload/member.php?mod=logging&action=logout&formhash=6a988310",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.254.159/upload/forum.php",
"Snapshot=t8.inf",
"Mode=HTML",
LAST);
web_url("论坛BBS",
"URL=http://192.168.254.159/upload/forum.php",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.254.159/upload/member.php?mod=logging&action=logout&formhash=6a988310",
"Snapshot=t9.inf",
"Mode=HTML",
LAST);
return 0;
}
复制代码
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2