How to do Synchronizing in QTP in Testing

How to Synchronize Your Test
When running a test, an application might not always respond with the same speed; e.g., it might take a few seconds:

syn.jpg

  • For a button to become enabled
  • For a progress bar to reach 100%
  • For a window or pop-up message to open
  • For a status message to appear

    syn 2.jpg
Using Synchronization we can handle these anticipated timing problems by synchronizing your test to ensure that QuickTest waits until your application is ready before performing a certain step.

syn5.jpg

Options to synchronize your test
  1. We can modify the default amount of time that QuickTest waits for a web page to load.
  2. We can insert a synchronization point, which instructs QuickTest to pause the test until an object property achieves the value you specify. When you insert a synchronization point into your test, QuickTest generates a WaitProperty statement in the Expert View.

    syn6.jpg

  3. When working with tests, we can increase the default timeout settings for a test in order to instruct QuickTest to allow more time for objects to appear.
  4. We can insert Wait or Exist statements that instruct QuickTest to wait until an object exists or to wait a specified amount of time before continuing the test.

    syn7.jpg


Up Next
    Ebook Download
    View all
    Learn
    View all