What is the difference between wait and synchronization point?
Answer Posted / 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 |
Post New Answer View All Answers
what is stepin & stepout?
i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.
distinguish between old version and new version QTP features.
How to modify the text checkpoint?
Explain object spy in qtp.
What is fragmentation and paging?
Where we use data driver in qtp?
what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana
How can we retrieve the Bug Ids which are open&Reopen in status through QTP scrit?Please find the script which i tried... Dim objBugFactory, objBug Dim BugId Set TDConnection = QCUtil.TDConnection Set objBug = TDConnection.BugFactory If QCUtil.IsConnected then Reporter.ReportEvent 0, "Connected", "Connected to server: " + QCUtil.TDConnection.ServerName + chr (13) +"Project: " + QCUtil.TDConnection.ProjectName + chr (13) + "Domain: " + QCUtil.TDConnection.DomainName Reporter.ReportEvent 0, "Current time on server is","==>" & TDConnection.ServerTime Else Reporter.ReportEvent 1, "Not connected", "Not connected to Quality Center" End If If mybug.Status="Open" Then BugId=mybug.DefectId MsgBox BugId End If 'OR**********************************--------------------- -----********************************** If Bug_Fields("BG_STATUS").Value ="Open" Or "Re Open"Then BugId=Bug_Fields("BG_BUG_ID").Value MsgBox BugId End If
What is QTP testing process?
How to export quicktest professional (qtp) results to an .xls file?
How to do call a output parameter from one action to another action??/
Object repositories types, which and when to use?
Explain types of output values?
is there any addin for remedy user application