User Guide
5
1
CHAPTER 1
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. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
About the testing script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
About operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Using checkpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
Using common methods and properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Playing back Flex tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Introduction to the testing process
Large, complex applications must be tested to make sure that user interactions do not create
run-time exceptions and that connections to data services are functioning properly.
This document assumes that there are two roles in the testing process: the QA testing
professional and the Flex developer. It assumes that the QA testing professional does not know
how to develop Flex applications and does not have access to the Flex source code, the Flex
compiler, or the Flex documentation. The Flex developer, on the other hand, does not
necessarily know how to use a testing tool, such as Mercury QuickTest Professional (QTP).
Flex documentation for developers includes a set of guidelines for creating testable
applications. These guidelines include instructions on how to compile testable applications,
how to instrument custom components so that they can be tested, and how to write
applications so that the testing process works more smoothly. For information about the
guidelines, see the Flex 2 Developer’s Guide.