Accessibility

Random walk component: Automation-ready sample application

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 process of enabling a custom component to support the Flex automation framework is called instrumentation. If you extend an Adobe Flex component, such as the Button component, you are not required to do anything else to make that component testable. If you create a component that inherits from the UIComponent class however, you must instrument that class to make it automation ready. This sample shows how to instrument the RandomWalk custom component so that your application records your user’s interaction with the component and can be played back using an automation tool like Mercury QuickTest Pro Version 9.1 (QTP) or later.

RandomWalk component with automation disabled

In this sample application, you can use the RandomWalk component with automation disabled.


RandomWalk component with automation enabled

In this sample application, you can use the RandomWalk component with automation enabled.


Requirements

To view this sample application, you need the following software and files:

Flash Player 9

To run the application, you need the following software and files:

LiveCycle Data Services ES Express

QTP resources

Sample files

Additionally, make sure to use the following steps before using this application:

  1. Prior to running this sample, you should have installed Mercury QTP or later and Flex QTP plug-in. To verify that the everything has installed correctly automated testing installs have gone through correctly, you can open QTP and record and play interactions with the random walk sample.
  2. Copy "TEAFlexCustom.xml" in the ZIP file, to your QTP Plugin "C:\Program Files\Adobe\Flex Automation\Flex 2 Plug-in for Mercury QTP"
  3. Open this application in Microsoft Internet Explorer, version 6 or later

For more details please refer to "Creating Applications for Testing" chapter in Using the Automated Testing API in the Adobe LiveDocs documentation.

LiveCycle Data Services ES features

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