Forum Discussion

uditbatra87's avatar
uditbatra87
Occasional Contributor
13 years ago

Launch TestComplete using VBScript code,Get Run-time Object Properties?

Hi ,



how do i Launch Tescomplete and Open a test using VBScript Code. Is there any Automation Model for TestComplete ?



Also, How is it Possible to retrieve Run-time Object properties using TestComplete ? Is there any Method like GetROProperty that can be used.



Thanks,

Udit


3 Replies

  • Hi Udit,



    how do i Launch Tescomplete and Open a test using VBScript Code. Is there any Automation Model for TestComplete ?
    Yes, TestComplete provides COM Automation API via the TestComplete.TestCompleteApplication COM object. We have a Visual Basic example of TestComplete automation here here; the VBScript version should be very similar.



    Also, How is it Possible to retrieve Run-time Object properties using TestComplete ? Is there any Method like GetROProperty that can be used.
    You access object properties using the object.property_name syntax. For example:

    Aliases.notepad.wndNotepad.WndCaption
  • Hi Udit,



    To get Run time object you can use these properties---> .Text,  .wText,  .InnerText ,  .Outer Text



    Syntax--->Object name.propertyname



    Regards,

    Srini.