构建可被QTP设别的FLEX 项目环境

上一篇 / 下一篇  2008-11-12 16:13:06 / 个人分类:QTP

A Prerequisites

Ø      Mercury QuickTest Professional 9.1(QA)

Ø      Flex_Automation_Installer.exe (Flex Plug-in)(DEV and QA)

Ø      Flash Player ActiveX control, version 9.0.28.0,Debug Version(QA)

 

B  Installationand Configuration

1.     Install QuickTest Professional 9.1, after installation completed restart the computer as is prompted.

2.     Install Flex_Automation_Installer.exe,

3.     Configure TEAFlexCustom.xml for customized component that directly extends UIComponent.

C     Installation and Configuration

1.       Install Flex Builder 2

2.       Install Flex Automation Package (download fromhttp://www.adobe.com/go/tryflex)

3.       Copy flex automation library files to Flex Builder library

Ø      Copyautomation_agent.swcandqtp.swcfiles

from C:\Program Files\Adobe\Flex Automation\frameworks\libs

to   C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\frameworks\libs

 

Ø      Copyautomation_agent_rb.swcfile

from C:\Program Files\Adobe\Flex Automation\frameworks\locale\en_US

to C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\frameworks\locale\en_US

1.       Select a flex project you want to enable automation testing. In the menu, select Project>Properties. And Select Flex Compiler in the properties window and add the following line in the Additional compiler arguments field, to include the automation library files.

 

-include-libraries "c:\program files\adobe\flex builder 2\Flex SDK 2\frameworks\libs\automation.swc" "c:\program files\adobe\flex builder 2\Flex SDK 2\frameworks\libs\automation_agent.swc" "c:\program files\adobe\flex builder 2\Flex SDK 2\frameworks\libs\qtp.swc"

 

 

1.       Apply the changes and rebuild the project. The application is now ready with QTP test automation support. (PS: the application SWF with QTP test automation support is about200klarger than original one. We may need to prepare two versions in order not to lose performance in production)


TAG: FLEX QTP

假装不在 引用 删除 假装不在   /   2008-11-27 16:04:31
不错不错~~嘿嘿。学习
 

评分:0

我来说两句

我的栏目

日历

« 2024-05-07  
   1234
567891011
12131415161718
19202122232425
262728293031 

我的存档

数据统计

  • 访问量: 1137
  • 日志数: 1
  • 建立时间: 2008-11-12
  • 更新时间: 2008-11-12

RSS订阅

Open Toolbar