Closes all processes opened by QTP/UFT.QTP-closedescendentprocesses

Syntax –

object.CloseDescendentProcesses

Example –

  1. Sub CloseDescendentProcesses_Example()
  2. Suppose that the Record and Run dialog box opens a Windows Explorer window at the beginning of a test run, and then the statement below opens a Notepad window. In this case the message box statement below displays 2.
  3. SystemUtil.Run "Notepad.exe"
  4. MsgBox SystemUtil.CloseDescendentProcesses
  5. End Sub