博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
QTP:General Error while saving the test 的解决方法
阅读量:6891 次
发布时间:2019-06-27

本文共 1158 字,大约阅读时间需要 3 分钟。

首次保存录制的脚本时,弹出“General Error while saving the test”,解决办法如下:
方法一:
1、在c:\windows\system32下找是否有scrrun.dll文件,如果没有则从microsoft网站上down一个(一般都有)
2、然后在cmd下执行命令:regsvr32 c:\windows\system32\scrrun.dll
方法二:

Step 1: Just copy following codes into one file, and save it as .vbs

Dim fso, MyFile
Set fso = CreateObject("scripting.FileSystemObject")
Set MyFile = fso.CreateTextFile("C:\testfile.txt",True)
MyFile.WriteLine("This is a test")
MyFile.WriteLine("This is another test")
MyFile.Close

Step 2: Open CMD, and navigate to the folder you saved this file. Then input cscript xxxx.vbs

Step 3: Check the result, you will get the information like "ActiveX component can not create object"

Step 4: Search scrrun.dll file beneath system32, make sure it is exist

Step 5: run "regsvr32 C:\windows\system32\scrrun.dll" on CMD

Step 6: Re-check that vbscript file, there should be ok

Done. Now you can save the test script in your QTP. As we can see, this error was caused by the OS configuration.As I mentioned previously, in this company, illegal software can be used, so actually, OS, windows XP is also one crack version. And I think this error can not be happened on legal OS.

转载地址:http://mchbl.baihongyu.com/

你可能感兴趣的文章
VimWiki的一些技巧
查看>>
GMQT全球通用积分重磅推出
查看>>
spring cloud构建互联网分布式微服务云平台-路由网关(zuul)
查看>>
Parasoft dotTEST(10.4.1)更新亮点——在.NET应用程序中构建安全性
查看>>
Nginx 配置
查看>>
混沌工程究竟用来解决什么问题?
查看>>
如何写好一片文章
查看>>
vue项目前后端实现
查看>>
BCH升级日期将至,社区组织开始为11月“硬分叉”做准备
查看>>
2018最新版直播系统源码:功能和步骤详解
查看>>
vue的事件处理,冒泡和捕获
查看>>
没错,我就是要吹爆Angular
查看>>
Andoid屏幕适配终极手段(小编用过最得劲的dp适配)
查看>>
一张图带你了解Aspose 2019年的产品线
查看>>
一篇关于MySQL server层执行查询语句的注释,非常棒
查看>>
js执行过程之上下文对象(Context)
查看>>
使用迭代器遍历集合出现ConcurrentModificationException的总结
查看>>
阿里大师带你详解API接口安全
查看>>
java 合并pdf
查看>>
使用vue实现grid-layout功能
查看>>