51Testing软件测试论坛
标题:
新手求助
[打印本页]
作者:
天山之舞
时间:
2011-7-12 16:40
标题:
新手求助
Action()
{
web_url("numguess.jsp",
"URL=http://172.18.40.188:8888/examples/jsp/num/numguess.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
web_submit_data("check_outchain.php",
"Action=http://qurl.f.360.cn/check_outchain.php",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=urls", "Value=650f8a2f4ac8219a242a4f5c3aa2ee21|d18b253e2174d993728a0117c11bb298|1d3106a084e2bd673cead9369ea888fb|9dcb88e0137649590b755372b040afad|56ed60ef6b093a07cf684ce9e92d721d|127b2babfeba7babcaca870443967fd8|d18b253e2174d993728a0117c11bb298\tZGplYwR4YwDjYwR4BQ8/GQ8=\n", ENDITEM,
"Name=src", "Value=addrbar", ENDITEM,
"Name=product", "Value=wd", ENDITEM,
"Name=combo", "Value=urlproc", ENDITEM,
"Name=v", "Value=1", ENDITEM,
"Name=vk", "Value=139fe704", ENDITEM,
"Name=mid", "Value=033208b7715524d25a021f84c2bdebb5", ENDITEM,
EXTRARES,
"Url=http://172.18.40.188:8888/favicon.ico", "Referer=", ENDITEM,
LAST);
web_submit_data("check_outchain.php_2",
"Action=http://qurl.f.360.cn/check_outchain.php",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=urls", "Value=85f32ad00ac5107e979a1ace9a96595e|d18b253e2174d993728a0117c11bb298|1d3106a084e2bd673cead9369ea888fb|9dcb88e0137649590b755372b040afad|56ed60ef6b093a07cf684ce9e92d721d|127b2babfeba7babcaca870443967fd8|d18b253e2174d993728a0117c11bb298|e03491d078a98a7cea700aea21479b57\tZGplYwR4YwDjYwR4BQ8/GQ8=\n", ENDITEM,
"Name=src", "Value=addrbar", ENDITEM,
"Name=product", "Value=wd", ENDITEM,
"Name=combo", "Value=urlproc", ENDITEM,
"Name=v", "Value=1", ENDITEM,
"Name=vk", "Value=d530a3ac", ENDITEM,
"Name=mid", "Value=033208b7715524d25a021f84c2bdebb5", ENDITEM,
LAST);
web_url("numguess.jsp_2",
"URL=http://172.18.40.188:8888/examples/jsp/num/numguess.jsp?guess=2",
"Resource=0",
"RecContentType=text/html",
"Referer=http://172.18.40.188:8888/examples/jsp/num/numguess.jsp",
"Snapshot=t5.inf",
"Mode=HTML",
LAST);
return 0;
}
以上是我录制的
书本上是这样的
#include "web_api.h"
Action()
{
web_url("numguess.jsp","URL=http://172.18.40.188:8888/examples/jsp/num/numguess.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_submit_form("numguess.jsp_2",
"Snapshot=t2.inf",
ITEMDATA,
"NAME=guess","value=2",ENDITEM,
LAST);
return 0;
}
为何我录制的不同,而且输入值为2,在我录制的代码中好像没有体现,在我录制的代码中,输入2的那个值找不到,我需要把他做参数 不知道谁明白我说的没
作者:
天山之舞
时间:
2011-7-12 16:42
我是按照书上的步骤来的呀,录制的为何不一样,而且找不到输入的数字“2”
作者:
wsbuaa
时间:
2011-7-12 16:46
http://qurl.f.360.cn/check_outchain.php
你开了360安全卫士吧,这个一看就是……
把跟360相关的几段代码都屏蔽了
至于你录的是神马东西我就不知道了
作者:
天山之舞
时间:
2011-7-12 16:52
回复
3#
wsbuaa
您好, 我还是不大明白?你是说跟360有关?关掉360就可以吗? 我录制都是按照步骤录制的,不知带为何这样了
作者:
天山之舞
时间:
2011-7-12 16:56
回复
3#
wsbuaa
谢谢,还真是和360有关,非常感谢,关掉360录制就可以
作者:
wsbuaa
时间:
2011-7-12 16:56
关了360应该可以,或者吧你录制的脚本中带有
http://qurl.f.360.cn/check_outchain.php
的那两段web_submit_data都给删掉,就行了,放心不影响脚本的正常运行
作者:
天山之舞
时间:
2011-7-12 17:06
回复
3#
wsbuaa
谢谢,还真是和360有关,非常感谢,关掉360录制就可以
作者:
天山之舞
时间:
2011-7-12 17:07
回复
3#
wsbuaa
谢谢,还真是和360有关,非常感谢,关掉360录制就可以
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2