51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

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

[求助] 新人求助!关于LR录制的问题

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2013-9-14 20:52:13 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
各位前辈们,我在用LR对DZ论坛进行录注册录制时,一直出错,也建了关联。还是有错,请大侠们指点
  1. Action()
  2. {

  3.        
  4.         web_url("forum.php",
  5.                 "URL=http://192.168.254.159/upload/forum.php",
  6.                 "TargetFrame=",
  7.                 "Resource=0",
  8.                 "RecContentType=text/html",
  9.                 "Referer=",
  10.                 "Snapshot=t1.inf",
  11.                 "Mode=HTML",
  12.                 EXTRARES,
  13.                 "Url=http://i.firefoxchina.cn/newtab/master/quickdialdata.json", "Referer=", ENDITEM,
  14.                 "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,
  15.                 "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,
  16.                 LAST);

  17.         web_reg_save_param("id",
  18.                 "LB=formhash",
  19.                 "RB=  />",
  20.                 "SaveOffset=9",
  21.                 "SaveLen=8",
  22.                 LAST);

  23.         web_url("立即注册",
  24.                 "URL=http://192.168.254.159/upload/member.php?mod=register",
  25.                 "TargetFrame=",
  26.                 "Resource=0",
  27.                 "RecContentType=text/html",
  28.                 "Referer=http://192.168.254.159/upload/forum.php",
  29.                 "Snapshot=t2.inf",
  30.                 "Mode=HTML",
  31.                 LAST);

  32.         lr_think_time(8);

  33.         /*web_url("forum.php_2",
  34.                 "URL=http://192.168.254.159/upload/forum.php?mod=ajax&inajax=yes&infloat=register&handlekey=register&ajaxmenu=1&action=checkusername&username=zzz001",
  35.                 "TargetFrame=",
  36.                 "Resource=0",
  37.                 "RecContentType=text/xml",
  38.                 "Referer=http://192.168.254.159/upload/member.php?mod=register",
  39.                 "Snapshot=t3.inf",
  40.                 "Mode=HTML",
  41.                 LAST);

  42.         lr_think_time(13);

  43.         web_url("forum.php_3",
  44.                 "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",
  45.                 "TargetFrame=",
  46.                 "Resource=0",
  47.                 "RecContentType=text/xml",
  48.                 "Referer=http://192.168.254.159/upload/member.php?mod=register",
  49.                 "Snapshot=t4.inf",
  50.                 "Mode=HTML",
  51.                 LAST);


  52.         web_url("forum.php_4",
  53.                 "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",
  54.                 "TargetFrame=",
  55.                 "Resource=0",
  56.                 "RecContentType=text/xml",
  57.                 "Referer=http://192.168.254.159/upload/member.php?mod=register",
  58.                 "Snapshot=t5.inf",
  59.                 "Mode=HTML",
  60.                 LAST);
  61. */
  62.         web_submit_data("member.php",
  63.                 "Action=http://192.168.254.159/upload/member.php?mod=register",
  64.                 "Method=POST",
  65.                 "EncType=multipart/form-data",
  66.                 "TargetFrame=",
  67.                 "RecContentType=text/xml",
  68.                 "Referer=http://192.168.254.159/upload/member.php?mod=register",
  69.                 "Snapshot=t6.inf",
  70.                 "Mode=HTML",
  71.                 ITEMDATA,
  72.                 "Name=regsubmit", "Value=yes", ENDITEM,
  73.                 "Name=formhash", "Value=2bebb8b0", ENDITEM,
  74.                 "Name=referer", "Value=http://192.168.254.159/upload/forum.php", ENDITEM,
  75.                 "Name=activationauth", "Value=", ENDITEM,
  76.                 "Name=mx341v", "Value=zzz001", ENDITEM,
  77.                 "Name=f5gvwc", "Value=123456", ENDITEM,
  78.                 "Name=xQEq0U", "Value=123456", ENDITEM,
  79.                 "Name=5CD5bW", "Value=zzz001@qq.com", ENDITEM,
  80.                 LAST);

  81.         web_url("forum.php_5",
  82.                 "URL=http://192.168.254.159/upload/forum.php",
  83.                 "TargetFrame=",
  84.                 "Resource=0",
  85.                 "RecContentType=text/html",
  86.                 "Referer=http://192.168.254.159/upload/member.php?mod=register",
  87.                 "Snapshot=t7.inf",
  88.                 "Mode=HTML",
  89.                 EXTRARES,
  90.                 "Url=static/js/common_extra.js?Jov", ENDITEM,
  91.                 "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,
  92.                 LAST);

  93.         web_add_cookie("tjpctrl=1379164664602; DOMAIN=192.168.254.159");

  94.         web_url("退出",
  95.                 "URL=http://192.168.254.159/upload/member.php?mod=logging&action=logout&formhash=6a988310",
  96.                 "TargetFrame=",
  97.                 "Resource=0",
  98.                 "RecContentType=text/html",
  99.                 "Referer=http://192.168.254.159/upload/forum.php",
  100.                 "Snapshot=t8.inf",
  101.                 "Mode=HTML",
  102.                 LAST);

  103.         web_url("论坛BBS",
  104.                 "URL=http://192.168.254.159/upload/forum.php",
  105.                 "TargetFrame=",
  106.                 "Resource=0",
  107.                 "RecContentType=text/html",
  108.                 "Referer=http://192.168.254.159/upload/member.php?mod=logging&action=logout&formhash=6a988310",
  109.                 "Snapshot=t9.inf",
  110.                 "Mode=HTML",
  111.                 LAST);

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

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-8 08:49 , Processed in 0.068421 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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