QTP Synchronization

In this you will learn how QTP Synchronization is useful in QTP Script while preparing the Test Script for particular Test Cases for example loading of web pages which is having Ajax calls etc.
QTP Synchronization
QTP Synchronization

What is Synchronization?

Synchronization point it is a time frame between the two steps in test script in order to overcome Ajax loading problems.Some times applications will not respond in expected time frame for examples
  • A progress bar to reach 100%.
  • Successful message to appears.
  • PDF file to open in success page.
  • Form submission loading.
  • Particular button to enable after entering some data.
  • Window or Pop Up to appear in the screen.
QTP Tool handle this type of problems with Synchronization point in any applications may be it is Desktop , Web applications.QTP waits until certain step is ready in application under test. In QTP there are three types of points those are
  • Synchronization
  • Wait
  • Increase Time Out
Wait you can mention in Test Script as 

Browser("softwaretesting").Page("BestOnlineCourses").Link("QTP Tutorials").Click
wait(5)

Here in Synchronization point we will mention as below

Browser("softwaretesting").Page("BestOnlineCourses").WaitProperty("PropertyName","Property Value",Time In Milliseconds)

Example:

Browser("Gmail").page("Gmail Login").Waitproperty "Button","Submit",5000

Default time for QTP to Wait is 20 Seconds we can increase time in settings and here in Synchronization we can mention any value according to given value QTP wait to identify the object.

Conclusion:

Thank you for reading above topic ,i wish by this topic you learn Synchronization in QTP, Please provide your valuable suggestions or comments in case i miss anything in this topic.Please share my posts so that any one person can get good knowledge on this topic.

Post a Comment

1 Comments

  1. This site was... how do I say it? Relevant!!
    Finally I have found something which helped me.
    Thanks a lot!

    ReplyDelete