Close QTP After Execution






If you want to see QTP Jobs Click here

How to Close QTP after execution

Private Function CloseQTP

Set objWMIService = GetObject(”winmgmts:\\.\root\CIMV2″)

Set colProcess = objWMIService.ExecQuery (”Select * from Win32_Process Where Name = ‘QTPro.exe’”) For Each objProcess in colProcess objProcess.Terminate() Next

Set objWMIService = Nothing

Set colProcess = NothingEnd FunctionCall CloseQTP

Comments :

0 comments to “ Close QTP After Execution ”

Post a Comment