MACROMEDIA FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL Applications
FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL MACROMEDIA Other PDF Applications (30 pages)
Text of MACROMEDIA FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL Applications
MACROMEDIA FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL © 2007 Adobe Systems Incorporated. All rights reserved.
Testing Flex™ Applications with Mercury QuickTest Professional™
If this guide is distributed with software that includes an end-user agreement, this guide, as well as the software described in it, is
furnished under license and may be used or copied only in accordance with the terms of such license. Except as permitted by any
such license, no part of this guide may be reproduced, stored in a retr
Chapter 1: Working with QuickTest Professional . . . . . . . . . . . . . . 5
Introduction to the testing process. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
Deploying Flex files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
About the Flex installed testing files . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
About the testing environment . . . . . . . . . . . . . . . . . .
Working with QuickTest
Professional
This topic describes how to work with Mercury QuickTest Professional™ and Adobe Flex
applications.
Contents
Introduction to the testing process. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Test creation overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Recording tests. . . . . . . . . . . . . . .
MACROMEDIA FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL Working with QuickTest Professional
Before you can test a Flex application, a Flex developer compiles a SWF file for you. The
developer also provides you with an HTML file that embeds the SWF file in it. This is known
as the HTML wrapper. You deploy these two files to any web server.
Some Flex applications require the use of external resources, such as web services or remote
objects, so you should ensure that your web server can access these resources. Y
Introduction to the testing process
7
About the Flex installed testing files
The Flex support for QTP requires that you install two ActiveX plug-ins on the testing
machine. These plug-ins provide the necessary communication layer between Flex and QTP.
One plug-in runs inside of QTP, and the other runs inside the browser. The browser plug-in is
signed, and is designed to run in Microsoft Internet Explorer 6 on Windows only. Together,
these plug-ins ensure t
Working with QuickTest Professional Test creation overview
When you record a test, QTP records the lines of the test script correlating to each action that
you performed. Each line typically represents an action that you carried out on a component
that appears on the screen. Those components are called objects and the actions you perform
on them (such as clicking a button) are called operations.
The basic building block of a test is the test object. Obje
MACROMEDIA FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL Test creation overview
9
Operations are actions that you perform on objects. They are equivalent to a Flex event, but
are generally at a higher level. For example, when you click on a Button, QTP records a “click”
operation. QTP does not record the mouseDown and mouseUp events, which essentially
make up the click event.
Each operation has one or more arguments that define information about the event. This
information includes details such as what keys
Working with QuickTest Professional The following example shows a Flex Button control in the QTP Repository Editor:
When you run a test and interact with a Flex control, QTP does the following:
1.
Identifies the test object class that your Flex object maps to.
2. Reads the current state of the object and stores its list of description properties and values.
3. Assigns a unique ID to use to identify the object in the scripts. QTP can use one or more
of t
Test creation overview 11
About the application hierarchy
In the object repository, objects are stored in a hierarchy. The root of the hierarchy is the
browser. The next element is the Flex application. Under that are the containers and controls
that make up the application.
In the QTP Object Repository and Keyword View, a tree-like structure represents the levels of
containers in the application. In general, the hierarchy follows the way the application a
MACROMEDIA Other Owners Instructions:
| Device Model | Type of Document | Pages | Size | Views | Downloads | Updated |
|---|---|---|---|---|---|---|
FLASH MX 2004 - ACTIONSCRIPT |
816 | 777 | 125 | 26-05-2026 | ||
FLASH 8-USING FLASH VIDEO ENCODER |
30 | 24 | 4 | 05-05-2026 | ||
BREEZE PRESENTER |
106 | 1209 | 182 | 17-09-2026 | ||
COLDFUSION 5 - CFML |
36 | 1089 | 207 | 28-07-2026 | ||
COLFUSION MX 7-CFML |
1108 | 54 | 11 | 09-05-2026 | ||
BREEZE |
10 | 1463 | 337 | 21-08-2026 |