Automation testing of AIR Apps now in Flash Builder 4 beta!!!

1 06 2009

Automation testing of Flex applications using QTP has been there for a long time But the FlashBuilder 4 (Beta version ) now also provides you with a way to Automate AIR applications as well!!Adobe now provides you with the QTP-AIR plugin along with the QTP-Flex plugin.

How to make your AIR application automatable.

To make your AIR app automatable you will need to statically compile your AIR app with the automation swcs.

Steps to do this:

  1. Select the AIR project within Flash Builder and go to Project->Properties->flex Compiler and add this
  2. -locale en_US -include-libraries “[flashbuilder path]\sdks\4.0.0\frameworks\libs\automation\automation.swc” “[flashbuilder path]\sdks\4.0.0\frameworks\libs\automation\automation_air.swc” “[flashbuilder path]\sdks\4.0.0\frameworks\libs\automation\automation_dmv.swc” “[flashbuilder path]\sdks\4.0.0\frameworks\libs\automation\automation_agent.swc”  “[flashbuilder path]\sdks\4.0.0\frameworks\libs\automation\qtp_air.swc”
  3. Click on Ok
  4. Go To Project->Clean
  5. Ensure that the Flex 4Plugin for QTP has been installed on top of QTP and the AIR add in has been selected in the QTP Add-in manager screen.
  6. Start QTP.
  7. Run the AIR app.
  8. If you get an alert message saying “Successfully connected to QTP ” .That means you are ready to go!!



2 responses

22 02 2010

Since Flex SDK 4.0 is still BETA version my developers are not agreed to upgrade to 4.0 version. Now they are using SDK 3.5 version. Is there any way to automate the AIR application which is developed with Flex SDK 3.5. Please let me know if there is a way.


23 02 2010

Hi Nanda
Im sorry but the AIR Automation feature has only beein incoperated with the flex 4 sdk and you will not be able to use this with the 3.5 sdk.But Flex 4 will be releasing in march end so maybe you can wait till then .Or you can check with Silktest or RIAtest there might be supporting this option.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: