Created

1 June 2011

 
Additional Requirements

To run the application, you need the following software and files:
 
 
LiveCycle Data Services ES2 Express
 
QTP resources
 
Sample files
Additionally, make sure to use the following steps before using this application:
 
To use Flex sample
 
  1. Prior to running this sample, you should have installed HP QTP 9.1 or later and Flex QTP plug-in. To verify that everything has installed correctly you can open QTP and record and play interactions with the random walk sample.
  2. Copy "TEAFlexCustom.xml" in the randomWalk ZIP file, to /Flex folder of your QTP Plugin – ex: "Adobe Flex 4 Plugin for HP QuickTest Pro/Flex"
  3. Create a Flex project by name randomWalk and copy all files under /src in the zip file to /src of your project. Add “-include-libraries "${flexlib}\libs\automation\automation_agent.swc" "${flexlib}\libs\automation\qtp.swc" "${flexlib}\libs\automation\automation.swc" -includes "RandomWalkDelegate"” to additional compiler arguments. Compile and run randomWalk.mxml in IE 7 or later.
To use AIR sample
 
  1. Prior to running this sample, you should have installed HP QTP 9.1 or later and AIR QTP plug-in. To verify that everything has installed correctly you can open QTP and record and play interactions with the random walk AIR sample.
  2. Copy "TEAFlex_AIRCustom.xml" in the randomWalk_AIR ZIP file, to /AIR folder of your QTP Plugin – ex: "Adobe Flex 4 Plugin for HP QuickTest Pro/AIR"
  3. Create an AIR project by name randomWalk_AIR and copy all files under /src in the zip file to /src of your project. Add “-include-libraries "${flexlib}\libs\automation\automation_agent.swc" "${flexlib}\libs\automation\qtp_air.swc" "${flexlib}\libs\automation\automation.swc" "${flexlib}\libs\automation\automation_air.swc" -includes "RandomWalkDelegate"” to additional compiler arguments. Compile and run randomWalk_AIR.mxml.
Note: These samples are created with Flex 4.5 Minor changes in the description and code may be necessary before it can be applied with other SDKs.
 
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 HP QuickTest Pro Version 9.1 (QTP) or later.