What is the difference between wait and synchronization point?
Answers were Sorted based on User's Feedback
Answer / sonal.pagare
Wait (20)
waits for 20 seconds. It’s mandatory to wait for 20 seconds.
At same place if you’re giving synchronization point and
mention 20 seconds to wait and that wait is not mandatory.
When ever the given condition becomes true below 20 seconds
then QTP immediately goes to the next step without wait for
20 seconds.
'Writing own synchronization Point
Timeout=100
For Time=1 to Timeout
Propval=window("Flight
Reservation").WinButton("Delete Order").GetROProperty("enabled")
If Propval=true Then
Exit for
else
wait(1)
End If
Next
Sync method is only available for Web.
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / uday
Wait is like a hardcore value. If you say wait(20), then QTP
waits 20 sec, even if the application is ready in 2 secs.
Where as synchronization point proceeds to execute next step
if the application\object is ready for the next statement.
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / rohit pathak
Syn - In this as soon as object finds out it starts its
process automatically ,In this command it will take care of
timings.
Wait - In this If user defined to wait at least for 10
second, then either process will complete in 4 seconds, then
tool will wait for whole 10 seconds as it is mentioned in
scripts.
Is This Answer Correct ? | 0 Yes | 0 No |
How to use transactions in qtp?
Can any one tell the different properties and values of differnt objects like Browser,Page,link,webedit,webcombobox,webradio botton,webcheckbox and web button.Because I am facing a lot of problems in interviews with Descriptive Programing.I never worked on web Application...Pls help any one as soon as possible....
Using Object Repository is a advantage or disadvantage?
What is All object and Local object in Object Repositary? Explain me please.
can anyone tell me how to search a word/line in a document and to paste it in another file? Thanks in advance.
How to make an Action as reusable?
What is descriptive programming?
What is the virtual object?
HI, Based On The Information Below Write A Data Driven test Script Edit Box 1 Should take Value From Num1 Column Edit Box 2 Should take Value From Num2 Column Click On Add Button, Get The Value Of Exp res Column, Get Value From Actual Result Edit Box , Compare Two Values, Write Pass / Fail Value Into Result Column Thanks In Advance... Kavitha Input.Xls Num1 Num2 Exp res Act res Result 10 30 40 40 Pass 50 40 90 90.5 - - - - - - - - - - - - - - - -
Can we directly automate testscripts accrdoing to requirements? WHY ?
What is data driven testing in QTP?
We stored into the objects OR and then write the scripting