使用loadrunner的vb vuser写脚本 运行报错:vbascriptext.dll -25277 -25240
一、新建一個vb vuser,不寫任何代碼,也會報錯,錯誤信息如下:
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.
二、查找幫助文檔:
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.
三、看了二個文件版都不對,我的是6.05.1020,花了一定的時間總算找到6.06.1024安裝程序。搜索關鍵字vba6.5,在CSDN上有下載。版本總算可以符合了,心想應該不會有錯了。
回報空腳本,還是報錯,錯誤信息如下:
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.
四、因為我裝的loadrunner9.5版本,估計loadrunner文檔還沒有更新,loadrunner9.5相對應的VBE6.dll,VBE6EXT.OLB版本估計不是這個,不妨把那二個文件刪除了,再裝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.
五、當我打開office 2007準備記錄整個過程時,office2007需要修復.
六、我再運行loadrunner回放腳本,結果報錯.我馬上去看二個文件的版本,都是6.05.1020. 我再次把這二個文件刪除(關閉word后),再安裝VBA,回放腳本依然成功.
轉載于:https://www.cnblogs.com/quange/archive/2009/10/17/1584943.html
總結
以上是生活随笔為你收集整理的使用loadrunner的vb vuser写脚本 运行报错:vbascriptext.dll -25277 -25240的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 蓝桥杯第八届省赛JAVA真题----分巧
- 下一篇: 野性的呼唤