使用loadrunner的vb vuser写脚本 运行报错:vbascriptext.dll -25277 -25240
一、新建一個(gè)vb vuser,不寫任何代碼,也會報(bào)錯(cuò),錯(cuò)誤信息如下:
Warning: Invalid parameter detected in function.
Warning: Invalid parameter detected in function.
Warning: Extension vbascriptext.dll reports error -25277 on call to function ExtPerThreadInitialize
Error: Vuser failed to initialize extension vbascriptext.dll.
二、查找?guī)椭臋n:
Replay Error with VB Vuser Scripts
If you are getting error number -25210 when trying to replay a VB Vuser
script, you may have a problem with some of your DLL files.
Solution:
1 、Open the c:"Program Files"Common Files"Microsoft Shared"vba"vba6
directory.
2 、Locate the VBE6.dll and VBE6EXT.OLB files.
3 、Right click the files and click properties to see the version of each file.
4 、If either the VBE6.dll or the VBE6EXT.OLB file versions are between
6.04.9972 and 6.05.1024, they both must be replaced. If neither file
version is in this range, contact HP software support.
5 、Replace the VBE6.dll file with version 6.04.9972 or 6.05.1024.
6、 Replace the VBE6EXT.OLB file with version 6.04.9969 or 6.05.1024.
三、看了二個(gè)文件版都不對,我的是6.05.1020,花了一定的時(shí)間總算找到6.06.1024安裝程序。搜索關(guān)鍵字vba6.5,在CSDN上有下載。版本總算可以符合了,心想應(yīng)該不會有錯(cuò)了。
回報(bào)空腳本,還是報(bào)錯(cuò),錯(cuò)誤信息如下:
Unable to format message id [-25001]
Unable to format message id [-25001]
Unable to format message id [-25001]
Unable to format message id [-25001]
Unable to format message id [-25001]
Warning: Extension vbascriptext.dll reports error -25240 on call to function ExtPerThreadInitialize
Error: Vuser failed to initialize extension vbascriptext.dll.
四、因?yàn)槲已b的loadrunner9.5版本,估計(jì)loadrunner文檔還沒有更新,loadrunner9.5相對應(yīng)的VBE6.dll,VBE6EXT.OLB版本估計(jì)不是這個(gè),不妨把那二個(gè)文件刪除了,再裝tools下的VBA 安裝程序,VBE6.dll,VBE6EXT.OLB版本分別是6.00.8714,6.00.8667.再回放腳本成功.
Virtual User Script started
Starting action vuser_init.
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
五、當(dāng)我打開office 2007準(zhǔn)備記錄整個(gè)過程時(shí),office2007需要修復(fù).
六、我再運(yùn)行loadrunner回放腳本,結(jié)果報(bào)錯(cuò).我馬上去看二個(gè)文件的版本,都是6.05.1020. 我再次把這二個(gè)文件刪除(關(guān)閉word后),再安裝VBA,回放腳本依然成功.
轉(zhuǎn)載于:https://www.cnblogs.com/quange/archive/2009/10/17/1584943.html
總結(jié)
以上是生活随笔為你收集整理的使用loadrunner的vb vuser写脚本 运行报错:vbascriptext.dll -25277 -25240的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 蓝桥杯第八届省赛JAVA真题----分巧
- 下一篇: 野性的呼唤