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

does test plan is in test strategy or test strategy is in test plan.

6 Answers   Microsoft, TCS,


Can i run the qtp, without OBJECT REPOSTIRY...

8 Answers  


There is one login screen,after accepting valid username and apassword, it will show the next screen. In the 2nd screen u r having 2 combo boxes, U have to select any item from these, and click OK button. After closing that, it will show the 3rd screen. If u click CANCEL button from 2nd screen it will show the first screen. Write QTP script for it???

1 Answers   Sonata,


Give one example of Standard checkpoint in qtp 10?

1 Answers  


Why we are going for descriptive programming ? I answered as 'If objects are not present in OR we will go for descriptive Programming'? Is this correct ?

3 Answers   Polaris,






what is selective recording ? and normal recording?

1 Answers   iSoft,


What is recovery scenario in qtp?

0 Answers  


Can we create test script with out Step Generator?

4 Answers  


What are different types of frame works ?

3 Answers  


If a script has a local repository and also uses a shared repository, which repository will QTP use first when searching for an object during playback?

3 Answers  


where did you automate in your project?(please tell me example senarios)

2 Answers  


What does it mean when a check point is in red color? what do u do?

1 Answers  


Categories