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

What are the properties you would use for identifying a browser & page when using descriptive programming ?

2 Answers  


How to make an Action as reusable?

1 Answers  


What is the recovery scenario in qtp?

0 Answers  


How to open any application during Scripting?

3 Answers   Crea,


What is synchronization point in QTP?

0 Answers  


how will you check how many members visited the website www.infosys.com?

0 Answers   Logica CMG,


what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?

0 Answers  


What are the types of object repositories? Which one is you using?

0 Answers  


There r 1000 rows and 1000 coloums , in that I want pickup a name of the coloumn , pls dont say in sql statements , in interview one of the interviewer said it was a wrong answer pls any send me answer its urgent

1 Answers  


Do we get any issues if we run the testscript on different browsers? what are the options we need to st in QTP?

2 Answers   BirlaSoft,


Among the 4 capture levels, Complete, Partial, Minimal, None. which one is mostly used?

1 Answers  


Suppose i have some records in database now i want to use first 1000 records for one test and next 1000 to 2000 records for another test how can we do this just for ex oracle database pls tell me

1 Answers  


Categories