User Guide

22 Advanced Concepts
Working with Repeater objects
Repeater objects are visible in the QTP object hierarchy and scripts, and contain the child
objects that they have created. In an actual Flex application, these child objects are children of
the main container and not the Repeater object. In QTP table checkpoints, both models are
accounted for; the child objects are visible as children of the container and the Repeater
object.
Working with data-driven and List-based
controls
To work properly with automation, a custom item renderer object for a List-based control
must be data-driven. For generating table checkpoints, data is pushed onto a single item
renderer, and then values are queried. If an item renderer is not data-driven, the values
generated are incorrect.
If data that is displayed in a List-based control changes across tests, you should use an index-
based approach for recording. Value-based recording fails in this situation.
Troubleshooting
There are some common problems and resolutions when you use QTP to test your Flex
applications.
General troubleshooting
You can solve some common problems by ensuring the following information about your
environment and application:
ActiveX version of the debugger version of Flash Player 9 (version 296) is installed.
Flex/QTP plug-ins are installed.
The application was compiled using Flex 2.0 with the new frameworks.swc file that
supports automated testing.
The application is running in Microsoft Internet Explorer.
The application is loaded through an HTML page, with an <object> tag that has an id
attribute set. The
id attribute contains no periods or hyphens.
The application is loaded either from a web server or locally from a trusted SWF file.