‘**********************************************************************************************
‘SystemUtil Object
'Purpose – An object used to control applications and processes during run session. The SystemUtil object is QuickTest’s reserved object. Reserved Objects enable you to retrieve or control QuickTest Settings or to modify QuickTest behavior during a run session.
Below list are the built-in methods and properties that you can use as operations for the SystemUtil object
BlockInput : Prevents keyboard and mouse input events from reaching application.
CloseDescendentProcesses : Closes all processes opened by QuickTest.
CloseProcessByHwnd : Closes a process that is the owner of a window with the specified handle.
CloseProcessByID : Closes a process according to Process ID.
CloseProcessByName : Closes a process according to its name.
CloseProcessByWndTitle : Closes all processes that are owners of windows with the specified title.
Run : Runs a file or application.
UnBlockInput : Re-Enables keyboard and mouse input events after a BlockInput statement was used to block them
‘**********************************************************************************************
Public Function funcSystemUtil()
‘Mostly we will get a chance to use Run command with SystemUtil Object
Syntax: SystemUtil.Run file, [Parms], [Dir], [Op], [Mode]
Example: SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe","","C:\Documents and Settings\sangaraj","open"
End Function
‘**********************************************************************************************
No comments:
Post a Comment