zoukankan      html  css  js  c++  java
  • QTP:General Error while saving the test 的解决方法



    首次保存录制的脚本时,弹出“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.


  • 相关阅读:
    ORA-01207: file is more recent than control file
    ORA-08189
    oracle 修改表空间存储路径
    oracle 日志文件管理
    Oracle ClusterwarePRCT-1011 : Failed to run "oifcfg".&nb
    linux:文件打包与压缩
    linux:查找搜索文件
    Python:lambda表达式(匿名函数)
    网络协议各层概述
    linux:用户及文件权限管理
  • 原文地址:https://www.cnblogs.com/y0umer/p/3838970.html
Copyright © 2011-2022 走看看