Playing Back Flex Tests - Adobe FLEX 2-TESTING FLEX APPLICATIONS WITH MERCURY QUICKTEST PROFESSIONAL Manual

Testing flex applications with mercury quicktest professional
Table of Contents

Advertisement

You can use the common methods and properties in the Keyword or Expert views. The
following example uses the
method to check whether the
CheckProperty()
visible
property of the myList control is set to
in Expert View:
false
Browser("My Page").FlexApplication("MyApp").FlexCheckBox("myList").
CheckProperty "visible", false
For information about each of these methods and properties, see the QuickTest Professional
Object Model Reference.

Playing back Flex tests

To play back a test, you do not need to have the browser open. QTP starts the browser for
you. You must have a generated HTML wrapper that you request from QTP. You should not
request the application's SWF file directly.
In some cases, the playback may not work as expected. This is most often due to
synchronization. For example, an effect may take longer to play back than QTP expects,
which means that while the effect is playing, QTP may be trying to move to the next step in
the script. Another problem might be if you use asynchronous methods of acquiring data,
such as a web service call. The script continues even if you have not yet received data from an
web service operation.
Solutions to these problems include putting in waits or checking if an object exists before
continuing. For more information, see
"Resolving playback synchronization issues"
on page
24.

Playing back Flex tests

19

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex 2

Table of Contents