一、新建一个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相关推荐

  1. shell脚本运行报错: syntax error: unmatched ‘while‘

    shell脚本运行报错: syntax error: unmatched 'while'@TOC 脚本文件的格式不对,可以使用notepad++转换格式即可. 编辑–>文档格式转换–>转为 ...

  2. 【loadrunner】记录loadrunner12回放脚本的报错(400,401)

    1.录制带登录的脚本并回放,回放后web_submit_data方法报错 Error -26631: HTTP Status-Code=400 (Bad Request) for "http ...

  3. 关于Windsocket脚本运行报错Error Code:9017

    Winsocket协议的脚本报错:Error : Timeout expired while trying to connect. Error code : 9017. 每报一次错,就会导致一个Vus ...

  4. linux下scala脚本运行报错error: expected class or object definition 解决方案

    我在看<scala编程>这本书时,对于scala脚本的编写和运行搞不明白,后来才看通,现在将一点体会记载如下: 1.scala脚本保存在目录-下名为print.scala的文本中,其源代码 ...

  5. (亲测有效)解决shell脚本运行报错

    运行shell时报错: bash:./test.sh:/bin/sh^M:bad interpreter:No such file or directory vim test.sh,Esc+:进入编辑 ...

  6. 提示 api-ms-win-crt-runtime-l1-1-0.dll丢失 ivms-4200 安装好运行报错api-ms-win-crt-runtime-|1-1-0.dll

    2008找不到入口点DllRegisterServer   解决缺少api-ms-win-crt-runtime-|1-1-0.dll的问题 Windows Server 2008 R2提示api-m ...

  7. locust安装成功为什么运行脚本后打不开页面或运行脚本会报错

    locust安装成功为什么运行脚本后打不开页面或运行脚本会报错? 小编之前安装环境后还用过一段时间,后面准备继续用的时候,却发现运行脚本都会报错,所以页面也打开不开啰. 安装locust成功 locu ...

  8. appium运行报错java.net.SocketException: socket write error

    这个错我调了 快两天一点头绪没有,脚本正常跑没问题,但是就是控制台输出信息报错,没法定位问题在哪.报错如图: 虽然这个报错不影响测试结果,但是本人有强迫症,一定要查出究竟: 我的尝试: 1.那天试验, ...

  9. 【经验】python运行报错ModuleNotFoundError: No module named XXX

    应用场景 本来是在pycharm里运行Python file,一切都很正常,然后为了让脚本自己乖乖地在服务器上跑,不占用IDE调试其他代码,所以决定用命令行直接在服务器上运行,结果报了如下错误: Mo ...

最新文章

  1. 机器翻译之Facebook的CNN与Google的Attention
  2. vue 设置proxyTable - pathRewrite无效
  3. Angular Lazy Load 的一个局限性以及解决办法
  4. 次时代模型的制作 这几个点你真的知道了吗?|附加50g学习资料
  5. 怎样解决jsp:include标签在包括html文件时遇到的乱码问题
  6. 添加组件_苹果ios14怎么添加删除小组件 小组件叠放添加设置教程
  7. oracle 简版客户端instantclient使用 oledb ODAC组件使用
  8. halcon real类型深度图转灰度图、转点云图、拟合平面和测量高度
  9. 一气之下,我抢过面试官电脑花10分钟搭建了MySQL主从架构,面试官蒙了
  10. Java问题排查系列--线上问题排查的方法/步骤
  11. JAVASCRIPT网页特效案例教程pdf
  12. JS笔记_P72数组的四个主要方法
  13. 联发科技:LinkIt™ RTOS
  14. 微软2022校招福袋揭秘!
  15. 【外挂】API函数列表【链接】
  16. Java面试知识点一
  17. 树莓派人脸识别门禁系统第二课:Win IOT微软人脸识别API刷脸开门
  18. c#未能加载基类System
  19. VOC和COCO数据集的介绍和转换
  20. 好书推荐-英文原版【Understanding MySQL Internals】(附下载地址)

热门文章

  1. 工程用计算机是什么样子的,【2人回答】学软件工程的应该买什么样的处理器电脑?-3D溜溜网...
  2. hadoop没有datanode_Hadoop运行在Kubernetes平台实践
  3. requirejs加载顺序_教你5分钟学会用requirejs(必看篇)
  4. android内部类broadcastreceiver,android 公开静态内部类BroadcastReceiver
  5. linux标准i o实例,9.3. 一个 I/O 端口例子
  6. 数据结构折半查找算法C语言,数据结构C语言实现----折半查找
  7. html里面Meta标签的使用
  8. 为什么有的网站要改服务器才能打开吗,为什么有些网站进不了,怎样设置DNS才能进 – 手机爱问...
  9. linux18.04循环登陆,ubuntu18.04 循环登陆
  10. mac python运行按哪个键_#mac python如何使用教程#怎么在mac终端运行python程序