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 !!!