Adobe
Products
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Student and Teacher Editions
More products
Solutions
Creative tools for business
Digital marketing
Digital media
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Buy
Home use for personal and home office
Education for students, educators, and staff
Business for small and medium businesses
Licensing programs for businesses, schools, and government
Special offers
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
My products and services
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out My orders My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / Flex Developer Center / Samples /

Random walk component: Automation-ready sample application

by Adobe

Adobe logo

Modified

31 May 2011

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
Adobe AIR components Flex

Requirements

User level

Intermediate

Required products

  • Flash Player 10.2

Additional Requirements

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

LiveCycle Data Services ES2 Express

  • Download now

QTP resources

  • Mercury QTP 9.1 or later
  • The Flex QTP plug-in

Sample files

  • Download the Flex sample that has automation disabled: randomWalk_noAT.zip (ZIP, 17k)
  • Download the Flex sample that has automation enabled: randomWalk.zip (ZIP, 18k)
  • Download the AIR sample that has automation disabled: randomWalk_AIR_noAT.zip (ZIP, 20k)
  • Download the AIR sample that has automation enabled: randomWalk_AIR.zip (ZIP, 22k)

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.

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

Products

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • Mobile Apps
  • Photoshop
  • Touch Apps
  • Student and Teacher Editions

Solutions

  • Digital marketing
  • Digital media
  • Web Experience Management

Industries

  • Education
  • Financial services
  • Government

Help

  • Product help centers
  • Orders and returns
  • Downloading and installing
  • My Adobe

Learning

  • Adobe Developer Connection
  • Adobe TV
  • Training and certification
  • Forums
  • Design Center

Ways to buy

  • For personal and home office
  • For students, educators, and staff
  • For small and medium businesses
  • For businesses, schools, and government
  • Special offers

Downloads

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy Policy and Cookies (Updated)

Ad Choices

Reviewed by TRUSTe: site privacy statement