Forum Discussion

  • googleid_107989's avatar
    googleid_107989
    Occasional Contributor
    What is the destinction between a connected application and using COM to connect through the "TestComplete.TestCompleteApplication.8" component? 



  • googleid_107989's avatar
    googleid_107989
    Occasional Contributor
    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. 





  • googleid_107989's avatar
    googleid_107989
    Occasional Contributor
    You need to have a test running for 'aqObject' to be valid.  That is a shame.