为什么QTP不能像对IE那样的识别FireFox 里的控件

项目需要在FireFox上进行测试,用的FireFox版本是2.0,QTP版本是9.5。
在IE上能抓取很多的对象,但是在FireFox上抓取的对象Class都是WinObject,Name都是MozillaWindowClass,请问这是为什么?
不涉及到项目的编程语言,只是针对IE和FireFox。
安装了一个Web Add-in Extensibility SDK 9.5。但是还是在FireFox上显示不出来,是否还需要安装其他的Add-in呢?


QTP9.5支持的Web Browsers有:
# Microsoft Internet Explorer 6.0 Service Pack 1, 7.0
# Netscape Browser 8.1.3, 9.0
# Mozilla Firefox 1.5, 2.0.x, 3.0 Alpha 7
用的Firefox 2.0.0.12应该是支持的,为什么会出现这样的情况??

 

答:
那为什么还会出现不识别的情况,问题如下:
1、QTP->Automation->Record and Run Settings-Web里,我选的是Open the following address when a record or run session begins,然后再第一个下拉框里填写自己所需要测的网址,这样,在你录制的时候会直接打开一个你所需要录制的web网页。在第二个下拉框里选择 Firefox 2.0(因为我要测的就是2.0,所以选的就是这个,根据自己实际的项目需要)
2、根据Help文档:Mozilla Firefox uses the Java 2, Java 5, or Java 6 Virtual Machine as an external plug-in。你需要安装一个Java Virtual Machine,我的版本是jdk1.5.0_11。
3、还是根据Help
If your applet runs in Mozilla Firefox:
In Mozilla Firefox, select Tools > Java Console.
If you do not see the Java Console option in the Tools menu, install the Open Java Console extension from https://addons.mozilla.org/firefox/141/. This extension provides the menu option on the Tools menu for opening the Java Console from Mozilla Firefox. It also provides a toolbar button in the JavaScript Console for opening Java Console.
根据链接,去下一个Java Console。我下的是open_java_console-1.6-fx。然后安装上,在你的FireFox->Tool下会有一个Java Console的选项。

这时候我的QTP就可以全部识别FireFox里的所有控件了。

如果还有什么问题的话,还可以尝试安装两个Add-in.
QuickTest Professional Web Add-in Extensibility SDK
QuickTest Professional Java Add-in Extensibility SDK
因为我是先安装的Add-in,安装后还是不能识别,所以我也不清楚有没有用,大家可以作为参考。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
QTP11补丁发布 - 支持FireFox 3.6浏览器对象识别 This patch provides official support for testing Web applications in Firefox 3.6. It includes support for working with Firefox 3.6 on all operating systems that QuickTest Professional supports. (For the complete list of supported operating systems, see the QuickTest Professional 11.00 Product Availability Matrix, which is available from the Documentation Library Home page or the root folder of the QuickTest Professional DVD.) Notes: * After installing the patch and Firefox 3.6 on a computer with UAC (User Account Control) enabled, you need to start QuickTest at least one time using the “Run as administrator” mode. Limitations: * Testing Silverlight applications on Firefox is not supported for Firefox version 3.6.4 and later. * (Relevant for Firefox version 3.6 and earlier) If Sprinter is installed on the QuickTest computer, either QuickTest or Sprinter will not be able to test Web applications on Firefox. To restore support, you need to manually edit the QuickTest/Sprinter extension file in Firefox to use the correct testing tool and then force Firefox to register this change, as follows: 1) In the Firefox installation folder, open the extensions file (for example, “C:\Program Files\Mozilla Firefox\extensions\{9F17B1A2-7317-49Ef-BCB7-7BB47BDE10F8}”) with a text editor, and change the path to specify the relevant testing tool. For example, to specify QuickTest, change the path to: “C:\Program Files\HP\QuickTest Professional\bin\Mozilla\Common” (assuming that QuickTest is installed in the default installation folder). 2) Navigate to the “%AppData%\Mozilla\Firefox\Profiles” folder, and, in each subfolder, delete the “extensions.cache” file.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值