Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
when to use the command InvokeApplication and SystemUtil.Run
#1
Solved: 10 Years, 9 Months ago
May I know when to use the command InvokeApplication and SystemUtil.Run

Reply
#2
Solved: 10 Years, 9 Months ago
Invokeapplication "Path of .exe files"
systemutil.run "path of exe file or url",[parameters],etc., check the syntax in QTP

Here invokeapplication command is used to invoke only executable files.
Systemutil.run is used to invoke browsers with desired url or executable files... and we can pass parameters to application with this command, we can handle invoked application position [maximised,active, inactive etc.,] with this command.

go to QTP help... and try with different combinations on systemutil.run command. you'll get more
Reply
#3
Solved: 10 Years, 9 Months ago Smile 
Invokeapplication is mostly used for backward compability below(QTP 6)

Syntax : InvokeApplication("Full URL as Parameter")

Systemutil.run

Syntax : SystemUtil.Run ( FileName, Parameters, Path, Operation )

Note : When you specify an application to open using the Record and Run Settings dialog box, QuickTest does not add a SystemUtil.Run statement to your test.


Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)