Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is synchronization point, synchronization method, wait
property method? with examples.. plz explain this in brief

Answers were Sorted based on User's Feedback



what is synchronization point, synchronization method, wait property method? with examples.. plz e..

Answer / nilanjan saha

Hi ,

The name "Synchronization Point" itself says it all.Actually
it is nothing but to inform QTP to wait till some specified
condition occurs. You can specify the conditions.

We need Synchronization Point because we are always not sure
how much time it takes for an Object to get loaded to a
page/window.

Let's take an example of "Login" page of any application.
You want to provide "UserName" in the UserName field after
opening the site via QTP.We can provide value only after
"UserName" field is visible. But sometime it may take 10
seconds for the "UserName" field to be appear in the Login
page. Sometime it may take 30 seconds (Depends upon the
internet speed).At this point QTP script fails as the object
is not displayed in the page. So here what we do through
"Synchronization Point" is to tell QTP to wait untill the
"UserName" field appears on the page, may it take 10 secs or
30 secs.


There are 2 ways (for Web Application) you can acheive this
as follows:

Quote:> Browser("").Sync (Only in case of Web App) : QTP
waits untill all the objects are loaded to the Browser

> WaitProperty (Any type of App) : QTP waits untill the
specified condition is satisfied

Following is an example of "WaitProperty"

Quote:Syntax: Object.WaitProperty "Property
Type","Property Value",TimeOut

Ex:
Browser("Login").Page("Login").WebEdit("UserName").WaitProperty
"visible",True,20000

It means that QTP will 20000 ms ,by that time if that above
editbox appears then script will run the rest of the scripts
. If in the mean time that editbox field appears with in 10
sec, then QTP will stop waiting and will continue with the
script, so thats how extra 10 secs will be not wasted.

But is case some one give hard-coded Wait(20) , then anyhow
QTP will wait for mentioned 20 sec even that editbox got
loaded earlier.


Hope that above explanation will help.

Is This Answer Correct ?    3 Yes 0 No

what is synchronization point, synchronization method, wait property method? with examples.. plz e..

Answer / harishkumar

The Time mapping between Execution time of QTP and Elapsed Time of the Application is called Synchronize Test Script
In The fallowing Scenarios we Synchronize Test Script

1. When Application Performing Some Back-End Operations like Insert,Delete, Update
2.During Application Launching(Browser navigation time out parameter)
3.When Application Open Sub window or page (Page lodingtime)
4.to reach Status bar 100% color filled


Wait Property Method:using this method we can pass the Execution based on Application Object Property value as reference

Syntax:


Hierarchy of the Object . WaitProperty propertyname , propertyvalue

Is This Answer Correct ?    2 Yes 0 No

what is synchronization point, synchronization method, wait property method? with examples.. plz e..

Answer / nitin sharma

Synchronisation is a process which we use for performing
better excecution and results in QTP.
Why we use: QTP gives instruction one by one with the same
speed while AUT have more speed for some operation of
exceution and less speed for some operation of
excution.So,for better results and execution we use
Syncronization process.
We can use it by inserting:
1.Sync Property:It allows specific time for page to
navigate until it goes to next step.for eg: Browser
("Google").Page("Google").Sync
2.Wait Property:Here we are forcing QTP to wait before
going to next step.Suppose we have given Wait(10) and
object can display in 6 sec then it will wait for 4 sec
more. Systemutil.Run"http://www.google.com/"
Wait(10)
3.Inserting Synchronization points:We can insert through
Insert>Syncronization point.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More QTP Interview Questions

how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?

0 Answers   IBM,


How can we see the analog recording steps in QTP..the Steps are stored in a track file with an extension .dat..how can we open the file..

1 Answers  


What is the file extension of the code file & object repository file in QTP?

2 Answers  


Do we get any issues if we run the test script on differentbrowsers?what are the options we need to set in QTP?

3 Answers   CTS,


Is text area check point supports for web applications?

0 Answers  


How can I use the value retrieved by OUTPUT VALUE check point as Input for other Actions?

1 Answers   Motorola,


hi radhaka plz tell me clearly to handle the earrors with out isng recovery scnerio this is sreenivas from delhi

2 Answers  


Can we do Load Testing with QTP?

4 Answers  


What kinds of security (firewalls, encryptions, passwords, etc.) will be required and what is it expected to do? How can it be tested?

0 Answers  


What is the use of "Registeruserfunc" when should we use it? Note:Please do not copy paste the date from QTP help. I tryed it.But I don't Understand where should we use exactly.

5 Answers   Livetek,


What is the Difference Between Quick Test Pro and Quick test professional?

5 Answers   Infotech,


what are SetToProperty, SetROProperty,GetToproperty scripting?

2 Answers  


Categories