

UFT One (formerly QTP) is a very popular functional testing tool by Micro Focus. Navigate to "File" > "Settings" > Run Tab > Object Synchronization Time out as shown below.If you are someone who likes to learn new technologies by self, this article will help you immensely. When the user has not used any of the above sync methods, still QTP has an in-built Object synchronization timeout which can be adjusted by the user. Interest").WaitProperty "text", "Simple Interest", 10000 Step 5 − The script would be generated as shown below, which is the same as that of the WaitProperty(Method 1) that we had already discussed −īrowser("Math Calculator").Page("Math Calculator").Link("Numbers").Clickīrowser("Math Calculator").Page("Math Calculator").Link("Simple Select the Property, Value and Time out value and click OK as shown below − Step 4 − Click OK the "Add Synchronization Window" opens. After selecting the object, object window opens as shown below − Step 3 − We need to select the object, which we want to be the Sync Point. Step 2 − Go to "Design" → "Synchronization Point". This option would be disabled if the user is NOT in Recording Mode. Method 5 − Inserting QTP Inbuilt Synchronization points Sync Method can be used only for web applications where there is always a lag between page loads. Hence, usage of Wait is discouraged and can be used for shorter wait time such as 1 or 2 seconds.īrowser("Math Calculator").Page("Math Calculator").Link("Simple Interest").Click Wait is a hardcoded sync point, which waits independent of the event happened or NOT. If obj.Link("Simple Interest").Exist(30) Then Again, it is a dynamic wait and hence this option is encouraged.

Obj.Link("Simple Interest").WaitProperty "text", "Simple Interest",25000Įxist is a method that takes the Timeout value as input to perform the sync. Set obj = Browser("Math Calculator").Page("Math Calculator") ' Method 1 - WaitProperty with 25 seconds It is a dynamic wait and hence, this option is encouraged. WaitProperty is a method that takes the property name, Value and Timeout value as input to perform the sync. Let us say, we need to insert a sync point between clicking on "numbers" link and clicking on "simple Interest" calculator in " We will now take a look at all the five ways to insert sync point for the above scenario. Inserting QTP Inbuilt Synchronization points.If the time is varying then the script will fail, unless the tester handles these time differences intelligently. It depends on various factors such as the application-server response time, network bandwidth, and client system capabilities. Synchronization point is a feature to specify the delay time between two steps of the test script.įor example, clicking on a link may load the page is 1 second, sometimes 5 seconds or even it may take 10 seconds to load it completely. Synchronization point is the time interface between Tool and Application under test.
