QTP Delphi插件的一个BUG
上一篇 / 下一篇 2008-09-19 10:25:52 / 个人分类:功能自动化
相关阅读:
- 功能自动化测试工具Watir-1.4.1 (51testing, 2007-4-23)
- QTP脚本调试实例--解决对象无法识别问题 (zibeike, 2008-9-04)
TAG: 功能自动化
- 引用 删除 yeping1215 / 2010-07-21 09:26:57
- 请问一下,我装了QTP的delphi插件之后,为什么识别的对象依然全部是winobject的?
- 引用 删除 zibeike / 2010-06-11 10:37:36
-
to li_sy:
QTP的delphi插件安装后,还需要对被测程序进行配置才能正常使用。
方法如下:
You must perform the following steps for each application that you want to test.
To link to the MicDelphiAgent.pas module:
1. Add the <QuickTest Professional Installation folder>\dat\Extensibility\Delphi folder to your Delphi project search path or copy the contents of the <QuickTest Professional Installation folder>\dat\Extensibility\Delphi folder to your project folder.
2. Add MicDelphiAgent to the Uses section of your application's project file (project.dpr) as shown in the example below:
program flight;
uses
MicDelphiAgent,
Forms,
Windows;
($R*.RES)
begin
Application.Initialize
Application.Title :='Flight Reservation';
Application.Run;
end.
3. Compile your Delphi project.
Note: If your application includes the TwwDBGrid from InfoPower, you must add support for this grid as described in Configuring Support for TwwDBGrid.
Configuring Support for TwwDBGrid
If your application includes the TwwDBGrid from InfoPower, follow the following instructions to enable support for this grid.
1. Add MicWWSupport to the Uses section of your application's project file (project.dpr) after MicDelphiAgent, as shown in the example below:
program flight;
uses
MicDelphiAgent,
MicWWSupport,
Forms,
Windows;
($R*.RES)
begin
Application.Initialize
Application.Title :='Flight Reservation';
Application.Run;
end.
2. Recompile your application.
You are now ready to create and run tests on Delphi applications.
- 引用 删除 baomingyuan / 2008-12-30 15:30:43
- qtp安装完delphi的插件后在启动加载项打勾加载后是不是还需要什么配置才能录制delphi开发的脚本?
- 引用 删除 li_sy / 2008-10-30 16:44:51
-
你好,想问一下,我用qtp录制delphi程序的时候,是可以正常识别对象的,但在回放时就找不到该对象了。不知道为什么?
报错信息如下:
Cannot identify the object "DelphiEdit" (of class DelphiEdit). Verify that this object's properties match an object currently displayed in your application.
Line (1): "DelphiWindow("DelphiWindow").DelphiEdit("DelphiEdit").Set "100.10.130.220"".
Tip: If the objects in your application have changed, the Maintenance Run Mode can
help you identify and update your steps and/or the objects in your repository.
1、报错的对象名字在对象库中存在。
2、对象库属性中只设置了“text”、“nativeclass”属性,没设置“window id”
标题搜索
日历
|
|||||||||
日 | 一 | 二 | 三 | 四 | 五 | 六 | |||
1 | 2 | 3 | 4 | 5 | 6 | ||||
7 | 8 | 9 | 10 | 11 | 12 | 13 | |||
14 | 15 | 16 | 17 | 18 | 19 | 20 | |||
21 | 22 | 23 | 24 | 25 | 26 | 27 | |||
28 | 29 | 30 |
我的存档
数据统计
- 访问量: 185335
- 日志数: 85
- 建立时间: 2007-05-29
- 更新时间: 2012-09-17