background image
<< Why Use Synchronization Points | Inserting a Synchronization Point During Editing >>
<< Why Use Synchronization Points | Inserting a Synchronization Point During Editing >>
Inserting Synchronization Points
Adding Features to Scripts
8-10
Inserting Synchronization Points
You can insert a synchronization point into a script (through Robot) or into a suite
(through TestManager).
þ
Into a script ­ You can insert a synchronization point into a script in one of the
following ways:
­
During recording, through the Sync Point toolbar button or through the
Insert menu.
­
During script editing, by manually typing the synchronization point
command name into the script.
Insert a synchronization point into the script to control exactly where the script
pauses execution. For example, you can insert a synchronization point command just
before you send a request to a server.
You should also use this method if the synchronization point will depend upon some
logic that you add to the script during editing.
þ
Into a suite ­ You can insert a synchronization point into a suite through the
TestManager Synchronization Point dialog box.
Insert a synchronization point into the suite to pause execution before or
between scripts rather than within a script. In addition, inserting a
synchronization point into a suite offers these advantages:
­
You can easily move the location of the synchronization point without
having to edit a script.
­
The synchronization point is visible within the suite rather than hidden.
A script can have multiple synchronization points, each with a unique name. The
same is true of a suite. A given synchronization point name can be referenced in
multiple scripts and/or suites.
The following sections describe the various ways to insert synchronization points.
Inserting a Synchronization Point During Recording
To insert a synchronization point into a script during recording:
1. If the Session Insert floating toolbar is not already displayed, click the Insert
button on the Session Record floating toolbar.