QTP10-插件破解脚本

five3five3 34 于 2019-04-22 23:02:16 发布
  • 0 推荐
  • 0 收藏,3254 浏览

本脚本是通过修改注册表来完成的。其主要工作步骤有:

1、导出原有插件注册项内容至C:/temp下, 以防万一修改错误可以恢复

2、修改QTP注册表的插件项内容。

把以下内容复制并粘贴至一个。bat文件里直接运行就OK了。

破解成功后插件选择窗口中显示的都是已授权,且工具使用过程中无任何限制性的动态

 

===========================================================

@echo off
if not exist C:/temp (md C:/temp)
if not exist C:/temp/QTPrestore.reg (
reg export "HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager" "C:/temp/QTPrestore.reg"
)
echo Windows Registry Editor Version 5.00 >C:/temp/reg.reg

reg query "HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/Delphi" /v ProgID|find "ProgID"
if %errorlevel%==0 (
echo. >>C:/temp/reg.reg
echo [HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/Delphi] >>C:/temp/reg.reg
echo @="QTCoreAddin" >>C:/temp/reg.reg
echo "ProgID"="Mercury.AddinBaseObj" >>C:/temp/reg.reg
)

reg query "HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/Java" /v ProgID|find "ProgID"
if %errorlevel%==0 (
echo. >>C:/temp/reg.reg
echo [HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/Java] >>C:/temp/reg.reg
echo @="QTCoreAddin" >>C:/temp/reg.reg
echo "ProgID"="Mercury.AddinBaseObj" >>C:/temp/reg.reg
)

reg query "HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/Oracle" /v ProgID|find "ProgID"
if %errorlevel%==0 (
echo. >>C:/temp/reg.reg
echo [HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/Oracle] >>C:/temp/reg.reg
echo @="QTCoreAddin" >>C:/temp/reg.reg
echo "ProgID"="Mercury.AddinBaseObj" >>C:/temp/reg.reg
)

reg query "HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/PeopleSoft" /v ProgID|find "ProgID"
if %errorlevel%==0 (
echo. >>C:/temp/reg.reg
echo [HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/PeopleSoft] >>C:/temp/reg.reg
echo @="QTCoreAddin" >>C:/temp/reg.reg
echo "ProgID"="Mercury.AddinBaseObj" >>C:/temp/reg.reg
)

reg query "HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/PowerBuilder" /v ProgID|find "ProgID"
if %errorlevel%==0 (
echo. >>C:/temp/reg.reg
echo [HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/PowerBuilder] >>C:/temp/reg.reg
echo @="QTCoreAddin" >>C:/temp/reg.reg
echo "ProgID"="Mercury.AddinBaseObj" >>C:/temp/reg.reg
)

reg query "HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/SapGui" /v ProgID|find "ProgID"
if %errorlevel%==0 (
echo. >>C:/temp/reg.reg
echo [HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/SapGui] >>C:/temp/reg.reg
echo @="QTCoreAddin" >>C:/temp/reg.reg
echo "ProgID"="Mercury.AddinBaseObj" >>C:/temp/reg.reg
)

reg query "HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/Siebel" /v ProgID|find "ProgID"
if %errorlevel%==0 (
echo. >>C:/temp/reg.reg
echo [HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/Siebel] >>C:/temp/reg.reg
echo @="QTCoreAddin" >>C:/temp/reg.reg
echo "ProgID"="Mercury.AddinBaseObj" >>C:/temp/reg.reg
)

reg query "HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/Stingray" /v ProgID|find "ProgID"
if %errorlevel%==0 (
echo. >>C:/temp/reg.reg
echo [HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/Stingray] >>C:/temp/reg.reg
echo @="QTCoreAddin" >>C:/temp/reg.reg
echo "ProgID"="Mercury.AddinBaseObj" >>C:/temp/reg.reg
)

reg query "HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/Terminal Emulators" /v ProgID|find "ProgID"
if %errorlevel%==0 (
echo. >>C:/temp/reg.reg
echo [HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/Terminal Emulators] >>C:/temp/reg.reg
echo @="QTCoreAddin" >>C:/temp/reg.reg
echo "ProgID"="Mercury.AddinBaseObj" >>C:/temp/reg.reg
)

reg query "HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/VisualAge" /v ProgID|find "ProgID"
if %errorlevel%==0 (
echo. >>C:/temp/reg.reg
echo [HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/VisualAge] >>C:/temp/reg.reg
echo @="QTCoreAddin" >>C:/temp/reg.reg
echo "ProgID"="Mercury.AddinBaseObj" >>C:/temp/reg.reg
)

reg query "HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/WebServices" /v ProgID|find "ProgID"
if %errorlevel%==0 (
echo. >>C:/temp/reg.reg
echo [HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/WebServices] >>C:/temp/reg.reg
echo @="QTCoreAddin" >>C:/temp/reg.reg
echo "ProgID"="Mercury.AddinBaseObj" >>C:/temp/reg.reg
)

reg query "HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/WinForms" /v ProgID|find "ProgID"
if %errorlevel%==0 (
echo. >>C:/temp/reg.reg
echo [HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/WinForms] >>C:/temp/reg.reg
echo @="QTCoreAddin" >>C:/temp/reg.reg
echo "ProgID"="Mercury.AddinBaseObj" >>C:/temp/reg.reg
)

reg query "HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/WPF" /v ProgID|find "ProgID"
if %errorlevel%==0 (
echo. >>C:/temp/reg.reg
echo [HKEY_LOCAL_MACHINE/SOFTWARE/Mercury Interactive/QuickTest Professional/Add-In Manager/WPF] >>C:/temp/reg.reg
echo @="QTCoreAddin" >>C:/temp/reg.reg
echo "ProgID"="Mercury.AddinBaseObj" >>C:/temp/reg.reg
)

::explorer.exe C:/temp
reg import C:/temp/reg.reg
echo Finished!
pause

 

你可能感兴趣的文章

本文隶属于专栏

TestQA @ TestQA

TestQA's Blog