Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
diff between invoke application and systemutil.run
#1
Solved: 11 Years, 4 Months, 4 Weeks ago
can anyone tell me the diff between invoke application and systemutil.run?
Reply
#2
Solved: 11 Years, 4 Months, 4 Weeks ago
invoke application:
Invokes an executable application.
Syntax:InvokeApplication(Command [,StartIn])

systemutil.run:
Is an object used to control applications and processes during a run session.
It is used to run a file or application. This can be used to run non executable application, when specifying a non-executable file, the file opens in the associated application.
Ex: SystemUtil.Run "C:\type.txt", "", "", ""
Reply
#3
Solved: 11 Years, 4 Months, 4 Weeks ago
Since SystemUtil.Run does everything InvokeApplication does and more, you're supposed to use SystemUtil.Run. From the QTP help file:

QTP Help File Wrote:Note: In most situations, you should use a SystemUtil.Run statement to run applications or to open files in their default application. For more information on the SystemUtil.Run statement, refer to the Standard Windows section of the QuickTest Professional Object Model Reference.

The InvokeApplication statement is supported primarily for backward compatibility.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  SystemUtil.Run is not getting recorded divyan 1 1,863 08-31-2017, 09:06 PM
Last Post: Ankur
  SystemUtil.Run method is not getting recorded pupuns2 5 8,215 05-12-2017, 01:20 PM
Last Post: Angeliks
  XML diff comparison bubblehead 0 5,774 05-21-2014, 12:01 PM
Last Post: bubblehead
  How to invoke the recording of QTP using AOM(automation object model) of QTP shailesh.gcettb@gmail.com 2 4,184 05-08-2014, 10:30 AM
Last Post: Shriram
  systemUtil.run script is not generating while recording in qtp 9.5..pls help me senthil.kumar 0 2,690 01-24-2013, 01:22 PM
Last Post: senthil.kumar

Forum Jump:


Users browsing this thread: 1 Guest(s)