by Adobe

adobe_logo_bio

Created

4 June 2007

Requirements
 
User level
Required products
Intermediate
Flash Player 9

 
Additional Requirements

 
Sample files
Note: This article was created based on Flex 2. Minor changes in the description and code may be necessary before it can be applied to Flex 3.
 
The Automation API in Adobe Flex can be used for many tasks, including collection of metrics, functional testing, and co-browsing. An agent facilitates the communication between the Flex application and automation tools such as Mercury QuickTest Pro 9.1 (QTP) or later or the metric recording tool. The two sample applications below show you features in the new Automation API, which is part of Adobe LiveCycle Data Services ES.
 

Custom automated testing agent

This sample illustrates how you can create a custom automated testing agent that records and replays user interaction with a Flex application. For more details, see "Creating Custom Agents" chapter in the Using the Automated Testing API documentation in the Adobe LiveDocs.
 

Custom recording agent

Additionally, you can create a custom agent that records metrics data as the user interacts with an application as the following sample code illustrates. The recorded data can be sent to a database for future analysis of user interaction patterns. For more details please refer to "Creating Custom Agents" chapter in Using the Automated Testing API in the Adobe documentation.
 
Note: You do not need to have Mercury QTP or the Flex QTP plug-in to run this sample. You can download the source code for these two samples in the Requirements section below.
 
In the custom automated testing agent sample application above, you can try the functionality of the automation API in the testing and recording agents.
 

 
LiveCycle Data Services ES features

The Flex Automation Framework is included as a part of LiveCycle Data Services ES.