QTP Training Session3-Synchronisation

You might also like

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 9

QTP- Synchronization Point Session -3 VeriTest, Chennai

Session-3: Agenda
What is Synchronization point When to use Synchronization point How to insert a Synchronization point Types of Synchronization point statements File Types Q & A

What is Synchronization point

Synchronization point instructs the quick test to pause the test until an object property achieves the specified value. It provides time for an object to process before moving on to the next step It enables you to solve anticipated timing problems between the test and your application

When to use Synchronization point


When you run a test, your application may not always respond with the same speed.For example:

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

How to insert a Synchronization point


To insert a synchronization point:

1. Begin recording your test or component.


2. Display the screen or page in your application that contains the object for which you want to insert a synchronization point. 3. In QTP, choose Insert > Synchronization Point. The mouse pointer turns into a pointing hand. 4. Click the object in your application for which you want to insert a synchronization point.

Contd..

5. Select the property name and enter the property value in the Add Synchronization point dialog

6. Select the timeout value and click OK button

Example
Ex: Synchronization point for an OK button

Types of Synchronization point statements

WaitProperty:

Dialog("Login").WinButton("OK").WaitProperty "enabled", true, 10000


Wait :

Wait (2)

Files Types in QTP

Script - .mts (Modular Test Script) Object Repository - .tsr (Test Resource) Library File - .vbs (Visual Basic Script) Recovery Scenario File - .qrs (Quick Resource File)

Batch File - .mtb (Module Test Batch)


Excel File - .xls Result File - .res

You might also like