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 |
hi, i was adding the two numbers in qtp scripts but i didn't get the answer. see my below script, i dont know wht is the problem. i passed the value a=3 b= 2, i got the ans 32 instead of 5. i thing the problem is to be c = a+b my mail id karthis4u@gmail.com Dim a, b, c a = inputbox("enter the a ") b = inputbox("enter the b ") c = a + b print c
What is the difference between rational rose and QTP?
What is the use of "New Property" in "Add properties" of testobject properties in object repository. How can i use "New properties" while writing scripts if i have assign some values to the testobject properties Can anyone help me? plz
I have qtp 9.5 demo ver,I am not able to record the yahoo broeser.so anyone can tell me what setting i have to do in QTP for yahoo brower recording. why its not recognise the object of yahoo browser????
Step 3&4 are repeated until an the object in recognised uniquely.
While spliting an action in QTP 10.0 getting an error : "This Line is a part of Script Block.You cannot split the action on this line." how to re-solve this and split the script into actions?
DIFFERENT RUN MODE IN QTP..1-VERIFY MODE 2-UPDATE MODE 3- dEBUG MODE. My question is in whic sitution we use these modes Explain me with example
What is test object?
I need your help in the below topic using QTP Automation tool. How to automate the right click of mouse on a context menu? 1)Tried low level recording which is working fine but making use of co-ordinates. 2) Also tried changing the mouse settings and properties using Tools ->WebEvent RecordingConfiguration and created a configuration file with required mouse click events and used which did not work.
can u tell me website address of VBscript with examples.
what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?
Hi I know two types of testing processes. 1. Reaquirments stage,test design,code review's, Design review's, Test Plan, Test Cases design, test execution, Defect Reporting and tracking, UAT, Signoff. 2.Test Initiation , Test Plan, Test Design, Execution,Bug tracking, UAT, Sign off.