you written some code in qtp for opening google.com browser
and entered some text inthe search text box and clicked
search button. this is ur script..
before running this script i have already opened two
google.com browsers.
now am running the script what will happen?
script will run or what??
Thanks...
Nani
Answers were Sorted based on User's Feedback
Answer / maniram
I Guess this depends on how u have recorded the script.
Case1:
if u have recorded the script with many google
pages(windows) open, as there are many windows open, QTP
identifies the ordinal identifier and stores it in the
repository.
So if we run the script, in this case you will not encounter
any problem even if there are hundreds of such windows.
Case2:
If u have recorded the script with only one google window,
QTP will not store the Ordinal Identifier as it can clearly
identify the window we have specified.
So if we run the script, after opening many google windows,
QTP cannot identify the window in which it has to perform
the operations. so it returns an error.
Is This Answer Correct ? | 10 Yes | 2 No |
Answer / rajendra prasad reddy
Yes Nani even if u opend google the browser,if run another
script,script will open another web page and performs
wat ever u wrote in that script.
For example i am providing a script for opening a
google.co.in web page and seraching for 'search' on goolge.
Code:
Set IE = CreateObject("InternetExplorer.Application")
IE.Navigate "http://www.google.co.in"
IE.Visible = True
Wscript.Sleep 8000
IE.Document.All.Item("q").Value = "serach"
IE.Document.All.Item("f").submit()
Copy above code in notepad abd save it serach.vbs on desk
top.
then click on file after saving it desk top.
this scripts runs and opens goog.co.in web page.
if u click once again it will open again a web page.
If u have any doubt please mail me
byee
Rajendra Prasad Reddy
rajendra_penumalli@yahoo.com
Test engineer
Hyderabad
Is This Answer Correct ? | 6 Yes | 2 No |
Answer / priya
For example if 2 google browsers are open, QTP considers
the first opened google browser during test run and
completes the test successfully
Is This Answer Correct ? | 0 Yes | 8 No |
i have asked earlier only one question how to test web application using QTp plz send me the answer quickly
What are the Features & Benefits of Quick Test Pro ?
Hi all please solve this.It is urgent..... When I right clicked on a Web image manually It displayed Open link,open link in new window,save picture as, Email picture,Printpicture,propeties...etc. While automation I have written a code like this 'browser("Google").Page("ramseeker®: Memory and_3").Image ("graphOfModel").Click 10,10,micRightBtn But the right click menu was not displayed. I want to save that image in a seperate folder
Is there any option in QTP to add Java add-in after instaling the QTP?
How to compare the two strings?
How is a Step generator used in UFT?
Pls answer this: What is the difference between a subroutine and a function? A. A subroutine can call itself; a function cannot B. A function returns a value; a subroutine cannot C. A function can accept arguments; a subroutine cannot. D. A subroutine can call other procedures; a function cannot.
Can anybody post some real time scenario in qtp? please its very urgent.
How can we close all webbrowsers which are opened in out desktop?
Explain in brief about the QTP Automation Object Model.
can onyone tell me how to comapre the output of two different Data Bases in QTP?
can i automate java web application using qtp web addin only not using java addin