Professional Documents
Culture Documents
Module Objectives:
Synchronization
If you do not want UFT for GUI Testing to perform a step or
checkpoint until an object in your application achieves a certain
status, you should insert a synchronization point to instruct UFT for
GUI Testing to pause the test until the object property achieves the
value you specify (or until a specified timeout is exceeded).
Synchronization
If you do not want UFT for GUI Testing to perform a step or
checkpoint until an object in your application achieves a certain
status, you should insert a synchronization point to instruct UFT for
GUI Testing to pause the test until the object property achieves the
value you specify (or until a specified timeout is exceeded).
Understanding Synchronization
Synchronization is used to instruct UFT for GUI Testing to wait for the
application process to complete before proceeding to the next
step in the test.
For example, users can see when the application has completed
its processing and is ready to proceed. The UFT for GUI Testing
CS-6306 UNIFIED FUNCTIONAL TESTING
Adding Synchronization Page|3
tool uses synchronization to simulate this behavior before
moving on to the next step in the test.
You can insert a synchronization point, which instructs the UFT for
GUI Testing tool to pause the test until an object property achieves the
value you specify. When you insert a synchronization point into your
action, a Wait Property statement is added to the action.
You can insert Exist or Wait statements that instruct the UFT for GUI
Testing tool to wait until an object exists or to wait a specified amount
of time before continuing the test.
You can modify the default amount of time that the UFT for GUI
Testing tool waits for a Web page to load.
When working with tests, you can increase the default timeout
settings for a test to instruct UFT for GUI Testing to allow more time
for objects to appear.
If you find that, in general, the amount of time UFT for GUI Testing
waits for objects to appear or for a browser to navigate to a specified
page is insufficient, you can increase the default object
synchronization timeout values and the browser navigation timeout
values for your test.
Alternatively, if you insert synchronization points and Exist and/or
Wait statements for the specific areas in your test where you want
UFT for GUI Testing to wait a longer time for an event to occur, you
might want to decrease the default timeouts for the rest of your test.
Object Synchronization
When you add a synchronization point in a test, you specify a
Timeout value for the synchronization point. This timeout value is
known as a synchronization step timeout value. The synchronization
step timeout value is added to the global timeout value.
This pane applies to the entire test. You can set the run
properties for an individual action in a test from the Run tab in the
Action Call Properties dialog box of a selected action.
You can use this pane to instruct UFT for GUI Testing to run
iterations on a test only for certain lines in the Global tab in the Data
pane.
Run one iteration only – Runs the test only one time, using only the
first row in the global data table.
Run on all rows – Runs the test with iterations using all rows in the
global data table. ␣
Run from row to row – Runs the test with iterations using the
values in the global
When error occurs during run session – Specifies how UFT for GUI
Testing responds to an error during the run session.
Note: When working with Web objects, UFT for GUI Testing waits
up to the amount of time set for the Browser navigation timeout
option, plus the time set for the object synchronization timeout.
Note: When you select this option, the Enable Smart Identification
check boxes in the Object Properties and Object Repository windows
are disabled, although the settings are saved. When you clear this
option, the Enable Smart Identification check boxes return to their
previous on or off setting.
CS-6306 UNIFIED FUNCTIONAL TESTING
Adding Synchronization Page|6
Save image of desktop when error occurs (if test is run by the HP
Business Process Monitor) – This option is applicable only to tests
that are run by the Business Process Monitor component of HP
Business Availability Center.