Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
It is critical for script playback to stay synchronized with the application it tests. In Chapter 1, “Overview of Rational Functional Tester,” you saw that Rational Functional Tester had playback settings that enabled you to increase the amount of time it would wait for a GUI object to render. The playback settings affect all scripts, not just the ones with which you are experiencing issues. Further, they are specific to each installation of Rational Functional Tester. You need to be cognizant of this when your team members want to run your scripts from their installations.
This section focuses on building synchronization right into your scripts. You learn how to free yourself from the dependencies of installation-specific, global playback settings. Topics covered include:
Creating general delays in your scripts using the sleep() methods
Introducing intelligent delays into your scripts using the waitForExistence() methods
Writing delays that are triggered by object properties
Using timers to understand how long a piece of your script takes to execute
The aim of this section is to help you become familiar with enhancing Rational Functional Tester’s default synchronization without being dependent upon global settings. If you build the necessary delays into your scripts, you can take advantage of them from any installation of Rational Functional Tester without the need to adjust playback settings.