|
录制简单脚本:
/* -------------------------------------------------------------------------------
Script Title :
Script Description :
Recorder Version : 1196
------------------------------------------------------------------------------- */
vuser_init()
{
web_add_cookie("REF=ID=48b1b5f6e076122d:U=68a7509edf925e29:NW=1:TM=1254115758M=1254115777:S=1dHIPNPfmDbtneCK; DOMAIN=www.google.cn");
web_add_cookie("NID=27=oPoIDhIV1_tIXZlnvtcBXrEmXyzJBAmRzaAWBUViz9-E-Ff2LwlyZ_elhD7afnSAFdRPjFPLoG0KAv9z3DxRHRzP1Nzkqku66FvKK_V3JQiBt3WQ6hZa6TqG0vnNshjP; DOMAIN=www.google.cn");
web_url("www.google.com",
"URL=http://www.google.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=http://www.google.cn/images/nav_logo7.png", "Referer=http://www.google.cn/", ENDITEM,
"Url=http://www.google.cn/extern_js/f/CgV6aC1DThICY24rMAo4O0ACLCswDjgILCswETgTLCswFjgQLCswFzgELCswGDgELCswGTgJLCswJTjJiAEsKzAmOAUsKzAnOAIsKzA8OAAs/0we4JEbMHCw.js", "Referer=http://www.google.cn/", ENDITEM,
"Url=http://www.google.cn/intl/zh-CN/images/toolbar_animation_20090618.png", "Referer=http://www.google.cn/", ENDITEM,
LAST);
web_url("csi",
"URL=http://www.google.cn/csi?v=3&s=webhp&action=&tran=undefined&e=17259,21766,22217,22282,22338,22340&ei=iqPeSsnROIGOowTczvHYCA&rt=prt.109,ol.219,xjs.1469",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.google.cn/",
"Mode=HTML",
LAST);
return 0;
}
Action()
{
lr_think_time(4);
web_url("search",
"URL=http://www.google.cn/complete/search?hl=zh-CN&xhr=t&q=t&cp=1",
"Resource=1",
"RecContentType=application/json",
"Referer=http://www.google.cn/",
"Snapshot=t2.inf",
LAST);
web_url("search_2",
"URL=http://www.google.cn/complete/search?hl=zh-CN&xhr=t&q=te&cp=2",
"Resource=1",
"RecContentType=application/json",
"Referer=http://www.google.cn/",
"Snapshot=t3.inf",
LAST);
web_url("search_3",
"URL=http://www.google.cn/complete/search?hl=zh-CN&xhr=t&q=tes&cp=3",
"Resource=1",
"RecContentType=application/json",
"Referer=http://www.google.cn/",
"Snapshot=t4.inf",
LAST);
web_url("search_4",
"URL=http://www.google.cn/complete/search?hl=zh-CN&xhr=t&q=test&cp=4",
"Resource=1",
"RecContentType=application/json",
"Referer=http://www.google.cn/",
"Snapshot=t5.inf",
LAST);
web_url("search_5",
"URL=http://www.google.cn/search?hl=zh-CN&source=hp&q=test&rlz=1W1GPCK_zh-cnCN346&aq=f&oq=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.google.cn/",
"Snapshot=t6.inf",
"Mode=HTML",
LAST);
web_url("gen_204",
"URL=http://www.google.cn/gen_204?mgmhp=shp1&ct=v&cd=false",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.google.cn/search?hl=zh-CN&source=hp&q=test&rlz=1W1GPCK_zh-cnCN346&aq=f&oq=",
"Mode=HTML",
LAST);
web_url("csi_2",
"URL=http://www.google.cn/csi?v=3&s=web&action=&tran=undefined&e=17259,21766,22217,22282,22338,22340&ei=kqPeSuyNONCAkQX3k6EV&rt=prt.94,ol.172,xjs.390",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.google.cn/search?hl=zh-CN&source=hp&q=test&rlz=1W1GPCK_zh-cnCN346&aq=f&oq=",
"Mode=HTML",
LAST);
return 0;
}
replay :回放脚本的时候报错信息如下:---------------------------
mmdrv.exe - 应用程序错误
---------------------------
应用程序发生异常 unknown software exception (0xc0000090),位置为 0x3a108136。
要终止程序,请单击“确定”。
要调试程序,请单击“取消”。
---------------------------
确定 取消
---------------------------
日志中信息如下:
Warning: LoadLibrary failed for extension LrXml.dll. System error: [param not passed in call] [MsgId: MWAR-10500]
Warning: Extension LrXml.dll is not loaded. [MsgId: MWAR-10593]
Error: Exception was raised when calling per-process-init function in extension two_way_comm.dll: System Exceptions: EXCEPTION_FLT_INVALID_OPERATION [MsgId: MERR-10492]
Error: Thread Context: Call to service of the driver failed, reason - thread context wasn't initialized on this thread. [MsgId: MERR-10176]
Warning: Extension LrXml.dll is not loaded. [MsgId: MWAR-10484]
哪位高人知道怎么解决啊?谢谢 |
|