51Testing软件测试论坛
标题:
LR按运行时,回放日志显示线程上下文调用驱动程序的服务失败
[打印本页]
作者:
liujh1211
时间:
2010-3-31 17:35
标题:
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 [MsgId: MERR-32989]
Fatal Error -26000: xfbLrwiWebInfraGlobalInitOK failed [MsgId: MERR-26000]
警告: 扩展 lrwreplaymain.dll 报告在调用函数 ExtPerProcessInitialize 时出现错误 -1
错误: 线程上下文: 调用驱动程序的服务失败。原因 – 线程上下文未在此线程上初始化。
请同行们帮帮忙哦,谢谢
作者:
liujh1211
时间:
2010-3-31 17:37
标题:
补充上面action脚本
Action()
{
return 0;
}
作者:
liujh1211
时间:
2010-3-31 17:38
标题:
补充上面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;
}
作者:
云层
时间:
2010-3-31 17:42
基本上是系统问题
作者:
liujh1211
时间:
2010-4-1 08:27
标题:
只能重装系统?
以前一直用的好好的,昨天用的时候,就成这样了,哎。。不知道怎么回事,现在每次运行场景时,都要用同事的负载生成器,要不然,用我自已的本子跑全部都会失败
作者:
liujh1211
时间:
2010-4-1 08:50
标题:
继续求助
求助,求助
作者:
liujh1211
时间:
2010-4-1 08:52
标题:
操作系统是SP3的
操作系统是SP3
作者:
liujh1211
时间:
2010-4-1 08:54
标题:
loadrunner重装过还是这样
重装前,只要跟lr有关系的,我全部都删除干净了,可还是不行,没有同行遇到过类似问题吗?
作者:
liujh1211
时间:
2010-4-1 11:26
标题:
顶下
自已顶下
作者:
liujh1211
时间:
2010-4-1 14:33
标题:
没有人遇到过类似问题吗?
顶下
作者:
liujh1211
时间:
2010-4-1 16:36
标题:
一有时间就来顶下
一有时间就来顶下
作者:
liujh1211
时间:
2010-4-1 18:20
标题:
没有同行遇到类似问题吗?
帮忙,帮忙,谢谢
作者:
liujh1211
时间:
2010-4-7 10:28
标题:
没有同行遇到类似问题吗?
帮忙,帮忙,谢谢
作者:
v522zy
时间:
2010-5-4 11:43
我同事的电脑也遇到了这个问题,我的机器是好使的,都是XP + SP3,但是我电脑装的纯净版,他电脑装的是JUJUMAO的纯净版
不知如何解决,莫非只能重装系统
ftp的脚本可以回放,单HTTP的基本回放不了
求解中...
[
本帖最后由 v522zy 于 2010-5-4 11:50 编辑
]
作者:
MYMREMIND
时间:
2010-9-20 14:39
求解决,本人也遇到此情况
作者:
MYMREMIND
时间:
2010-9-20 14:47
错误: line 26 contains 2 columns instead of 1 [MsgId: MERR-13874]
错误: 无法打开表“D:\AccessTest\报文.mdb”。错误代码为“-4”。 [MsgId: MERR-13880]
警告: 扩展 parameng.dll 报告在调用函数 ExtPerProcessInitialize 时出现错误 -4 [MsgId: MWAR-10485]
错误: 线程上下文: 调用驱动程序的服务失败。原因 – 线程上下文未在此线程上初始化。 [MsgId: MERR-10176]
作者:
盘中餐
时间:
2010-11-26 16:11
我来晚了,我也遇到了,我系统是win 7,LR版本是8.0,本人粗步估计是系统的问题,有了解的快回复一下
作者:
btpx003
时间:
2011-1-13 14:09
Fatal Error -26000: LoadLibrary("LrwNetSocket.dll") failed, Windows error code=127 [MsgId: MERR-26000]
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的也遇到了,求助???
作者:
婴儿
时间:
2011-1-13 16:48
录个百度看回放报不报这个错
作者:
随风而动
时间:
2011-4-12 18:59
朋友 找到解决方法了没 我也遇到 了
作者:
ufo0232215
时间:
2011-4-22 23:32
我的电脑也遇到这个问题了,安装8.0报这个问题,卸载后安装9.5还是报这个错。
期待解决方案!
作者:
Nokia0906
时间:
2011-6-9 11:04
期待中,我也遇到这样的问题了。百度谷歌中。。。
作者:
06ykm
时间:
2011-6-28 09:19
回复
1#
liujh1211
楼主解决了没?
作者:
hbali
时间:
2011-11-27 16:46
解决啦嘛?我也遇到和你一样的问题。
Fatal Error -32989: LoadLibrary failed, rc=126 [MsgId: MERR-32989]
Fatal Error -26000: xfbLrwiWebInfraGlobalInitOK failed [MsgId: MERR-26000]
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.
作者:
love682
时间:
2012-3-20 17:10
经过多次实验,发现是参数问题,重新将参数表替换解决此问题。
作者:
紫罗兰1225516
时间:
2015-7-21 14:05
直接将帮助文档中的web_reg_save_param_ex()例子贴过来运行后报错,
致命错误 -26000: Failed to initialize the Data Format Extensions mechanism (Error Code = 0x10) [MsgId: MERR-26000]
警告: 扩展 lrwreplaymain.dll 报告在调用函数 ExtPerProcessInitialize 时出现错误 -1
错误: 线程上下文: 调用驱动程序的服务失败。原因 – 线程上下文未在此线程上初始化。
电脑是win7的 lr是11.00的,也是报的这个问题。
大神们,怎么解呀?
作者:
紫罗兰1225516
时间:
2015-7-21 14:10
致命错误 -26000: Failed to initialize the Data Format Extensions mechanism (Error Code = 0x10) [MsgId: MERR-26000]
警告: 扩展 lrwreplaymain.dll 报告在调用函数 ExtPerProcessInitialize 时出现错误 -1
错误: 线程上下文: 调用驱动程序的服务失败。原因 – 线程上下文未在此线程上初始化
我的电脑是win7 LoadRunner是11的,也存在相同问题?
大神们,何解呀?
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2