QTP:General Error while saving the test 的解决方法

简介: 首次保存录制的脚本时,弹出“General Error while saving the test”,解决办法如下: 方法一: 1、在c:\windows\system32下找是否有scrrun.


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


目录
相关文章
|
关系型数据库 Shell Oracle
RMAN-01009: syntax error: found "dot" 解决办法
RMAN-01009: syntax error: found "dot" 解决方法   今天调试一个RMAN 的备份脚本,这个脚本以前也用过很多次,并没有什么问题,今天执行时,就是过不去。
1357 0
|
7月前
|
数据可视化 Python
常见的bug---5、在安装superset时候报错,Command “python setup.py egg_info“ failed with error code 1
常见的bug---5、在安装superset时候报错,Command “python setup.py egg_info“ failed with error code 1
|
11月前
|
Python
【python3.6】pyinstaller报错AssertionError: Failed to determine matplotlib‘s data directory!【解决方案】
【python3.6】pyinstaller报错AssertionError: Failed to determine matplotlib‘s data directory!【解决方案】
174 0
|
12月前
|
开发者 iOS开发
Xcode运行报错The operation couldn’t be completed. Unable to launch xxx because it has an invalid code...
Xcode运行报错The operation couldn’t be completed. Unable to launch xxx because it has an invalid code...
655 0
|
12月前
[metasploit]msf启动:msf failed to load and returned this error 'cannot load such file -- bundler/setup'
[metasploit]msf启动:msf failed to load and returned this error 'cannot load such file -- bundler/setup'
|
测试技术
loadrunner 运行脚本-Run-time Settings->General->Additional attributes设置
loadrunner 运行脚本-Run-time Settings->General->Additional attributes设置
77 0
|
存储 测试技术
loadrunner Vugen-Tools General-Options-Replay设置
loadrunner Vugen-Tools General-Options-Replay设置
78 0
解决办法:nvidia-settings:ERROR: Unable to load info from any available system
解决办法:nvidia-settings:ERROR: Unable to load info from any available system
304 0
Idea运行报错Error running ‘Application‘: Command line is too long的解决方法
Idea运行报错Error running ‘Application‘: Command line is too long的解决方法
128 0
|
移动开发 Linux Shell
$‘\r‘: command not found的解决方法
在Linux系统中,运行Shell脚本,出现了如下错误: one-more.sh: line 1: $'\r': command not found 1 出现这样的错误,是因为Shell脚本在Windows系统编写时,每行结尾是\r\n,而在Linux系统中行每行结尾是\n,所以在Linux系统中运行脚本时,会认为\r是一个字符,导致运行错误。
1228 0