DmitryN suggests you can get aqObject when running a "Connected Application".
It seems (reading the documentation) that a connected app is one that is using an assembly or dll that wraps the COM interface to present the "Connect" object.
Looking at script.h ...
-------------
...
#define IntegrationPropName L"Integration"
#define ObjectByNamePropName L"GetObjectByName"
...
class GetaqObject : public GetTCBase
{
public :
var operator()(void)
{ return (var)GetTCObject()[IntegrationPropName][ObjectByNamePropName]("aqObject"); }
};
...
CLazyRef<GetaqObject, BaseVariantWrapper>
TestComplete::aqObject;
...
-------------
which means TestComplete::aqObject = tc.Integration.GetObjectByName("aqObject")
Through the COM TestComplete object, if I call `tc.Integration.GetObjectByName("Sys")` I get the Sys object, so I infer the "GetObjectByName" method is working correctly....
However if I call tc.Integration.GetObjectByName("aqObject").. I get NULL.