LR按运行时,回放日志显示线程上下文调用驱动程序的服务失败
只录制了一个登录的脚本,脚本如下:vuser_init:
vuser_init()
{
web_add_cookie("squirrelmail_language=zh_CN; DOMAIN=mail.41.com");
web_url("mail.41.com",
"URL=http://mail.41.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=/webmail/plugins/html_mail/fckeditor/editor/js/fckeditorcode_ie.js", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/plugins/html_mail/fckeditor/fckconfig.js", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/plugins/html_mail/fckeditor/editor/skins/silver/fck_editor.css", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/plugins/html_mail/fckeditor/editor/css/fck_editorarea.css", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/plugins/html_mail/fckeditor/editor/skins/silver/fck_strip.gif", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/plugins/html_mail/fckeditor/editor/skins/silver/images/toolbar.buttonarrow.gif", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/plugins/html_mail/fckeditor/editor/skins/silver/images/toolbar.buttonbg.gif", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/plugins/html_mail/fckeditor/editor/skins/silver/images/toolbar.start.gif", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/js/My97DatePicker/My97DatePicker/WdatePicker.js", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/js/My97DatePicker/My97DatePicker/skin/WdatePicker.css", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/js/My97DatePicker/My97DatePicker/skin/default/datepicker.css", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/js/My97DatePicker/My97DatePicker/skin/default/img.gif", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/skin4/images/bg.jpg", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/skin4/images/wrap_bg.jpg", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/skin4/images/line.gif", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
LAST);
web_url("fckeditor.html",
"URL=http://mail.41.com/webmail/plugins/html_mail/fckeditor/editor/fckeditor.html?InstanceName=body&Toolbar=Normal",
"Resource=0",
"RecContentType=text/html",
"Referer=http://mail.41.com/webmail/src/login.php",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
web_url("fckeditor.html_2",
"URL=http://mail.41.com/webmail/plugins/html_mail/fckeditor/editor/fckeditor.html?InstanceName=body&Toolbar=Default",
"Resource=0",
"RecContentType=text/html",
"Referer=http://mail.41.com/webmail/src/login.php",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
web_url("fckstyles.xml",
"URL=http://mail.41.com/webmail/plugins/html_mail/fckeditor/fckstyles.xml",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://mail.41.com/webmail/src/login.php",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);
web_url("My97DatePicker.htm",
"URL=http://mail.41.com/webmail/js/My97DatePicker/My97DatePicker/My97DatePicker.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=http://mail.41.com/webmail/src/login.php",
"Snapshot=t5.inf",
"Mode=HTML",
LAST);
lr_start_transaction("login");
web_submit_data("redirect.php",
"Action=http://mail.41.com/webmail/src/redirect.php",
"Method=POST",
"RecContentType=text/html",
"Referer=http://mail.41.com/webmail/src/login.php",
"Snapshot=t6.inf",
"Mode=HTML",
ITEMDATA,
"Name=username", "Value=11", ENDITEM,
"Name=secretkey", "Value=abc+123", ENDITEM,
"Name=js_autodetect_results", "Value=0", ENDITEM,
"Name=just_logged_in", "Value=1", ENDITEM,
"Name=domain", "Value=41.com", ENDITEM,
EXTRARES,
"Url=/images/blue_bg_header.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/ico_cn.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/ico_hk.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/ico_en.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/blue_bg_leftbg.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/blue_bg_lefttop.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/blue_ico_receive.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/blue_ico_write.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/blue_line_side.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/blue_bg_main.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/blue_ico_language.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/blue_bg_mainleft.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=../include/images/treeview-famfamfam-line.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=../include/images/inbox_folder.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=../include/images/draft_folder.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=../include/images/sent_folder.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=../include/images/trash_folder.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=../include/images/spam_folder.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/news_header.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=/images/news_footer.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../plugins/html_mail/fckeditor/editor/lang/zh-cn.js", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../include/uploadify/cancel.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../js/My97DatePicker/My97DatePicker/lang/zh-cn.js", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../include/uploadify/att_cn.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l0.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l1.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l2.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l3.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l4.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l5.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l6.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l7.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l8.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l9.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l10.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l11.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l12.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l13.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l14.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l15.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../include/uploadify/uploadify.swf", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l16.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../include/style/jquery.autocomplete.css", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../include/jquery.autocomplete.js", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
LAST);
web_custom_request("get_init_addr.php",
"URL=http://mail.41.com/webmail/src/get_init_addr.php",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://mail.41.com/webmail/src/webmail.php",
"Snapshot=t7.inf",
"Mode=HTML",
"EncType=",
LAST);
lr_end_transaction("login",LR_AUTO);
return 0;
}
按F5运行时,回放日志就会报如下错误:
Fatal Error -32989: LoadLibrary 失败,返回代码=126
Fatal Error -26000: xfbLrwiWebInfraGlobalInitOK failed
警告: 扩展 lrwreplaymain.dll 报告在调用函数 ExtPerProcessInitialize 时出现错误 -1
错误: 线程上下文: 调用驱动程序的服务失败。原因 – 线程上下文未在此线程上初始化。
请同行们帮帮忙哦,谢谢
补充上面action脚本
Action(){
return 0;
}
补充上面vuser_end脚本
vuser_end(){
lr_start_transaction("logout");
lr_think_time(10);
web_url("ico_notice.gif",
"URL=http://mail.41.com/images/ico_notice.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://mail.41.com/webmail/src/webmail.php",
"Snapshot=t8.inf",
LAST);
web_url("blue_pop_header.gif",
"URL=http://mail.41.com/images/blue_pop_header.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://mail.41.com/webmail/src/webmail.php",
"Snapshot=t9.inf",
LAST);
web_url("blue_bg_button.gif",
"URL=http://mail.41.com/images/blue_bg_button.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://mail.41.com/webmail/src/webmail.php",
"Snapshot=t10.inf",
LAST);
web_url("blue_ico_close.gif",
"URL=http://mail.41.com/images/blue_ico_close.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://mail.41.com/webmail/src/webmail.php",
"Snapshot=t11.inf",
LAST);
web_add_cookie("SQMSESSID=8e2327cda7944bda77fa5deceba0101d; DOMAIN=mail.41.com");
web_url("signout.php",
"URL=http://mail.41.com/webmail/src/signout.php",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t12.inf",
"Mode=HTML",
LAST);
web_url("fckeditor.html_3",
"URL=http://mail.41.com/webmail/plugins/html_mail/fckeditor/editor/fckeditor.html?InstanceName=body&Toolbar=Normal",
"Resource=0",
"RecContentType=text/html",
"Referer=http://mail.41.com/webmail/src/login.php?lan=cn",
"Snapshot=t13.inf",
"Mode=HTML",
LAST);
web_url("fckeditor.html_4",
"URL=http://mail.41.com/webmail/plugins/html_mail/fckeditor/editor/fckeditor.html?InstanceName=body&Toolbar=Default",
"Resource=0",
"RecContentType=text/html",
"Referer=http://mail.41.com/webmail/src/login.php?lan=cn",
"Snapshot=t14.inf",
"Mode=HTML",
LAST);
web_url("fckstyles.xml_2",
"URL=http://mail.41.com/webmail/plugins/html_mail/fckeditor/fckstyles.xml",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://mail.41.com/webmail/src/login.php?lan=cn",
"Snapshot=t15.inf",
"Mode=HTML",
LAST);
web_url("My97DatePicker.htm_2",
"URL=http://mail.41.com/webmail/js/My97DatePicker/My97DatePicker/My97DatePicker.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=http://mail.41.com/webmail/src/login.php?lan=cn",
"Snapshot=t16.inf",
"Mode=HTML",
LAST);
lr_end_transaction("logout",LR_AUTO);
return 0;
} 基本上是系统问题
只能重装系统?
以前一直用的好好的,昨天用的时候,就成这样了,哎。。不知道怎么回事,现在每次运行场景时,都要用同事的负载生成器,要不然,用我自已的本子跑全部都会失败继续求助
求助,求助:)操作系统是SP3的
操作系统是SP3loadrunner重装过还是这样
重装前,只要跟lr有关系的,我全部都删除干净了,可还是不行,没有同行遇到过类似问题吗?顶下
自已顶下没有人遇到过类似问题吗?
顶下一有时间就来顶下
一有时间就来顶下没有同行遇到类似问题吗?
帮忙,帮忙,谢谢没有同行遇到类似问题吗?
帮忙,帮忙,谢谢 我同事的电脑也遇到了这个问题,我的机器是好使的,都是XP + SP3,但是我电脑装的纯净版,他电脑装的是JUJUMAO的纯净版不知如何解决,莫非只能重装系统
ftp的脚本可以回放,单HTTP的基本回放不了
求解中...
[ 本帖最后由 v522zy 于 2010-5-4 11:50 编辑 ] 求解决,本人也遇到此情况 错误:line 26 contains 2 columns instead of 1
错误: 无法打开表“D:\AccessTest\报文.mdb”。错误代码为“-4”。
警告: 扩展 parameng.dll 报告在调用函数 ExtPerProcessInitialize 时出现错误 -4
错误: 线程上下文: 调用驱动程序的服务失败。原因 – 线程上下文未在此线程上初始化。 我来晚了,我也遇到了,我系统是win 7,LR版本是8.0,本人粗步估计是系统的问题,有了解的快回复一下 Fatal Error -26000: LoadLibrary("LrwNetSocket.dll") failed, Windows error code=127
Warning: Extension lrwreplaymain.dll reports error -1 on call to function ExtPerProcessInitialize
Error: Thread Context: Call to service of the driver failed, reason - thread context wasn't initialized on this thread.
我的是XP的也遇到了,求助??? 录个百度看回放报不报这个错 朋友找到解决方法了没我也遇到 了
页:
[1]
2