[python-win32] Problems with QuickTest Automation Object Model

Tim Roberts timr at probo.com
Wed Sep 9 01:30:59 CEST 2009


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):
>         """Runs the open test or business component and creates
> results in the specified file or Quality Center path."""
>         return self._oleobj_.InvokeTypes(15, LCID, 1, (24, 0), ((9,
> 49), (11, 49), (9, 49)),ResultsOptions
>             , WaitOnReturn, Parameters)

The three type records are a COM interface, a boolean, and a COM
interface, returning void.  The parameter you're passing is getting sent
in as the ResultsOption.  Is there any change if you pass None as the
first parameter?  (There shouldn't be...)

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list