Synchronization is used to instruct Quick Test to wait for the application process to complete before proceeding to the next step in the test.
Quick Test Professional has a default global synchronization timeout. This timeout indicates that during text execution, Quicktest waits for an object to achieve a specific status or for the timeout of the object synchronization to occur before moving on to the next step.
If a process takes considerably longer to complete, the global synchronization timeout may not sufficient for the step to complete and the next step might fail. To give these longer steps in a test enough time to complete, add a synchronization point.
Quick test Professional displays an error message if it proceeds to the next step before completing the previous steps.
29.1. Add a Synchronization Point While Recording:
A Synchronization Point must be inserted while recording.
To add a Synchronization Point:
Step 1: Click on Record Button.
Step 2: From the Quick Test Professional menu bar, select Insert>Synchronization Point. The cursor changes to a pointing Hand.
Step 3: Use the pointing hand cursor to select the object in the Flight Reservation window for which you want to add the Synchronization point. The Object Selection-Synchronization Point dialog box appears.
Step 4: Click OK. The Add Synchronization Point dialog box appears.
Step 5: From the Property Name list, select the property name and in the Property Value field, type the property value for which Quick Test should wait before moving to the next step.
Step 6: in the Timeout field, type the synchronization point timeout in milliseconds. This time will be added to the global timeout. Click Ok.
Note: we can insert the Synchronization point manually by wait (time). E.g.: wait (5).
No comments:
Post a Comment