Synchronization refers to adding a step in the script that instructs Quick Test to wait for a particular object before proceeding to the next step during playback.
When do we need SYNCHRONIZATION ?
When you observe that the application takes a longer time to process information sent or respond to a client request, add a synchronization step while recording. E.g.-:
- A progress bar to reach 100%.
- A button to become enabled...
- A window or pop-up message to open.
How to Add Synchronization?
- Synchronization can be added only during recording.
- Identify the object to be synchronized.
- Navigate to the window where the object is located.
- Locate the step in the test that corresponds to the object.
- Start recording and add the synchronization point.
Two Ways of Setting Synchronization Point?
1. Global synchronization value for all Objects:
Instructs Quick Test to wait for all the objects for a specific amount of time.
MENU > TEST > SETTINGS > RUN > "Object Synchronization Timeout" : For every object in the test, Quick Test can wait a maximum number of milliseconds specified in the settings
2. Synchronization of a specific Object:
Instructs Quick Test to wait for a specific object only.
Menu > Insert > Step > Synchronization Point
Quick Test shall pause the test until the object property achieves the value specified (or until the specific timeout amount is exceeded)...
Quick Test uses one of the object’s properties as the waiting criteria. E.g. ‘Text’ property for window, ‘Label’ property for buttons etc...
No comments:
Post a Comment