Recording Tests - Adobe FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL Manual

Testing flex applications with mercury quicktest professional
Table of Contents

Advertisement

Recording tests

To record a test in QTP, you must compile the application's SWF file and generate the HTML
wrapper files. The main wrapper file defines the application as an object on the page and
embeds it so that Flash Player is invoked when the page is requested. You cannot request the
application's SWF file directly. You can write the HTML wrapper yourself, or generate it with
the compiler.
You point QTP to the wrapper file that embeds the application SWF file.
You can use Adobe Flex Builder or the command-line compilers to generate the SWF file for
you. After you pre-compile the SWF file, deploy the SWF file and the HTML wrapper files,
plus any additional assets such as Runtime Shared Libraries (RSLs), graphics, or other SWF
files, in a directory on the web server.
To record a test, you either specify that QTP runs the test on the currently open browser or
specify the location of the application as a URL. In the second case, QTP launches the
browser and passes it the request URL that you specified. You determine which method to use
in the Record and Run Settings dialog box.
In general, you should use a web server to serve the HTML wrapper to the QTP client. You
cannot request the HTML wrapper file on the file system.
To have QTP run the test on an application that is currently running in an open browser
window, select the Record And Run Test On Any Open Browser option. To have QTP open a
browser and request a URL, select the second option, as the following example shows:
12
Working with QuickTest Professional

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flex 2

Table of Contents