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:

 

评分:0

我来说两句

日历

« 2024-03-20  
     12
3456789
10111213141516
17181920212223
24252627282930
31      

数据统计

  • 访问量: 8844
  • 日志数: 7
  • 图片数: 1
  • 建立时间: 2010-12-07
  • 更新时间: 2011-04-21

RSS订阅

Open Toolbar