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
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format, if possible, kinldy mail PDF file to my mail-ID: ramakrishna908@gmail.com Regards, krishna.
How to handle the exceptions using recovery secnario manager in quicktest professional?
What are the different types of recording modes in qtp? Which will be used when?
What are the recording modes in wave event?
Can anybody post some real time scenario in qtp? please its very urgent.
How can you handle exceptions in qtp?
Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.
How many types of trigger events are there in qtp?
How to integrate the qualitycenter with qtp
what is review
What are the major/ important methods, functions in QTP we use realtime testing
how to write xml output check point bu useing descriptive programing .means without useing output check point
How do you create regression test packs?
Hi Guys, I want to place all of my values which i am getting it from a loop in to a global shee. For that i had written the script like this For i = 1 to ECOs-1 ECO = List(i).GetROProperty("innertext") DataTable.AddSheet("ECOList") DataTable.GetSheet("ECOList").AddParameter "ECOList",ECO AbortECO = DataTable.GetSheet("ECOList").GetParameter ("ECOList").Value msgbox AbortECO DataTable.GetSheet("ECOList").SetNextRow Using the above script, whenever the loop iterates it is creating new column "ECOLIST" in the sheet called "ECOLIST". It means, the values are displaying in the column wise even though i added the script " DataTable.GetSheet("ECOList").SetNextRow" . The cursor is not moving to the next line. Anybody help me out how to pass the values from script to the excel(Global/Local) sheet. Pls let me know @ nbabu11@gmail.com if you are not clear about the question.
Suppose you are using shared objects repository in your test and you want to split your present action? At that time shared object repository is single or it’s also splits?