Adobe為QTP提供的Flex4外掛

TIB發表於2010-03-16

 

AdobeQTP提供的Flex4外掛

http://labs.adobe.com/wiki/index.php/Flash_Builder_4:Release_Notes#Flex_4_Plug-in_for_HP_QuickTest_Professional

 

下載地址:

http://download.macromedia.com/pub/labs/flex/4/flex4_automation_install_100509.zip

 

Flex 4 Plug-in for HP QuickTest Professional

To use Flex and AIR Automated Testing with the Flex 4 Plug-in for HP QuickTest Professional (formerly Mercury QuickTest Pro), you must perform additional steps. The rest of this section describes how to install and use the Flex 4 Plug-in for HP QuickTest Professional

Requirements for Using the QTP Plug-in

To test applications with Flex Automated Testing and the QTP agent, you must install the following:

  • HP (formerly Mercury) QuickTest Professional 9.5 with Internet Explorer 6 & Internet Explorer 7
  • Adobe Flex 4 Plug-in for Mercury QuickTest Pro
  • Microsoft Internet Explorer, version 6 or later
  • Flash Player ActiveX control, version 9.0.28.0 or higher

Installing the Plug-in

This section describes the steps necessary for a QC testing professional to configure QTP to work with Flex applications. You must install QTP and the plug-in.

To install QTP

  1. Install Flash Player 9 ActiveX control (9.0.28.0 ) or newer for Microsoft Internet Explorer. This is currently the only supported browser/player.
  2. If you are using Mercury QTP on Microsoft Windows Vista you need to turn off the User Account Control (UAC) feature. Instructions to turn off UAC are available here
  3. Restart your computer.

To install the Flex 4 Plug-in for Mercury QuickTest Pro

  1. Download the Adobe Flex 4 Plug-in for HP QuickTest Pro zip file and unzip it on the machine where you want to install the plug-in.
  2. Double Click on the Install_QTP_Plugin.bat.
  3. Restart your machine.

The plug-in installer will include the following in the installation directory:

  • AIR folder which will have the AIR related dlls
  • FLEX folder which will have the Flex related dlls
  • Uninstall_QTP_Plugin.bat Double clicking on this bat file will uninstall the QTP Plug-in.
  • ReadMe.txt file.

Using the Plug-in

You can download a demo zip. It contains a Flash movie that describes the basics of using the plug-in.Be sure to enable audio on your computer.

  1. Start QTP again after installing the plug-in. The Add-in Manager lists the Flex and AIR plug-in.
  2. Select the Flex plug-in in the Add-in Manager if you want to automate Flex applications or select the AIR Plug-in in the Add-in Manager if you want to automate AIR applications.
  3. Select New > Test and click the Record button.

NOTE: Flex application testing with QTP currently supports only Microsoft Internet Explorer with the ActiveX Flash Player. For more information on these tasks and using QTP to test Flex applications, see Testing with QTP. For information on the operations and properties of Flex objects in QTP, see QTP Object Type Information.

Samples for Automated Testing Sample custom agents are available at Custom Automation Agents. An application ready for testing with QTP can be found at Flexstore AT. This sample can be used to test if the QTP plugin installation was successful. An example for automating custom components can be found at Automating Custom Component.

 

相關文章