how can u put synchronization point in qtp,wat is exactly
synchroniztion why we use it wat is benifit in qtp
Answer Posted / kamakshya prasad podh
QUESTION: what are the different opens that we can use to
synchronize the test?
Answer: By using
i) Synchronization Point i.e Sync
ii) WaitProperty Method
iii) Wait Statement/Exist statement
QUESTION: Use of Synchronization i.e Sync Method
Answer:
‘The following example uses the Sync method to complete the
navigation to the specified page.
SystemUtil.Run "iexplore.exe","www.cnn.com"
Browser("Google").Page("CNN.com - Breaking News,").Sync
Browser("Google").Navigate "http://www.cnn.com/"
Browser("Google").Page("CNN.com - Breaking News,").Link
("Health").Click
wait(10) ‘wait for 10 sec
browser("Google").Back
QUESTION: Use of Exist Method
‘The following example uses the Exist method to check
whether the
'Search Flights image exists five seconds after it clicks
the
'Login image.
Browser("Mercury Tours").Page("Mercury Tours").Image
("Login").Click 0, 0
Wait (5)
Browser("Mercury Tours").Stop
If Browser("Mercury Tours").Page("Welcome to Mercury").Image
("Search Flights").Exist Then
MsgBox "The Image Exists."
Else
MsgBox "Cannot find the Image."
End If
QUESTION: Use of WaitProperty Method
Waits until the specified object property achieves the
specified value or exceeds the specified timeout before
continuing to the next step.
‘The following example uses the WaitProperty method to wait
for the
'Google Search edit box to be enabled before setting its
value to 'QTP Script'.
'If it is still disabled after the test's
'Object Synchronization Timeout time has been exceeded, it
will not
'perform the Set method.
If Browser("Google").Page("Google").WebEdit
("q").WaitProperty("disabled",0) Then
browser("Google").Page("Google").WebEdit
("q").Set "QTP Script"
browser("Google").Page("Google").WebButton("Google
Search").Click
End If
'If Browser("google").Page("index").WebEdit
("Account").WaitProperty("disabled", 0) Then
' Browser("index").Page("index").WebEdit("Account").Set
("123")
'End If
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)
How to integrate the qualitycenter with qtp
i need to add 1000 users in a domain i written the script for that and it is running successfuly but the problem is that my system is not the user of that domain in which i have to add users so for adding users in that domain i have to install qtp on that another system, can anybody suggest me the way to add those users from my system ultimately i want to know how to access remote computer through script
Can we create a qtp test from qc?
Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?
Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.
write script for bitmap image?
What is the quicktest professional testing process?
In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?
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.
Can any body please tell me the steps of keyword driven framework 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
Why is action split used by qtp?
how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?
What is post recovery scenario?