51Testing软件测试论坛

标题: QTP10+Delphi初级问题求解 [打印本页]

作者: lj1989524    时间: 2010-11-23 12:15
标题: QTP10+Delphi初级问题求解
QTP回放是提示“未指定的错误” 使用了delphi插件录制了程序回放的时候提示“未指定的错误”,用sky查看对象都可以识别,不知为何?????? 请给点建议 谢谢

脚本如下:

DelphiWindow("DelphiWindow").DelphiEdit("DelphiEdit").Set "100001" -----报错

DelphiWindow("DelphiWindow").DelphiEdit("DelphiButton").Click

环境是QTP10+Delphi
用的QTP10自带的Delphi插件
作者: lj1989524    时间: 2010-11-23 12:15
坐等高人
作者: yunbin_7    时间: 2010-11-23 16:38
还没有用过Delphi。。期待别人的解答。
作者: TIB    时间: 2010-11-25 16:15
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.
作者: TIB    时间: 2010-11-25 16:16
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.
作者: FLY000    时间: 2010-11-30 16:02
回复 1# lj1989524


    请问你的插件是怎么破 解的啊??
作者: ghyk999    时间: 2011-4-14 11:21
能说的具体点不,哪段英文。
作者: ghyk999    时间: 2011-4-14 11:22
能说的具体点不,哪段英文,具体步骤。




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2