Wednesday, July 29, 2009

Adobe Flex add in for QTP

This is the link for Adobe Flex Add in for QTP (Quick Test Professional)
http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3email

First download Flex Builder 3.0.2
then search for QTP add in Flex Builder 3.0.2 and install it.
Now ready to play on Flex Application.

System Requirements for Windows:

FLEX BUILDER 3 FOR WINDOWS (STANDARD AND PROFESSIONAL)

  • Intel® Pentium® 4 processor
  • Microsoft® Windows® XP with Service Pack 2 or Windows Vista® Home (Premium or Basic), Business, or Ultimate
  • 1GB of RAM (2GB recommended)
  • 500MB of available hard-disk space (additional 500MB required for plug-in configuration)
  • Java™ Virtual Machine: Sun™ JRE 1.4.2, Sun JRE 1.5 (included), IBM® JRE 1.5, or Sun JRE 1.6
  • Eclipse™ 3.2.2, 3.3 and 3.4 for plug-in configuration (Eclipse 3.3 recommended for Windows Vista)
  • Adobe® Flash® Player 9 software*

Flex Builder 3 for Windows has also been tested to work with these specific products:

  • BEA Workshop 10.1
  • IBM Rational Software Architect 7.0.0.3 (Eclipse 3.3 plug-in configuration only)

Install Flex Builder Plug-in on Windows

NOTE: Flex Builder is only supported on Eclipse 3.2.2 or Eclipse 3.3.

CAUTION: Do not install the plug-in version of Flex Builder 3 into a copy of Eclipse that is already hosting Flex Builder 2 plug-in. If you want to continue running Flex Builder 2 plug-in, download a new copy of Eclipse, and use that when installing Flex Builder 3 plug-in. In addition, be sure to use separate Eclipse workspaces for each installation of Flex Builder plug-in.

  1. Log in as the Windows Administrator or as a computer administrator (a user account with administrator privileges).

    Note: If you attempt to install without administrator privileges, the installation will complete with flagged issues. However, you will have installed an incomplete version of Flex Builder that you will not be able to run.

  2. Prior to installing, uninstall any prerelease versions of Flex Builder 3.
  3. Open or double-click the installer executable file. Accept the license agreement and follow the prompts.
  4. By default, the debugging version of the Flash Player 9 browser plug-in is selected for installation.
    • The debugging version of Flash Player is Flash Player 9 (9.0.115.0)
    • This version is required for viewing and debugging applications developed with Adobe Flex Builder.
    • You must select separate installs of the Flash Player plug-in for Internet Explorer and for Firefox and Netscape browsers.
  5. (Optional) You can select the following to install:
    • ColdFusion Extensions for Flex Builder
    • JSEclipse - JavaScript plug-in (not available in Japanese)
  6. Follow the prompts to complete the installation.
  7. If you had previously installed Flex Builder 3 Beta, refer to the instructions in the section Clean and Reinitialize Cached Bundle Data.
  8. Review the Release Notes.
  9. Start Flex Builder using its shortcut in the Start Menu under Adobe.

    (Windows Vista Only) The first time you run Flex Builder 3, you must "Run as Admin", after which you can run it normally.

    To run as Admin, right click the Adobe Flex Builder 3 Eclipse Launcher launch icon in the Start Menu, select "Run As," and then specify a user with administrator privileges.

  10. Select Window > Open Perspective > Other > Flex Development.
  11. When prompted, enter your serial number or choose the Trial option.
  12. Run the Help menu command "Search for Flex Builder Updates." If you do not receive a message in return, then the Adobe Update Manager was not installed automatically on your system. Here’s how to remedy that:
    • In your installed Flex Builder 3 folder, run this file: \AMT\AdobeAUM5.1All.win.installer\Setup.exe

NOTE: You must create a new workspace before beginning. Select File > Switch Workspace from the menu bar and enter a new directory name. If the directory does not exist, Eclipse creates it.

Flex 3 Plug-in for HP QuickTest Professional
To use Flex Automated Testing with the Flex 3 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 3 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:

  • Mercury QuickTest Professional 9.2 with Internet Explorer 6
  • HP (formerly Mercury) QuickTest Professional 9.5 with Internet Explorer 6 & Internet Explorer 7
  • Patch 1701 needs to be installed for Smart Identification support with Mercury QuickTest Professional 9.2
  • Mercury QuickTest Professional 9.2 is not supported with Internet Explorer 7
  • Adobe Flex 3 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 higher) for Microsoft Internet Explorer. This is currently the only supported browser/player.
  2. Install QTP 9.1 if you do not require support for Smart Identification. If you want to use Smart Identification, install QTP 9.2 and patch 1701. You must get QTP 9.1 from Mercury.
  3. 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
  4. Restart your computer.

To install the Flex 3 Plug-in for Mercury QuickTest Pro:

  1. Run the flex_builder_root/Installers/QTP_Plugin_Installer.exe.
  2. Start QTP.
  3. Close QTP.

In addition to the plug-in's DLLs and XML files, the plug-in installer includes the following in the installation directory:

  • /demo — Contains a Flash movie that describes the basics of using the plug-in. Be sure to enable audio on your computer.
  • /Uninstall Adobe Flex 3 Plug-in for Mercury QuickTest Pro — Contains the uninstaller.

Using the Plug-in

  1. Start QTP again after installing the plug-in. The Add-in Manager lists the Flex plug-in.
  2. Select the Flex plug-in in the Add-in Manager.
  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.

Using automation with the Adobe Flex Component Kit for Flash CS3
You can create Flex controls, containers, skins, and other assets in Flash CS3 Professional, and then import those assets into your Flex application. When you want to automate an application that uses such assets, you must include the automation_flashflexkit.swc library.

If you are using run-time loading, re-compile the runtimeloading.swf file by using the build.bat file in flex_builder_root\sdks\3.0.0\templates\automation-runtimeloading-files\. The batch file includes the necessary libraries.

If you are compiling automation support into your application, add the automation_flashflexkit.swc to your include-libraries compiler option. This is in addition to the other automation SWC files. The SWC files are located in the flex_builder_root\sdks\3.0.0\frameworks\libs directory.