UFT/QTP: How to launch application in UFT?

How to launch application in UFT/QTP?

Different ways to launch the application in UFT:

There are different techniques. Lets understand them-


UFT Tutorials
UFT Tutorials
UFT Tutorials
UFT Tutorials



Let’s see the demo code now:

Method #1

¬†SystemUtil.Run “iexplore.exe”,”www.facebook.com”


Method #2

InvokeApplication “C:\Program Files\Internet Explorer\iexplore.exe http://www.facebook.com”


Method #3

Set oShell=CreateObject(“Wscript.shell”)

oShell.Exec “C:\Program Files\Internet Explorer\iexplore.exe http://www.facebook.com “

Set oShell=nothing


Method #4

Set oIE = CreateObject(“InternetExplorer.Application”)
oIE.Navigate “www.facebook.com”
oIE.Visible = True

Using above four techniques , we can launch application/browser in UFT/QTP.

All the best !!!

One Comment

  1. Paul Grossman said:

    Great examples!

    Are there any differences between the four?
    Speed of launch or identification of window class?

    April 23, 2017

Leave a Reply

Your email address will not be published. Required fields are marked *