|
QTP版本:11.0 正版
Flex版本:Flash Builder 4
Flex for QTP Plug-in版本:4.0
根据论谈很多资料,严格按照QTP_FLEX测试.pdf文档,安装Flash Builder 4和Flex for QTP Plug-in,并且在Flash Builder 4中新建工程,配置编译属性,执行Adobe Flash Builder 4\sdks\4.1.0\templates\automation-runtimeloading-files\build.bat,执行结果中出现一个警告,如下所示:
- C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.1.0\templates\automation-run
- timeloading-files>SET OPTS=-include-libraries+=..\..\frameworks\libs\automation\
- automation.swc;..\..\frameworks\libs\automation\automation_agent.swc;..\..\frame
- works\libs\automation\automation_dmv.swc;..\..\frameworks\libs\automation\qtp.sw
- c;..\..\frameworks\libs\automation\automation_spark.swc;..\..\frameworks\libs\au
- tomation\automation_flashflexkit.swc;
- C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.1.0\templates\automation-run
- timeloading-files>..\..\bin\mxmlc.exe -include-libraries+=..\..\frameworks\libs\
- automation\automation.swc;..\..\frameworks\libs\automation\automation_agent.swc;
- ..\..\frameworks\libs\automation\automation_dmv.swc;..\..\frameworks\libs\automa
- tion\qtp.swc;..\..\frameworks\libs\automation\automation_spark.swc;..\..\framewo
- rks\libs\automation\automation_flashflexkit.swc; runtimeloading.mxml
- 正在加载配置文件“C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.1.0\framew
- orks\flex-config.xml”
- C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.1.0\templates\automation-run
- timeloading-files\runtimeloading.mxml(19): 警告: ewZ文_'application' has been de
- precated since 4.0. Please use 'FlexGlobals.topLevelApplication'.
- myLoader.source = Application.application.parameters.automations
- wfurl;
- C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.1.0\templates\automation-run
- timeloading-files\runtimeloading.swf(435504 字节)
- C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.1.0\templates\automation-run
- timeloading-files>
复制代码 执行完该文件后,将runtimeloading.mxml文件内容拷贝到新建工程的mxml文件中,编译后,再打开QTP,用Object SPY无法录取Flex功能。
烦请知情人帮忙指导下,万分感谢!
剩下 |
|