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

Syntax –

object.CloseDescendentProcesses

Example –

Sub CloseDescendentProcesses_Example()
’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.
SystemUtil.Run "Notepad.exe"
MsgBox SystemUtil.CloseDescendentProcesses
End Sub

If you want to keep track of further articles on UFT (QTP). I recommend you to subscribe by Email and have new UFT articles sent directly to your inbox.

Subscribe to get free updates on UFT!

LearnQTP is the most popular site on UFT (formerly QTP).

Enter your first name and email address below to instantly subscribe and download an eBook on Optimizing UFT Scripts. In future, we will make sure you get new tips & tricks on UFT delivered direct to your email box.

Please check your email and confirm free subscription!