Forum Discussion

tbom's avatar
tbom
Contributor
13 years ago

detecting COM automation in testcomplete?

Is it possible to detect if testcomplete is controled via COM?



That is, have a jscript function check if it's running standalone, or via COM?



/ Thomas
  • tbom's avatar
    tbom
    Contributor
    The integration object, is when controling things from the outside world



    What I want to do, is to have testcomplete/testexecute know if it is being used via COM automation, and have some functions (or tests) run, only when it is used via COM, and not when running standalone.



    / Thomas
  • Anonymous's avatar
    Anonymous

    Hi Thomas,



    Try playing with the following TestComplete COM objects:



    Sys.OleObject("TestComplete.TestCompleteApplication", "").Manager

    Sys.OleObject("TestComplete.TestCompleteApplication", "").Manager.RunMode

    Sys.OleObject("TestComplete.TestCompleteApplication", "").Manager.State

    Sys.OleObject("TestComplete.TestCompleteApplication", "").Visible