QTP11不能识别.NET对象的解决方法

本文介绍了解决QTP中无法识别.NET对象的问题的三种方法:安装.NET插件、安装补丁QTP_00709.exe、在设置中选择WindowsApplications窗口并切换到第一个选项。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在QTP中,.NET对象的Class Name都是以Swf开头的,使用QTP11测试.NET程序时经常出现无法识别对象,将窗口识别成Window而不是SwfWindow的情况,导致测试不能正常进行下去,下面给出三种解决方法,如果还不行的话,只能重装QTP了。

 

1、安装QTP的.NET插件,启动QTP时选择.NET插件,其他插件不选,以免有冲突;

2、安装QTP11补丁QTP_00709.exe,这个补丁能够支持.NET 4.0;

3、启动QTP11,打开菜单Automation - Record and Run Settings,切换到Windows Applications窗口,选择第一个选项。

QTP11补丁发布 - 支持32位.NET 4应用程序对象识别 This patch updates your QuickTest installation with fixes for a number of issues found after the release of QuickTest Professional 11.00. The following issues are being addressed in this patch: 1. If the QTP_00699 - Support Testing on 64-Bit Applications (For Specified Technologies) patch was not installed on 64-bit operating systems, all .NET 4.0 controls on 32-bit applications were recognized as SwfObjects. 2. Recovery scenarios did not work in BPT wrapper tests. 3. Run-time errors were displayed if you ran a business component that contained a QCUtil.CurrentTest.Name step. 4. Function libraries that were created from an application area, opened in read-only mode. 5. In Quality Center 10.00, the Parameters of Test dialog box opened when you added QuickTest 11.00 tests to the execution grid. 6. If a QuickTest test called a Service Test test (and both tests were stored in Quality Center), the run results for the Service Test test were not uploaded to Quality Center at the end of the run session. 7. If you renamed a QuickTest action after inserting a call from it to a Service Test test, an error occurred during the run session. 8. QuickTest crashed or an OS blue screen appeared when using a User-Defined / Non-HLLAPI emulator on Windows 7 with Office 2007/2010 installed. 9. You could not view the baseline history for scripted components that were stored in version control-enabled Quality Center projects. 10. In QuickTest, if you tried to delete an application area that was associated with one or more components, QuickTest mistakenly opened a message box asking you to confirm the deletion of the application area instead of informing you that the application area is in use and providing you with further instructions. This occurred only if the application area was moved to a different location in the Quality Center/ALM Test Resources module after a component was associated with it.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值