问题:
QTP录制脚本时,Error:TheBrowserApplication can't be launched. Possibly the URL is
wrong.
环境:QTP10+IE8.0+win7(windows xp 也适用)
解决方法:
1、只加载Web插件(不加载ActiveX插件);
2、
a)修改bin目录下的mic.ini文件
(如我的是:D:\Program Files\HP\QuickTest
Professional\bin\mic.ini)
在[acx_hook]中:修改IEXPLORE.EXE= no,IE4.EXE = no
在[BBT]中:修改acx_hook =0
b)run-> Regedit,进入注册表编辑器;
在HKEY_CURRENT_USER->Software->Mercury
Interactive->QuickTest Professional->MicTest->ActiveX
Add-in里,右键新建一个DWORD值对象,命名为UseBBHook,并双击将其数值数据置为1.
(我用的是第二种方法,因为第一种方法不能识别ActiveX对象。)
解决方法来源(没记下具体地址)
一.
QTP- IE cannot be launched when loading
ActiveX
QTP10+IE7+XP
when start record, Encounter error: Browser application can't
be launched. while it can work if not loadingActiveX
add-in.
Solution:
1、Goto program files-->qtp-->bin-->mic.ini
In [acx_hook] Section: change IEXPLORE.EXE as no and IE4.EXE as
no
In [BBT]: Change acx_hook as 0
2、goto Regedit
HKCU-->software—> mercury
interactive—>qtp-->mictest-->activex add in
Create a dword value as UseBBHook and assign the value as
1
二.
The browser Application can't be launched. Possibly
the URL is wrong.
The easiest way to record Web Applications using QTP 11 on
Windows Vista is by following the steps below.
•Ensure: IE - Internet Options > security settings - Enable
Security checkbox is TICKED.
•Ensure: Particular URL is allowed on Privacy Tab - Sites -
under IE > Internet Options.
•Ensure: If Using VISTA, Launch QTP latest Vxx: Run as
Administrator prior to launch of IE .
•Ensure: If Using VISTA, Launch IE latest Vxx: Run as
Administrator after to launch of QTP Latest version.
•Ensure: Web Add-in is only ticked if recording Web
Applications.