How to open an application through scripting?

Answers were Sorted based on User's Feedback



How to open an application through scripting?..

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

How to open an application through scripting?..

Answer / sharath

We can use SystemUtil.run method or InvokeApplication
statement to open the application

Is This Answer Correct ?    14 Yes 3 No

How to open an application through scripting?..

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

How to open an application through scripting?..

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

How to open an application through scripting?..

Answer / yezdani

Systemutil.run "www.gmail.com"

Is This Answer Correct ?    9 Yes 7 No

How to open an application through scripting?..

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

How to open an application through scripting?..

Answer / cnu_thatavarthi

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

How to open an application through scripting?..

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

How to open an application through scripting?..

Answer / murugesh

Suppose you trying the web application use the following
script

web_browser_invoke(URL);

Is This Answer Correct ?    4 Yes 8 No

How to open an application through scripting?..

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

Post New Answer

More QTP Interview Questions

Any limitation to XML Checkpoints?

1 Answers  


The xls contain data. how to get number of columns form the sheet?

4 Answers   Virtusa,


how to do spell check in QTP? reply please

8 Answers  


what is the difference between testing and debugging?

2 Answers  


where do you store the test result?

2 Answers   HCL,






What is debugging? How you debug your script?

0 Answers  


what is descriptive programming?

5 Answers   Ordain Solutions,


what to do if application have 3 "ok" button with same logical name and same properties, how qtp can identify them.

11 Answers   Infosys, Intel,


Please mail me the license key of QTP 9.5 t v.sadangi@gmail.com ????? thx

0 Answers  


I am in .Net development for past 3.5 years and want to enter in to automated testing and learn QTP. For this I need some good tutorial for beginners. I will be really greatful if any one has and they can send it to me on this address- ruchidureja@gmail.com

0 Answers  


When I parameterize a script then for each iteration script is executed from begining to end. If I want to execute some middle steps multiple times using Parameterization (avoiding begining and end steps), what is the solution of this (e.g. total steps are 1 2 3 4 5 and i want 2 3 4 only(not 1 nd 5)

2 Answers  


Can we add the function library directly from scripting in qtp instead of adding from resource tab?

5 Answers   IBM,


Categories