Google News
logo
QTP/UFT - Interview Questions
What are the different ways to invoke an application using QTP?
* SystemUtil.Run
SystemUtil.Run ( FileName, Parameters, Path, Operation )
Example : SystemUtil.Run(“iexplorer.exe”,http://www.google.com)
SystemUtil.Run(“test.txt”, “”,”C:\”,”1”)
 
* InvokeApplication
Example : InvokeApplication “C:\Program Files\Internet Explorer\IEXPLORE.EXE http://www.google.com”
 
* Creating a shell object using VB Script
Example : Create a “WScript.shell” object.
Dim testshell
Set testshell= CreateObject (“Wscript.shell”)
testshell.run "%windir%\notepad"
Advertisement