我用loadRunner的录制脚本回放不成功 自己找不出来问题了
我是按照下面的关联联系做的 可是录制的时候连接的“新闻”两个字总是繁体的 回放也不成功然后后面是个问好没有用" 结束 我手动修改后也不可以回放提示下面的错误有会的朋友帮我看看 谢谢了#include "web_api.h"
Action()
{
web_add_cookie("BAIDUID=D26206E0E4ABE26789D69A37FE70D915:FG=1; DOMAIN=www.baidu.com");
web_add_cookie("BDLFONT=0; DOMAIN=www.baidu.com");
web_reg_find("Text=百度一下,你就知道 ",
LAST);
web_url("www.baidu.cn",
"URL=http://www.baidu.cn/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t12.inf",
"Mode=HTML",
EXTRARES,
"Url=http://www.baidu.com/js/bdsug.js?v=1.1.0.2", "Referer=http://www.baidu.com/", ENDITEM,
LAST);
web_add_cookie("BAIDUID=D26206E0E4ABE26789D69A37FE70D915:FG=1; DOMAIN=news.baidu.com");
web_add_cookie("BDLFONT=0; DOMAIN=news.baidu.com");
web_add_cookie("BDREFER=%7Burl%3A%22http%3A//news.baidu.com/ns%3Fword%3Dhttp%26tn%3Dnews%26from%3Dnews%26ie%3Dgb2312%26bs%3D%25C1%25F7%25B8%25D0+%25BB%25BC%25D5%25DF+%25B5%25C0%25C7%25B8%26sr%3D0%26cl%3D2%26rn%3D20%26ct%3D1%26prevct%3Dno%22%2Cword%3A%22http%22%7D; DOMAIN=news.baidu.com");
lr_think_time( 2 );
web_reg_find("Text=百度新闻搜索——全球最大的中文新闻平台 ",
LAST);
web_add_cookie("BDREFER=%7Burl%3A%22http%3A//news.baidu.com/%22%2Cword%3A%22%22%7D; DOMAIN=news.baidu.com");
web_add_cookie("BDLFONT=0; DOMAIN=eiv.baidu.com");
web_add_cookie("BDLFONT=0; DOMAIN=n.baidu.com");
web_url("新闻",
"URL=http://news.baidu.com/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.baidu.com/",
"Snapshot=t13.inf",
"Mode=HTML",
EXTRARES,
"Url=/img/line.gif", ENDITEM,
"Url=/img/icon.gif?v=1.1", ENDITEM,
"Url=http://eiv.baidu.com/other/ff.js", ENDITEM,
"Url=http://eiv.baidu.com/hyimg/20090513/95258182348.swf", ENDITEM,
"Url=http://eiv.baidu.com/mc_files/20090429/20090429144350_68004200T1T396856.swf", ENDITEM,
"Url=http://eiv.baidu.com/mc_files/20090430/20090430140407_17682400T1T396856.swf", ENDITEM,
"Url=http://eiv.baidu.com/mc_files/20090513/20090513183419_05155900T1T396485.swf", ENDITEM,
"Url=http://js.miaozhen.com/c.swf", "Referer=http://eiv.baidu.com/hyimg/20090513/95258182348.swf", ENDITEM,
"Url=http://n.baidu.com/n.gif?m=11&ct=1&a=30&u=http%3A//news.baidu.com/ns%3Fcl%3D2%26ct%3D9%26rn%3D20%26sp%3Dhotquery%26word%3D%25c1%25f7%25b8%25d0%2520%25bb%25bc%25d5%25df%2520%25b5%25c0%25c7%25b8&t=%u6D41%u611F%u60A3%u8005%u9053%u6B49&ra=0.20520781227530826", ENDITEM,
LAST);
web_url("crossdomain.xml",
"URL=http://g.miaozhen.com/crossdomain.xml",
"TargetFrame=",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t14.inf",
"Mode=HTML",
LAST);
web_url("x.gif",
"URL=http://g.miaozhen.com/x.gif?1242634885781^b=007_7^c=^d=^e=WXP_^f=10^h=1440*900^j=zh^p=oy0^k=192^a=YcR+++-+XR1",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://js.miaozhen.com/c.swf",
"Mode=HTML",
LAST);
web_add_cookie("BDLFONT=0; DOMAIN=c.baidu.com");
web_url("c.gif",
"URL=http://c.baidu.com/c.gif?t=5&p=1",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://news.baidu.com/",
"Mode=HTML",
LAST);
lr_think_time( 1 );
web_url("c.gif_2",
"URL=http://c.baidu.com/c.gif?t=5&p=2&q=%u6D41%u611F%u60A3%u8005%u9053%u6B49&ra=0.06424440284474275",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://news.baidu.com/",
"Mode=HTML",
LAST);
web_reg_find("Text=百度新闻搜索_流感 患者 道歉 ",
LAST);
web_url("ns",
"URL=http://news.baidu.com/ns?cl=2&ct=9&rn=20&sp=hotquery&word=%c1%f7%b8%d0%20%bb%bc%d5%df%20%b5%c0%c7%b8",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://news.baidu.com/",
"Snapshot=t15.inf",
"Mode=HTML",
EXTRARES,
"Url=http://eiv.baidu.com/mc_files/20090512/20090512103455_71745500T1T396485.swf", "Referer=http://news.baidu.com/ns?cl=2&ct=9&rn=20&sp=hotquery&word=%c1%f7%b8%d0%20%bb%bc%d5%df%20%b5%c0%c7%b8", ENDITEM,
"Url=http://eiv.baidu.com/maimg/20081230/1385182947.swf", "Referer=http://news.baidu.com/ns?cl=2&ct=9&rn=20&sp=hotquery&word=%c1%f7%b8%d0%20%bb%bc%d5%df%20%b5%c0%c7%b8", ENDITEM,
LAST);
web_add_cookie("BDREFER=%7Burl%3A%22http%3A//news.baidu.com/ns%3Fcl%3D2%26ct%3D9%26rn%3D20%26sp%3Dhotquery%26word%3D%25c1%25f7%25b8%25d0%2520%25bb%25bc%25d5%25df%2520%25b5%25c0%25c7%25b8%22%2Cword%3A%22%25C1%25F7%25B8%25D0+%25BB%25BC%25D5%25DF+%25B5%25C0%25C7%25B8%22%7D; DOMAIN=news.baidu.com");
lr_think_time( 6 );
web_reg_find("Text=百度新闻搜索_http ",
LAST);
web_submit_data("ns_2",
"Action=http://news.baidu.com/ns",
"Method=GET",
"EncType=",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://news.baidu.com/ns?cl=2&ct=9&rn=20&sp=hotquery&word=%c1%f7%b8%d0%20%bb%bc%d5%df%20%b5%c0%c7%b8",
"Snapshot=t16.inf",
"Mode=HTML",
ITEMDATA,
"Name=word", "Value=http", ENDITEM,
"Name=tn", "Value=news", ENDITEM,
"Name=from", "Value=news", ENDITEM,
"Name=ie", "Value=gb2312", ENDITEM,
"Name=bs", "Value=流感 患者 道歉", ENDITEM,
"Name=sr", "Value=0", ENDITEM,
"Name=cl", "Value=2", ENDITEM,
"Name=rn", "Value=20", ENDITEM,
"Name=ct", "Value=1", ENDITEM,
"Name=prevct", "Value=no", ENDITEM,
LAST);
return 0; 不能就这么沉了没人遇见和我一样的问题吗 兄弟问题是出现在 新闻那两个字的连接上 我都调试了录制字体 可是为什么就这两个字是繁体呢还确结束符号 快晕了 可能是他们开发时程度编码时造成的....
回复 5# 的帖子
晕倒无解了
页:
[1]