Chapter 2: Advanced Concepts; Working With Containers - Adobe FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL Manual

Testing flex applications with mercury quicktest professional
Table of Contents

Advertisement

CHAPTER 2
2
Advanced Concepts
This topic describes advanced concepts when using Mercury QuickTest Professional to test
Flex applications.
Contents

Working with containers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

Working with Repeater objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Working with data-driven and List-based controls. . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Limitations of automated testing with Flex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Working with containers
In general, Mercury QuickTest Professional (QTP) reduces the amount of detail about nested
controls in the testing script. It removes containers that have no impact on the results of the
test or on the identification of the controls from the script. This applies to containers that are
used exclusively for layout, such as the HBox, VBox, and Canvas containers, except when they
are being used in ViewStack, TabNavigator, or Accordion containers. In these cases, they are
added to the hierarchy to provide navigation.
When using nested containers, you should be wary of ID conflicts. It is possible for containers
with multiple tabs (such as Accordion and TabNavigator containers) to have the same label on
more than one tab. These containers derive their IDs from the tab labels, therefore, there
could be overlapping IDs.
QTP does not record layout containers in the scripts unless you execute an event on that
container. This keeps the test objects from becoming too deeply nested, which makes the
testing scripts less readable.
For more information on the application hierarchy, see
"About the application hierarchy"
on page
11.
21

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