Showing posts with label qtp. Show all posts
Showing posts with label qtp. Show all posts

Sunday, April 19, 2009

Flex automation testing with QTP

QTP can be used to test the Flex application. You need to perform following steps to setup recording a flex application with qtp.

  1. Install QTP 9.2
  2. Install Internet Explorer
  3. Install flash player debug version for IE
  4. Install Flex Builder 3
  5. Install QTP plugin of flex from FLEX_BUILDER3/Installers/QTP_Plugin_Installer
  6. Compile your flex application with automation libraries. It can be done in two ways; either use -include-libraries parameter in Flex Builder3 or use mxmlc ant task. This step is must otherwise QTP will not recognize the flex application
  7. To record a test in QTP, you must compile the application’s SWF file and generate the HTML wrapper files. The main wrapper file defines the application as an object on the page and embeds it so that Flash Player is invoked when the page is requested. You cannot request the application’s SWF file directly. You can write the HTML wrapper yourself, or generate it with the compiler.
  8. Start QTP
  9. QTP wil show the all plugins on startup, select the flex plugin and continue
  10. Start recording for your flex application.