> I'm hoping Mark will find this interesting and investigate. I don't
> quite understand how makepy.py let this slip by. The first and third
> parameters are both VT_DISPATCH, so why would the first come up with a
> default of 0, when the third comes up with a default of None?
>
>
I assume these
Dennis Chung wrote:
>
> I assume these default values are coming from the COM library itself
> and makepy.py is simply pulling these defaults.
COM doesn't know anything about None. That's strictly a Python invention.
> According to Python Object Browser, the first argument for Run is
> "Pointer
Dennis Chung wrote:
> That makes sense, the default value of the first parameter is 0 where
> it should be None. I'm assume this is a problem in the COM object
> definition in which case I can raise an issue with HP.
>
> o.Test.Run(0)
> Traceback (most recent call last):
> File "", line 1, in
>
That makes sense, the default value of the first parameter is 0 where it
should be None. I'm assume this is a problem in the COM object definition
in which case I can raise an issue with HP.
o.Test.Run(0)
Traceback (most recent call last):
File "", line 1, in
o.Test.Run(0)
File ">", line
Dennis Chung wrote:
>
>
>
> Run method signature:
> object.Run [ResultsOptions], [WaitOnReturn], [Parameters]
>
> Here is the relevant output of makepy for the QTP Type Library:
> class Test(DispatchBaseClass):
> ...
> def Run(self, ResultsOptions=0, WaitOnReturn=True, Parameters=None):
>
>
> Yes, but there's a big difference between those. With Launch and Open,
> you are working with the "o" object. But with o.Test.Run(), you aren't
> working with "o", you are working with whatever object is returned from
> the Test property of "o". That's a brand new object of a different
> typ
Dennis Chung wrote:
> I am running this code on the python shell the test was loaded
> successfully. I will illustrate my problem more clearly. I currently
> have a work around by explicitly passing "self" but I'd like to better
> understand the issue. As you can probably tell, I am new to pytho
I am running this code on the python shell the test was loaded
successfully. I will illustrate my problem more clearly. I currently have
a work around by explicitly passing "self" but I'd like to better understand
the issue. As you can probably tell, I am new to python.
The following code allow
Dennis Chung wrote:
> Thanks Tim.
>
> I apologize in advance if this doesnt thread properly; I'm on the
> digest list and am not sure how to properly reply to individual messages.
>
> I am now able to launch the application via python win32com however I
> am still having an issue. The QuickTest.Ap
Thanks Tim.
I apologize in advance if this doesnt thread properly; I'm on the digest
list and am not sure how to properly reply to individual messages.
I am now able to launch the application via python win32com however I am
still having an issue. The QuickTest.Application object allows me to ru
Dennis Chung wrote:
> 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("Qu
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
Msg
12 matches
Mail list logo