0 votes
in QuickTest Professional (QTP) by
What are the different ways to invoke an application using QTP?

1 Answer

0 votes
by

Answer: 
a) SystemUtil.Run
SystemUtil.Run ( FileName, Parameters, Path, Operation )
Example: SystemUtil.Run(“iexplorer.exe”,http://www.google.com)
SystemUtil.Run(“test.txt”, “”,”C:\”,”1”)

b) InvokeApplication
Example: InvokeApplication “C:\Program Files\Internet Explorer\IEXPLORE.EXE http://www.google.com

c) Creating a shell object using VB Script
Example: Create a “WScript.shell” object.
Dim testshell
Set testshell= CreateObject (“Wscript.shell”)
testshell.run “%windir%\notepad “

Related questions

+1 vote
asked Sep 12, 2020 in QuickTest Professional (QTP) by JackTerrance
0 votes
asked Jun 16, 2021 in QlikView by Robindeniel
...