Hi,
I am having problems using win32com.client with the HP QTP COM libraries.
QTP is just another windows based application like Excel that exposes a COM
type library for automation.
In vbscript the COM library works fine as follows:
Set qtp = CreateObject("QuickTest.Application")
qtp.Launch
MsgBox qtp.Launched ' Prints True
Using python:
>>> import win32com.client
>>> o = win32com.client.Dispatch("QuickTest.Application")
>>> o.Launch
<bound method CDispatch.Launch of <COMObject b'QuickTest.Application'>>
>>> o.Launched
False
>>>
Any idea as to why the application fails to launch when invoked with the
python com libraries?
In both instances I have ensured the application was closed and no processes
remained in task manager. This does not appear to be a QTP issue since the
COM libraries are fine when invoked via vbscript.
I have installed Python 3.1.1 on win32 along with pywin32-214. I am using
QTP 9.5.
Any help is greatly appreciated.
Best Regards,
Dennis
_______________________________________________
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32