what is synchronization point, synchronization method, wait
property method? with examples.. plz explain this in brief
Answer Posted / 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 |
Post New Answer View All Answers
This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?
Explain different type of event trigger option.
Explain runtime dynamic settings?
How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?
How many types of Automation frameworks are there in UFT? Describe them.
What are the benefits of qtp?
Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John
How we can use the database checkpoint on a java web based application in which the database connectivity is done using JDBC->Pure Java type (in this type there is no need to create a DSN). At present in QTP we can fetch database values using checkpoint only through DSN. Is there any programming for this if we don't have DSN (ODBC)
Mention the test steps of qtp.
Is there any relation between Keyword Driven Framework and Recording modes provided in QTP( whether Recording modes are applied on keyword driven framework or not?)
Which features or drawbacks of QTP lead to the upgrade for a newer version?
How to customize qtp?
how to know no.of mails in our g mail by using vb-script
How do you capture tooltip using QTP?
how to test Web application using QTP software