سؤال

Specifically I am trying to do the equivalent of

aqObject.IsSupported(objText, "SomeProperty")

through the TestComplete COM interface.

How do you do this?

Note:

I am connecting to TestComplete through WIN32OLE by connecting to "TestComplete.TestCompleteApplication.8".

It is probably worth point out that I have attempted to ask the integration to get the aqObject by name and got NULL back.

sys = tc.integration.GetObjectByName("Sys") sys.Exists => true sys.Name => "Sys"

aqObject = tc.integration.GetObjectByName("aqObject") => nil

هل كانت مفيدة؟

المحلول

Is there a running test in TestComplete at the moment? This article says it's a prerequisite for GetObjectByName:

You can obtain the object only if TestComplete is running a test. If there is no tests running in TestComplete, GetObjectByName will return an empty Variant value.

نصائح أخرى

If you are using the Connected Applications feature of TestComplete, you can easily access the aqObject object along with its members via the Connect class.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top