How to open an application through scripting?
Answers were Sorted based on User's Feedback
Answer / sadiq
Hey here are the simple steps for opening the
application through scripting
a="C:\Program Files\Internet Explorer\iexplore.exe"
b="www.yahoo.com"
systemutil.run a,b
| Is This Answer Correct ? | 15 Yes | 0 No |
Answer / sharath
We can use SystemUtil.run method or InvokeApplication
statement to open the application
| Is This Answer Correct ? | 14 Yes | 3 No |
Answer / trevor chandler
For QTP (Quick Test Pro)
You can use the following line below directly in a test in
expert view.
First parameter is the browser.
Second Parameter is the URL to navigate to
SystemUtil.Run "iexplore.exe", "C:\opt\projects\dtlt\catalin
a\functions\dtltLaunch.html"
Hope this helps.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / methuku
Browser = "IE"
StartURL = "www.hotmail.com"
IF Browser = "IE" THEN
set IE = CreateObject("InternetExplorer.Application")
IE.Visible = true
IE.Navigate StartURL
END IF
| Is This Answer Correct ? | 7 Yes | 5 No |
Answer / dinesh chouhan
'Without Systemutil or Invokeapplication
set IE=CreateObject("InternetExplorer.Application")
IE.visible=True
IE.Navigate "www.google.com"
| Is This Answer Correct ? | 0 Yes | 0 No |
Window We can using invokeapplication and systemUtil. run method
But for web we can using SystemUtil.Run
In Vb script we can using different methods
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ashok
Uday,Murugesh
i think your answers are in winrunner not QTP. I agree with
sarath.not only sarath method,some more ways are there.
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / murugesh
Suppose you trying the web application use the following
script
web_browser_invoke(URL);
| Is This Answer Correct ? | 4 Yes | 8 No |
Answer / uday
For web applications we use
web_browser_invoke(IE,"http://mail.yahoo.com/");
for other applications :
invoke_application("uday.exe","Directory
Path",SW_SHOW/SW_SHOWMAXIMISED/SW_MINIMISED);
| Is This Answer Correct ? | 2 Yes | 6 No |
How to handle Recovery scenario in QTP. give detailed explanation about recovery scenario.
Can I record on netscape browser does it require any special settings ?
how to get the particular chr in an array list the question is ....i have an array like this ABCD EBCF GBCH IBCJ HERE I NET TO GET ONLY "BC" FROM ALL HOW TO GET IT HELP ME ANY ONE THANKS
How to connect the real time application application with the QTP?
what is the difference btn risks & Therads in the Test plan documentation?
How do we retrieve the content from a text box in a web page
What are the parameters provided by QTP?
how to open Excel sheet & write in it & save it?
suppose there r 10 action in a test i want to execute action 5 to 10 how would i do that
How to capture text from image to word
how can we perform web datatable operations on webpages(Like rowcount,col count,cell data)?
How u will do versioning in QTP?