Forum Discussion

Andrey_E's avatar
Andrey_E
New Contributor
9 years ago

OleObject in TestComplete 11.30

Hi,
Using Test-Complete 11.30 what can I do to make Test-complete connect to current running application (this application I use in my test) after a command Sys.OleObject(<application_name>)?
Just now Test-Complete starts another instance of application defined in command Sys.OleObject(<application_name>independently of an existing one.

 

Thanks

3 Replies

    • Andrey_E's avatar
      Andrey_E
      New Contributor

      Hi Alex,

      Unfortunately, when i call GetObject() function, i get an error "Automation server can't create object.".

      Thanks for the reply

      • bkrenner's avatar
        bkrenner
        New Contributor

        Hi,

         

        we had the same problem. Try this:

        dotNet.System_Runtime_InteropServices.Marshal.GetActiveObject("Excel.Application")

         

        Regards,

        Brigitte