loadrunner8.1录制后回放脚本报错~求助
录制简单脚本:/* -------------------------------------------------------------------------------
Script Title :
Script Description :
Recorder Version : 1196
------------------------------------------------------------------------------- */
vuser_init()
{
web_add_cookie("PREF=ID=48b1b5f6e076122d:U=68a7509edf925e29:NW=1:TM=1254115758:LM=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:
Warning: Extension LrXml.dll is not loaded.
Error: Exception was raised when calling per-process-init function in extension two_way_comm.dll: System Exceptions: EXCEPTION_FLT_INVALID_OPERATION
Error: Thread Context: Call to service of the driver failed, reason - thread context wasn't initialized on this thread.
Warning: Extension LrXml.dll is not loaded.
哪位高人知道怎么解决啊?谢谢 看看你的LR的bin目录下是否有LrXml.dll文件,注册一下。
回复 2# 的帖子
注册之后还是报错如下:---------------------------
RegSvr32: regsvr32.exe - 应用程序错误
---------------------------
应用程序发生异常 unknown software exception (0xc0000090),位置为 0x3a108136。
要终止程序,请单击“确定”。
要调试程序,请单击“取消”。
---------------------------
确定 取消
---------------------------
回复 3# 的帖子
看来只有使杀招了,重装系统,搞定~
页:
[1]