Discuz论坛,发帖脚本回放不成功,有遇到过的么!
哪位朋友指点一下,不知怎么解决了,也不知道是不是需要关联,求解,谢谢啊! 我把登录和进入模板事务放在vuser_init中,把发帖事务放在action中,按照小强老师的视频来的,却回放不了。 有没有遇到此问题的,谢谢! 这样问问题,都懒得回复你,你的脚本呢,你的出错截图呢。。。 wuxi88 发表于 2016-3-3 09:51这样问问题,都懒得回复你,你的脚本呢,你的出错截图呢。。。
应该就出现在发帖事务中,日志显示正确,就是回放后论坛中没有新增一条帖子,这事action中的脚本,多谢看看:Action()
{
lr_start_transaction("发帖");
web_add_cookie("smile=1D1; DOMAIN=192.168.50.128");
//lr_think_time(16);
web_url("post.php",
"URL=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t7.inf",
"Mode=HTML",
EXTRARES,
"Url=images/common/editor.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/common/bigeditor.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/common/upload.swf?site=http://192.168.50.128/bbs/misc.php%3Ftype=image&type=image", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/common/upload.swf?site=http://192.168.50.128/bbs/misc.php", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/default/notice.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/tongue.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/smile.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/shy.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/titter.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/sad.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/cry.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/biggrin.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/huffy.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/shocked.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/sweat.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/lol.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/mad.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/loveliness.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/funk.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/hug.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/victory.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/handshake.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/curse.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/dizzy.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/kiss.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/sleepy.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/shutup.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/time.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=images/smilies/default/call.gif", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
"Url=pm.php?checknewpm=0.15277351135203188&inajax=1&ajaxtarget=myprompt_check", "Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3", ENDITEM,
LAST);
web_submit_data("post.php_2",
"Action=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&extra=&topicsubmit=yes",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.50.128/bbs/post.php?action=newthread&fid=3&referer=http%3A//192.168.50.128/bbs/forumdisplay.php%3Ffid%3D3",
"Snapshot=t8.inf",
"Mode=HTML",
ITEMDATA,
"Name=formhash", "Value=eac5807e", ENDITEM,
"Name=posttime", "Value=1456904761", ENDITEM,
"Name=wysiwyg", "Value=0", ENDITEM,
"Name=iconid", "Value=", ENDITEM,
"Name=subject", "Value=hello!", ENDITEM,
"Name=checkbox", "Value=0", ENDITEM,
"Name=message", "Value=1111111111!", ENDITEM,
"Name=tags", "Value=", ENDITEM,
"Name=addtags", "Value=+可用标签", ENDITEM,
"Name=attention_add", "Value=1", ENDITEM,
EXTRARES,
"Url=images/default/text_zoom.gif", "Referer=http://192.168.50.128/bbs/viewthread.php?tid=31&extra=", ENDITEM,
"Url=images/default/fastreply.gif", "Referer=http://192.168.50.128/bbs/viewthread.php?tid=31&extra=", ENDITEM,
"Url=images/default/repquote.gif", "Referer=http://192.168.50.128/bbs/viewthread.php?tid=31&extra=", ENDITEM,
"Url=images/default/addbuddy.gif", "Referer=http://192.168.50.128/bbs/viewthread.php?tid=31&extra=", ENDITEM,
"Url=images/default/edit.gif", "Referer=http://192.168.50.128/bbs/viewthread.php?tid=31&extra=", ENDITEM,
"Url=images/default/reply.gif", "Referer=http://192.168.50.128/bbs/viewthread.php?tid=31&extra=", ENDITEM,
"Url=images/default/ajaxaction.gif", "Referer=http://192.168.50.128/bbs/viewthread.php?tid=31&extra=", ENDITEM,
"Url=images/default/text_common.gif", "Referer=http://192.168.50.128/bbs/viewthread.php?tid=31&extra=", ENDITEM,
"Url=images/default/printpost.gif", "Referer=http://192.168.50.128/bbs/viewthread.php?tid=31&extra=", ENDITEM,
"Url=images/default/pmto.gif", "Referer=http://192.168.50.128/bbs/viewthread.php?tid=31&extra=", ENDITEM,
LAST);
lr_end_transaction("发帖",LR_AUTO);
return 0;
} 你看的视频里没有解决方法吗,一般能录制但不能回放,都是因为需要关联。
我看到你的请求里面有posttime这类的动态值参数,应该是需要关联的 prettyfool 发表于 2016-3-3 10:57
你看的视频里没有解决方法吗,一般能录制但不能回放,都是因为需要关联。
我看到你的请求里面有posttime这 ...
对,我觉着这个posttime也需要关联,就是不知该关联成什么,可能我对关联还不是很熟,哈哈,感谢! xunni_ing 发表于 2016-3-3 10:18
应该就出现在发帖事务中,日志显示正确,就是回放后论坛中没有新增一条帖子,这事action中的脚本,多谢看 ...
1.发帖需要登录,你确定登录成功了吗?你有写检查点函数验证登录吗。。。
2.关联自己都不知道怎么添加,还不百度嘛?录制两份同样操作的脚本,比较一下不同的部分,那些不同的部分就是有可能要做关联的地方啊。 xunni_ing 发表于 2016-3-3 10:18
应该就出现在发帖事务中,日志显示正确,就是回放后论坛中没有新增一条帖子,这事action中的脚本,多谢看 ...
1.发帖需要登录,你确定登录成功了吗?你有写检查点函数验证登录吗
2.关联自己都不知道怎么添加,还不百度嘛?录制两份同样操作的脚本,比较一下不同的部分,那些不同的部分就是有可能要做关联的地方啊。 wuxi88 发表于 2016-3-3 13:50
1.发帖需要登录,你确定登录成功了吗?你有写检查点函数验证登录吗
2.关联自己都不知道怎么添加,还不百 ...
验证了,就是最后提交的时候有问题,我再看看关联,多谢提醒,thank you!
页:
[1]