Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP launch error
#2
Not Solved
Add below code before launching QTP and try...

Code:
call fn_CloseApplication( “QTPro.exe”)
call fn_CloseApplication( “QTAutomationAgent.exe”)

Public Function  fn_CloseApplication( byval sApplicationExe)
Dim strComputer
Dim objWMIService
Dim colProcesses
Dim objProcess
strComputer = “.”
Set objWMIService = GetObject(“winmgmts:\\” & strComputer & “\root\cimv2″)

Set colProcesses = objWMIService.ExecQuery (“Select * from Win32_Process Where Name = ‘”&sApplicationExe&”‘”)
For Each objProcess in colProcesses
objProcess.Terminate()
Next
Set objWMIService = Nothing
Set colProcesses=Nothing
End Function
Reply


Messages In This Thread
QTP launch error - by himanshu1178 - 12-27-2011, 09:57 PM
RE: QTP launch error - by vIns - 12-28-2011, 06:00 AM
RE: QTP launch error - by himanshu1178 - 12-29-2011, 08:51 PM
RE: QTP launch error - by sowmya - 02-13-2012, 12:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  "qtp.launch" throwing "class not registered" error auto_tester 0 3,159 08-13-2013, 10:52 PM
Last Post: auto_tester
  Remote QTP launch tester_rahul 3 10,373 07-26-2012, 12:19 PM
Last Post: supputuri
  qtp launch application siri786 3 4,957 04-26-2012, 12:27 AM
Last Post: siri786
  How to launch DBVisualizer and then execute SQL queries sqadri 0 3,480 02-28-2012, 04:58 AM
Last Post: sqadri
  Launch n-times QTP Test with different Excel Files nacchio 3 3,688 11-08-2011, 03:34 PM
Last Post: ravi.gajul

Forum Jump:


Users browsing this thread: 1 Guest(s)