QTP提示“General Error while saving the test”,脚本无法保存
上一篇 /
下一篇 2010-12-07 15:08:28
今天在使用QTP的过程中出现上述错误,通过查找,该错误已解决,保存QTP脚本,提示“General Error while saving the test”,脚本无法保存,解决方法如下:
1、先运行下段代码:
Dim fso, MyFile
Set fso = CreateObject("scrīpting.FileSystemObject")
Set MyFile = fso.CreateTextFile("C:\testfile.txt", True)
MyFile.WriteLine ("This is a test")
MyFile.WriteLine ("This is another test")
MyFile.Close
2、看看有没有报错:
运行提示错误:ActiveX 部件不能创建对象: 'scrīpting.filesystemobject'
3、出现该错误的原因是操作系统的问题。是你的activex有问题!QTP是集成这个进行文件保存的。
4、你的System32目录下有个scrrun.dll的文件,看在不在,如果有,就regsvr32 scrrun.dll一下,没有的话,考一个过来。
收藏
举报
TAG: